zl程序教程

您现在的位置是:首页 >  其它

当前栏目

e829. 获得和设置JTabbedPane 的卡片

设置 获得 卡片
2023-09-14 09:11:59 时间
 // 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