resizing problems [message #780518] |
Wed, 18 January 2012 12:32  |
Eclipse User |
|
|
|
When i create a JButton, a JLabel, any sort of widget or component--i can't resize it. This is true for applications i've designed and been able to do this with in the past, and for brand new ones. I've even made a blank class by extending JPanel. I figured a new version might have caused the issue since i was running on helios, but after upgrading to indigo i still have the same issue.
In any case, i can resize the main JPanel area where things get put, but anything that i put on the panel after that cannot be resized.
Why can't i resize components?
|
|
|
|
Re: resizing problems [message #780682 is a reply to message #780545] |
Thu, 19 January 2012 02:30   |
Eclipse User |
|
|
|
I don't think there's a way to post a test case here - it happens with every class i have. As for layout manager, i'm afraid i'm too new at eclipse to understand the question. Is it something i can change that would effect how things work?
|
|
|
Re: resizing problems [message #780697 is a reply to message #780682] |
Thu, 19 January 2012 05:38   |
Eclipse User |
|
|
|
Lots of folks post test cases here...just use copy/paste.
If you don't know what a layout manager is, I would strongly suggest learning a bit more about Swing before using WindowBuilder (it expects you to understand Swing and to know what a layout manager is).
Different layout managers will impose different constraints on your widgets. Some will allow you to set the size while others will calculate the size for you.
|
|
|
|
Powered by
FUDForum. Page generated in 0.06537 seconds