Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2004

Tip: Looking for answers? Try searching our database.

set width of columns in layoutmanager

Thread view: 
Andrew Bullock - 18 Nov 2004 12:35 GMT
Hi,

I hope you can help me...

How do i change the widths of the columns in my gridlayout?
i have a 9x9 grid and i want the outer 8 to be small, the the centre
cell large, so i need to set the top and bottom row heights to small,
and the left and right column widths to small.

How can i achieve this?

Thanks!!!

:)

Anrew
Babu Kalakrishnan - 18 Nov 2004 13:11 GMT
> How do i change the widths of the columns in my gridlayout?
> i have a 9x9 grid and i want the outer 8 to be small, the the centre
> cell large, so i need to set the top and bottom row heights to small,
> and the left and right column widths to small.
>
> How can i achieve this?

You cannot achieve this using a GridLayout.

Try using a GridBagLayout or other third party ones which are more
customisable.

Or you could write a custom layoutmanager that caters to the specific
requirements of your application.

BK
Andrew Bullock - 18 Nov 2004 13:49 GMT
>> How do i change the widths of the columns in my gridlayout?
>> i have a 9x9 grid and i want the outer 8 to be small, the the centre
[quoted text clipped - 12 lines]
>
> BK

Yeah thanks,

I've used a grid bag now, finally got my head round it

:)

thanks again!

Andrew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.