473,467 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

GridLayout

63 New Member
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 2309
HxRLxY
23 New Member
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 Recognized Expert MVP
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.