LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-16-2002, 09:19 AM   #1
markdw
LQ Newbie
 
Registered: Nov 2001
Posts: 7

Rep: Reputation: 0
Question Java Directory Listing


I want to display a listing of my local directories in a JTextPane or JTextArea without using a JTree. I also want to display a folder next to those that our directories and nothing next to those that are files. The last thing is that I want to be able to double click on a directory or .. to go into the selected directory and display that listing.

Can anyone point me into the right direction or show me a site that has an example like this.

Thanks,

Java Newbie
 
Old 04-16-2002, 06:06 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
maybe JFileChooser

Check the sourcecode for javax.swing.JFileChooser that comes with the JDK in src.jar

Here is another example:
http://sourceforge.net/projects/jfilemanager/

When I look for code, I use these:

http://www.google.com/
http://sourceforge.net/
http://freshmeat.net/
http://savannah.gnu.org/
http://www.unmaintained-free-software.org/

Last edited by zmedico; 04-16-2002 at 06:19 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing Directory Size andy7t Linux - Software 2 12-14-2008 02:46 PM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
apache directory listing doralsoral Linux - Software 2 06-15-2005 07:37 AM
Directory Listing with apache aroop Linux - Networking 2 06-02-2004 02:50 AM
Directory Listing mattbeekler Linux - Software 8 07-22-2003 02:27 PM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration