I have two JTabbedPanes, JTabbedPane1 & 2 How can I press button in JTabbedPane2 to show JTabbedPane1 ?
Here is the code for JTabbedPane:
public cla
its very simple: use the code below:
JTabbedpane.setSelectedIndex();
what ever the name is of you J Panel replace it with the above JTabbedpane and for example you want to select the first tabs simply put 0 in bracket and if you want to select second tab then put 1 in bracket eg: my J tabbed pane is called jtabbedpanel and I want the first tab then the line will look as:
jtabbedpanel.setSelectedIndex(0);
hope this helps!!