e831. 从JTabbedPane中删除一个卡片

 // To create a tabbed pane, see e828 创建JTabbedPane
    
    // Remove the last tab
    pane.remove(pane.getTabCount()-1);
    
    // Remove the tab with the specified child component
    pane.remove(component);
    
    // Remove all the tabs
    pane.removeAll();

 

Related Examples
posted @ 2018-09-06 09:16  borter  阅读(170)  评论(0编辑  收藏  举报