I have a tabbed pane including five tabs on it . This tabbed pane is on a JPanel
I use a button on another JPanel
to get fourth tab as leading tab . But when I click on the button first tab is still display and I have to move to the fourth one manually . Have any ideas . Thanks in deep.
Button action
Center instance1 = Center.getInstance();
instance1.doClickHistoryBtn();
doClickHistoryBtn() method
public void doClickHistoryBtn(){
history_btn.doClick();
}
When I execute this doClickHistoryBtn() method , History_panel is loading.
second JPanel (History_panel)
private JPanel history_panel1;
private JPanel history_panel2;
private JPanel history_panel3;
private JPanel history_panel4;
private JPanel history_panel5;
public History_panel()
{
initComponents();
setPanels();
}
private void setPanels(){
}
This is my first screen.
Expected
Actual