We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Window resizing limits
Page Index Toggle Pages: 1
Window resizing limits (Read 565 times)
Window resizing limits
Apr 22nd, 2009, 11:39am
 
Hey. I've got some troubles with window resizing. I tried to find something in other topics, but those answers were not, what I really wanted to find.
OK, I wrote frame.setFrameResizable(true).
I know, that in Java there is something like setMinSize. The problem is, that I can't include this library to my sketch. Trying to use setWidth and setHeight It has some effect, but my window is flickering, when size(that I try to set while dragging my mouse) is smaller that I foresaw.

Sorry, my English is not the best))
Re: Window resizing limits
Reply #1 - Apr 23rd, 2009, 1:47am
 
Code:
  frame.setResizable(true);
frame.setMinimumSize(new Dimension(400, 200));

worked well for me.
Re: Window resizing limits
Reply #2 - Apr 23rd, 2009, 5:35am
 
Thank you. It works!!!
Page Index Toggle Pages: 1