Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35084

Re: Dropping files on a Swing application

Path csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Dropping files on a Swing application
Date Fri, 22 Jul 2016 09:41:29 -0400
Organization A noiseless patient Spider
Lines 29
Message-ID <nmt7qm$lo8$1@dont-email.me> (permalink)
References <878twt4xgj.fsf@Equus.decebal.nl>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Fri, 22 Jul 2016 13:41:42 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="22e5ab429c5a4bb738666b9c52e40d69"; logging-data="22280"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vdj3itRBhnLrgBR/bXZcV"
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
In-Reply-To <878twt4xgj.fsf@Equus.decebal.nl>
Cancel-Lock sha1:NNpuvzmouv0Ns8t7To6YeUIvaQA=
Xref csiph.com comp.lang.java.programmer:35084

Show key headers only | View raw


On 7/22/2016 9:24 AM, Cecil Westerhof wrote:
> I have started with a simple Swing application. In this I select a
> picture file JFileChooser. It works, but because there are more as
> 1.000 photos it is a little bothersome to select the correct photo.
> With Gwenview I can see minatures of the photos. Would it be possible
> to select a photo in Gwenview and drop it on my application? That
> would make live much easier.
>
> Of-course I would prefer a system independent way, so if someone would
> use my application on Windows it works also.

     Usenet is a medium well-suited for "targeted" questions, but it
is not a good means for wholesale instruction in large bodies of data.
Your present question is covered in the on-line Java Tutorial, as are
many of the others (perhaps *all* of the others) you have raised in
this thread.  I encourage you to take advantage of it.  The Swing
part starts at

	http://docs.oracle.com/javase/tutorial/uiswing/index.html

... where you will find links that may interest you, like "Drag and
Drop and Data Transfer," "Laying Out Components Within a Container,"
"Concurrency in Swing," and "Custom Painting," among others.

     Stop floundering, and RTFT.

-- 
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Dropping files on a Swing application Cecil Westerhof <Cecil@decebal.nl> - 2016-07-22 15:24 +0200
  Re: Dropping files on a Swing application Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-07-22 09:41 -0400

csiph-web