fullscreen with minimize, restore and close
I want a fullscreen user interface(JFrame) with minimize, restore and close buttons in the upper-right corner of the window. I've tried with setSize(Toolkit.getDefaultToolkit().getScreenSize()) but I've got maximize button instead of restore button.
[273 byte] By [
Tibi21a] at [2007-11-27 5:53:21]

# 1
setSize(Toolkit.getDefaultToolkit().getScreenSize())
This function sets the size of the JFrame, not the state, remember Minimized, Maximized, and Restored are the states of a JFrame.
So use setState()
or
setExtendedState()
(you need to use setExtendedState(JFrame.MAXIMIZED_BOTH)
) to set the state of the JFrame
Refer docs for details.