Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 04-16-2002, 09:19 AM   #1
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.


Java Newbie
Old 04-16-2002, 06:06 PM   #2
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:

When I look for code, I use these:

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


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:08 PM.

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