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 / General / January 2006

Tip: Looking for answers? Try searching our database.

grid of JLabels

Thread view: 
Pestry - 04 Jan 2006 01:29 GMT
I want to make a grid of JLabels. I want to have 4 rows and 4
columns.Any ideas?

thanks in advance
Andrew Thompson - 05 Jan 2006 15:49 GMT
> I want to make a grid of JLabels. I want to have 4 rows and 4
> columns.Any ideas?

Post layout questins to 'comp.lang.java.gui'.

Use a GridLayout(4,4), or GL(0,4) or GL(4,0).
<http://java.sun.com/j2se/1.5.0/docs/api/java/awt/GridLayout.html#GridLayout(int,
%20int
)>

HTH

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew

Tris Orendorff - 06 Jan 2006 20:22 GMT
> I want to make a grid of JLabels. I want to have 4 rows and 4
> columns.Any ideas?

Yes!  Try using a gridLayout, eg setLayout(new GridLayout(4,4));  See
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/GridLayout.html for
details.

Signature

Sincerely,

Tris Orendorff
[Two antennae meet on a roof, fall in love and get married. The ceremony
wasn't much, but the reception was excellent.]



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.