Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2007

Tip: Looking for answers? Try searching our database.

Filebrowsing inside mainapp window

Thread view: 
Daniel - 19 Jan 2007 10:37 GMT
Hello all,
I would like to have file browsing available inside my
(swing)application, not via a dialogbox. Are there any good classes
already available for this, or must I sit down and write my own?
It feels like pretty much all of what I want is available as internal
components of the JFileChooser, but I can not seem to find any
implementations for them. As I said, any pointers would be helpful. I
just want a tree and a file listing.

regards
Daniel
Paul Hamaker - 19 Jan 2007 10:59 GMT
You could do this using JTree and File('s listFiles, isDirectory,
isFile,...).
http://java.sun.com/products/jfc/tsc/articles/jtree/
Scroll to 'Example: The FileExplorer Browser'
--
http://javalessons.com  Paul Hamaker, SEMM
Teaching ICT since 1987
Knute Johnson - 19 Jan 2007 17:21 GMT
> Hello all,
> I would like to have file browsing available inside my
[quoted text clipped - 7 lines]
> regards
> Daniel

Put the JFileChooser in the JFrame just like any other component.

Signature

Knute Johnson
email s/nospam/knute/

Daniel - 19 Jan 2007 23:13 GMT
>> Hello all,
>> I would like to have file browsing available inside my
[quoted text clipped - 9 lines]
>
>Put the JFileChooser in the JFrame just like any other component.

I did try this already, the problem is that the JFileChooser contains
a number of extra controlls, that does not fit well with my
application.

By the sounds of it it seems that the only way is indeed to follow
that tutorial in the documentation for java. I just wondered if there
already were components out there.
thanks anyway for the responses.

regards
Daniel


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.