Results 1 to 3 of 3
Thread: GUI Trouble
- 03-06-2010, 11:03 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 2
- Rep Power
- 0
GUI Trouble
Hi,
I am new to JAVA.
I have two JLabels with having letters different Font Sizes. I just want to align them so that
the base of the letters are in the same line. Something like this:
.... IIIIII
A .. II
AA IIIIII ------> Same base line
I tried using Various Layout Managers: BoxLaout, GridBagLayout, but am missing something and I dont want to do it by Trial and Error.
If someone can help me understand how to do it that woud be great.
Thanks in anticipation.
- 03-06-2010, 11:52 PM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,145
- Rep Power
- 5
Maybe FlowLayout.setAlignOnBaseline(...);
If you need more help post your SSCCE.
- 03-07-2010, 12:10 AM #3
Member
- Join Date
- Mar 2010
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
trouble with a class
By Alexander Montero in forum New To JavaReplies: 2Last Post: 06-17-2009, 10:01 PM -
Here comes trouble... :-)
By sargehendricks in forum IntroductionsReplies: 1Last Post: 04-23-2009, 03:18 PM -
Trouble with ArrayList
By John D. in forum New To JavaReplies: 4Last Post: 03-18-2009, 07:43 PM -
Got Trouble with JSlider
By hungleon88 in forum Advanced JavaReplies: 6Last Post: 08-30-2008, 05:02 PM -
having some trouble
By Unknown1369 in forum New To JavaReplies: 13Last Post: 07-21-2008, 11:52 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks