Results 1 to 2 of 2
Thread: DirectoryDialog - Recent folder
- 12-09-2008, 07:11 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 1
- Rep Power
- 0
DirectoryDialog - Recent folder
I am using DirectoryDialog (swt) to select the folder. The issue is every time it is open the Windows Dialog (Browse for Folders) with default selction as 'My Documents' folder.
My requirement is to Open the DirectoryDialog with recently selected folder. Unfortunalty setFilterPath() wont help me in this regard. Some how I need to get it from Windows itself.
Thank in Advance.
Shyam
- 02-23-2009, 12:35 PM #2
Member
- Join Date
- Feb 2009
- Posts
- 3
- Rep Power
- 0
FileDialog fd = new FileDialog(parent.getShell(), SWT.OPEN);
fd.setText("Open");
fd.setFilterPath("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}");
String[] filterExt = {"*.txt"};
fd.setFilterExtensions(filterExt);
fd.open();
MessageDialog.openInformation(null, "Opening Project...","Project Selected");
parent.getShell().dispose();
}
Similar Threads
-
Where to find most recent java platform???
By busdude in forum New To JavaReplies: 5Last Post: 11-16-2008, 03:19 AM -
want to run my code from any folder ?
By Shyam Singh in forum New To JavaReplies: 1Last Post: 08-12-2008, 01:31 PM -
How to use DirectoryDialog to prompt for a directory
By Java Tip in forum SWTReplies: 0Last Post: 07-02-2008, 08:00 PM -
Demonstration of the DirectoryDialog class
By Java Tip in forum SWTReplies: 0Last Post: 07-02-2008, 07:56 PM -
add password to folder
By ismailsaleh in forum AWT / SwingReplies: 1Last Post: 01-08-2008, 05:46 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks