Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can I set the size of a FileDialog
Can I set the size of a FileDialog [message #449806] Sun, 30 January 2005 13:49 Go to next message
Pelle Svensson is currently offline Pelle SvenssonFriend
Messages: 77
Registered: July 2009
Member
Can I set the size of FileDialog and DirectoryDialog before they
are displayed.



Shell shell = new Shell();
shell.setSize(1000, 1000); <- no effect
shell.setMaximized(true); <- no effect
shell.setText("Blumer"); <- no effect
DirectoryDialog dlg = new DirectoryDialog(shell); //,SWT.CLOSE | SWT.TITLE | SWT.MIN | SWT.MAX | SWT.RESIZE);
String dir = dlg.open();
return dir;
Re: Can I set the size of a FileDialog [message #449927 is a reply to message #449806] Mon, 31 January 2005 16:46 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Sorry, the operating system chooses the size and location of standard
dialogs.

"SpeedadeYxan" <pelle2004@hotmail.com> wrote in message
news:ctioot$kt1$1@www.eclipse.org...
>
> Can I set the size of FileDialog and DirectoryDialog before they
> are displayed.
>
>
>
> Shell shell = new Shell();
> shell.setSize(1000, 1000); <- no effect
> shell.setMaximized(true); <- no effect
> shell.setText("Blumer"); <- no effect
> DirectoryDialog dlg = new DirectoryDialog(shell); //,SWT.CLOSE | SWT.TITLE
| SWT.MIN | SWT.MAX | SWT.RESIZE);
> String dir = dlg.open();
> return dir;
>
Previous Topic:Shell and focus
Next Topic:getItems() only works for TreeItems that are expanded
Goto Forum:
  


Current Time: Tue Nov 19 12:37:58 GMT 2019

Powered by FUDForum. Page generated in 0.01484 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top