• Post Reply Bookmark Topic Watch Topic
  • New Topic

Font Size on JTabbedPane

 
Robin Harriet
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know the best way to change the font style and/or fontsize on the tab of a JTabbedPane?
Thanks!
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Robin,
How about the following?
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.setFont( new Font( "Dialog", Font.BOLD|Font.ITALIC, 24 ) );
To easy?
Manfred.
 
Robin Harriet
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No such thing as too easy! I'll give it a try. Thanks!
Robin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!