Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding components on JTabbedPane tab  RSS feed

 
Richard Teston
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to add a component for example JCheckBox to JTabbedPane's tab?
Thanks
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one way to find out would be to take a look at the source of JTabbedPane and TabbedPaneUI. The sources are included in the JDK (sources.zip).
From the sources you can tell how the tab is created and whether there is a method that can be overriden or some field that can be set to change the appearance.
Chantal
 
Richard Teston
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, i look for that already but i can't find the method that i should override. Please help me.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!