how do i add a close button to my tabbed pane
Printable View
how do i add a close button to my tabbed pane
From JDK1.6 onwards, it is possible to add a component to a JTabbedPane's tab. In your case, just add a JButton, add an ActionListener to it and in the actionlistener, use yourTabbedPane.removeTabAt(tabIndex);
Kind regards,
Noel