• Post Reply Bookmark Topic Watch Topic
  • New Topic

Resize JFrame  RSS feed

 
Neh Agarwal
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I am using JFrame and am allowing the user to resize it, but I want to restrict to a minimum size after which the user should not be able to resize the frame by dragging the arrow at the corner.

How can that be done.

Please Help!

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out getMinimumSize() and setMinimumSize() methods.
 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you used the setMinimumSize method? Does that help?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Campbell
Ha! Beat you by two minutes
 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:@Campbell
Ha! Beat you by two minutes
And I thought it was only Rob who did that
 
Rob Spoor
Sheriff
Posts: 20898
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tought Maneesh well
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!