Monday, March 23, 2009

How to maximize a JFrame?

A frame can be maximized using the Jframe method setExtendedState() as shown in the example below.

frame.setExtendedState(
frame.getExtendedState() | JFrame.MAXIMIZED_BOTH);

No comments: