T
TPG
I'm in the process of building a "SingleFrameApplication" using
NetBeans IDE 6.0 and would like to be to control the size of the
external frame that is displayed when the application is run. For
example, I'd like to assure that the application can't be re-sized to
smaller than some minimum width x height. I can't figure out how to
accomplish this.
I've tried getMainFrame().setMaximumSize() from within the startup()
method within the project's generated SingleFrameApplication - but
that seems to have no effect when the application is run. In checking
this out, I have inserted code into the application that displays both
the current frame size and maximum frame size in response to a button
click. As I resize the running application by dragging its edges, the
maximum frame size stays at what it was set in the startup() method,
while the displayed actual frame size can vary well beyond that
maximum size.
I'd appreciate being pointed in the right direction on this.
NetBeans IDE 6.0 and would like to be to control the size of the
external frame that is displayed when the application is run. For
example, I'd like to assure that the application can't be re-sized to
smaller than some minimum width x height. I can't figure out how to
accomplish this.
I've tried getMainFrame().setMaximumSize() from within the startup()
method within the project's generated SingleFrameApplication - but
that seems to have no effect when the application is run. In checking
this out, I have inserted code into the application that displays both
the current frame size and maximum frame size in response to a button
click. As I resize the running application by dragging its edges, the
maximum frame size stays at what it was set in the startup() method,
while the displayed actual frame size can vary well beyond that
maximum size.
I'd appreciate being pointed in the right direction on this.