aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Align Tab text to left Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Align Tab text to left" Watch "Align Tab text to left" New topic
Author

Align Tab text to left

Dean Reedy
Ranch Hand

Joined: Sep 10, 2001
Posts: 89
I have a JTabbed Panel and I would like the tab desciption to be aligned to the left(Step1,Step2...), because it currently centers the text.

tabbedPane.addTab("Step 1/Campaign",null, new CampaignPanel(),"General Campaign Information");
tabbedPane.addTab("Step 2/MOP", null, new MOPPanel(),"Method of Payment Entry");

thanks,
Dean
Mark Fletcher
Ranch Hand

Joined: Dec 08, 2001
Posts: 897
Hi,
Checking the Sun API's I couldnt find any methods that align the text to the left. I know this is the default on tabbed panes on windows. AFAIK the labels are just text strings, although they may be icons as well, that are centred by default.
Sorry,
Mark


Mark Fletcher - http://www.markfletcher.org/blog
I had some Java certs, but they're too old now...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Align Tab text to left
 
Similar Threads
questions about jtabbedpane
Default tab setting in Swing
JtabbedPane Question
JTabbedPane.getTabComponentAt(int) is not working
jtabbedpane is a pain in the butt; how do I place labels and move them around?