473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

GridLayout

63
Is there a way to have an uneven (LARGER) horizontal gap between the 2nd and 3rd columns, using gridLayout, and leave the gaps between 1st, 2nd and 3rd and 4th the same (SMALLER)?

container.setLayout(new GridLayout(5, 4, 5, 5));
Mar 13 '09 #1
2 2304
HxRLxY
23
My friend, you absolutely need to be using MigLayout. It is a free download available at MigLayout.com. It is far more flexible, and far easier to use than any of the layout managers provided by Java( for example: what took me 135 lines of code with GroupLayout, took 31 with Mig). It takes maybe 15 to 20 minutes to learn to create amazing GUIs. There are lots of examples on the website also. Trust me, try it.

P.S. You can cast a vote to have MigLayout included in Java7.

-HxRLxY
Mar 13 '09 #2
JosAH
11,448 Expert 8TB
Or use the standard GridBagLayout; it's a bit of a burden to get used to but when you've got the hang of it it is very easy and convenient to use.

kind regards,

Jos
Mar 13 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kenneth | last post by:
Hi, I use VS.NET Enterprice Achitect 2002 version and when I try to create a page in gridlayout all font sizes goes banana in all 'Label' and 'RequiredFieldValidator' objects. TextBoxes,...
2
by: Just D. | last post by:
Who knows what should we include into aspx file to show some image as a background picture but only once at the top of the page? I don't want to add the Image control because even if it uses a...
10
by: tshad | last post by:
I was curious if MS_POSITIONING="GridLayout" is supported in the Body tag? I was running DW using a page with this in it and it says it isn't supported in the Body tag. It says "The...
1
by: conckrish | last post by:
Hi All.. Can u please explain me, what is the difference between FlowLayout and GridLayout and which one is best for DataGrid control?? Thanks!!
1
by: Tina | last post by:
I see that in VS.Net 2005, grid layout is no longer supported. I really liked gridlayout because I could put things exactly where I wanted them. How can we put things exactly where we want them...
1
by: Didje | last post by:
Hi, I am trying to create a grid which contains three rows, within each row there will be various buttons also in gridlayout. There are 20 buttons in the middle row, 3 in the top and 4 at the...
1
by: luqman | last post by:
How to set GridLayout and FlowLayOut in VS 2005 ? Best Regards, Luqman
2
by: kalar | last post by:
I want to ask something about swing. Can i set an icon ( it is a big picture) in JFrame and then add labels with GridLayout over the picture?What i want to do is : in my window i want to have a...
4
by: kalar | last post by:
I have got a JLabel : label1 with an image.Then i add a GridLayout on the Label. Then i make a new label: label2 and i add it in the label1.Then i make a new label:label3 and when i add it goes...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.