// To create a tabbed pane, see e828 创建JTabbedPane
    
    // Get the index of the currently selected tab
    int selIndex = pane.getSelectedIndex();
    
    // Select the last tab
    selIndex = pane.getTabCount()-1;
    pane.setSelectedIndex(selIndex);

 

Related Examples

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案