Java FileDialog programmatically set size

Posted by rwallace on Stack Overflow See other posts from Stack Overflow or by rwallace
Published on 2009-08-14T04:43:40Z Indexed on 2010/06/16 14:02 UTC
Read the original article Hit count: 136

Filed under:
|

I want to display a Java FileDialog and sets its initial size to something reasonable (it doesn't show the maximize button, and a lot of users might not know you can use alt-space X instead). I tried setBounds but it didn't do anything, and I don't see a method for maximizing it; what am I missing?

Update: on Windows at least, the system file dialog remembers size and maximize state even across program invocations, so the user can set it to the desired size just once and it will stay that way; that seems sufficient, so I will leave it at that.

© Stack Overflow or respective owner

Related posts about java

Related posts about awt