Duplicate :
|
Name: krT82822 Date: 11/20/98 An application we are working requires that we be able to use different fonts on each tab of a JTabbedPane. Currently the only font used to draw the tab labels is the font associated with the JTabbedPane itself. Currently you can set the icon and the label for the tab but nothing else. One solution that would aid in this is to create a new class, say JTab, derived from JPanel. This would be the only objects you could add to the JTabbedPane. Then you could associate the icon, label, font, tooltip, and other useful things with the JTab. The current source code for JTabbedPane almost has this. The private inner class 'Page' could be made into this public 'JTab' class with a little extra work. (Review ID: 42983) ======================================================================