• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting a size  RSS feed

 
Matthew Middleton
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am writing an application and i want the window to stay the same size, so it can't be maximized or resized. Does anyone know if there is a way you can do this in JFrame? Thank you and GOD bless

Matthew Middleton
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setResizable(false).

The API is a glorious thing.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!