How can I get the width and height of an extended JFrame? (done through)
setExtendedState( getExtendedState() | JFrame.MAXIMIZED_BOTH);
After frame.setVisible(true)
:
double width = frame.getSize().getWidth();
double height = frame.getSize().getHeight();