Reputation: 109
I want to change the value of the selected tab but I don't know how!
private JTabbedPane tab = new JTabbedPane();
I used that to make the second tab active but it doesn't work : tab.getSelectedIndex()= 2
How to change selected tab value?
Upvotes: 1
Views: 282