• Post Reply Bookmark Topic Watch Topic
  • New Topic

Align Tab text to left

 
Dean Reedy
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 897
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!