JFrame, disabling the minimize and maximize buttons

L

leggolas

hi guys,

a student asks if is it possible to create java windows (no pun
intended) without the minimize and maximize buttons. so in effect,
creating a window with just the "X" button. creating such windows is
easily done in VB. i cant remember what property i have to set in VB
but im sure its possible. im not sure if its also possible for java.

help please!
 
A

Arnaud Berger

Hi,

You may want to use a JDialog instead of the JFrame.
(JDialog displays only the "close" button).

Regards,

Arnaud
 
N

ninhoa

Yes, extend the window from JPanel.

For a JFrame you can disable the maximize botton with frame.setResizable(false)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top