Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Controls of JFrame

 
Sue Meng
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we hide control buttons (minimise, maximise/restore, close) at the right top of the JFrame?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
frame.setUndecorated(true);

(alt-F4 to close)
 
Sue Meng
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It makes frame look ugly. I still want borders there only the buttons I dont want. In fact I want frame to look like simple dialog with my 'ok' button on it. Thanks anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic