• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use swt to open a file and directory?

 
Jackie He
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,I'm a new beginner on SWT and Jface. And I have a easy question about it.
I want to implement a function using SWT like this:

JFileChooser fchooser;
fchooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);

The Chooser can open files and direcotories in the same component.
How can I use SWT to do this?
Thank you very much!
 
Jackie He
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should I use DirectoryDialog or FileDialog?
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"XinHe China",

Please read your private messages regarding an important announcement.

Thank you,

Rob
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!