• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Getting the "Tree View" Dialog Box  RSS feed

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day!

May I ask what do you call the "Dialog Box" that pops up if you click a button say, "Browse" which shows all the files in the file System and then you select a folder, click OK and all of its contents will be retrieved? Its like in WinAmp music player where you want to add file/folders then you click a button, a dialog box will appear, then you select a folder, click OK and then the contents of that folder will be retrieved.

Sorry, I find it hard to explain this concept.


Thanks.
 
Sheriff
Posts: 21459
96
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's called a File Dialog.

In Java there are two classes that will already do what you need: JFileChooser in Swing and FileDialog in AWT.
 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much for the information.

Another question would be, can I use it in Struts? I need to implement it on Struts.

Thanks again.

Darren
[ September 11, 2007: Message edited by: Darren Alexandria ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!