Results 1 to 3 of 3
Thread: how to fix the size of buttons?
- 03-23-2011, 02:48 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 1
- Rep Power
- 0
-
Your post doesn't give us enough useful information to allow us to give you a helpful answer. Please read the link in my signature below on "how to ask smart questions" as it will give several useful suggestions on what we need in order to be able to help you out.
Much luck.
- 03-23-2011, 03:49 PM #3
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
That is the functionality of the GridLayout. One way is to use another layout manager like a FlowLayout.
Or another option is to add the panel with your buttons to another panel, then add this second panel to the frame. By default the second panel uses a FlowLayout which will respect the size of the panel using the GridLayout.
You need to read up on Layout Managers to understand what each does and to learn how to use them together.
Similar Threads
-
Make all buttons the same size
By Matthew1246 in forum AWT / SwingReplies: 3Last Post: 03-22-2011, 01:22 PM -
Help with Buttons
By wld4ubabay in forum New To JavaReplies: 20Last Post: 05-17-2010, 08:13 AM -
Setting frame size to the size of an image
By Yoruichi in forum AWT / SwingReplies: 5Last Post: 04-22-2009, 04:37 PM -
Where To Get Pop Up Buttons
By hitmen in forum AWT / SwingReplies: 7Last Post: 03-26-2009, 04:05 AM -
How to use SWT Buttons
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 04:44 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks