**URGENT** How could I add a compenet to a tabbed pane ontab place?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Pary_Alavi
Posted On:   Monday, April 21, 2003 05:30 AM

Hello


I have a tabbed pane and I want to add a close(or exit)'X' button at the tab bar place of the tab panes' tab pages.You know I want to use the tab bar as a tool bar with only one close button.
Thanx

Re: **URGENT** How could I add a compenet to a tabbed pane ontab place?

Posted By:   Tenney_Yakuu  
Posted On:   Tuesday, April 22, 2003 08:08 PM

you must overload JTabbedPane's paint(Graphics g) method.
You can implement it two ways:
1.use a "X" Imageicon.
2.paint your own "X".
About | Sitemap | Contact