zoukankan      html  css  js  c++  java
  • e828. 创建JTabbedPane

    A tabbed pane is a container that displays only one child component at a time. Typically, the children are themselves containers of other components. Each child is associated with a visible tab on the tabbed pane. The user can choose a child to display by selecting the tab associated with that child.

        // Create a child container which is to be associated with a tab
        JPanel panel = new JPanel();
        // Add components to the panel...
        
        // Specify on which edge the tabs should appear
        int location = JTabbedPane.TOP; // or BOTTOM, LEFT, RIGHT
        
        // Create the tabbed pane
        JTabbedPane pane = new JTabbedPane();
        
        // Add a tab
        String label = "Tab Label";
        pane.addTab(label, panel);
    
    Related Examples
  • 相关阅读:
    python 操作数据库
    python学习
    Java学习(十)
    Java学习(九)
    Java学习(八)
    Java学习(七)
    Java学习(六)
    Java学习(五)
    Java学习(四)
    Java学习(三)
  • 原文地址:https://www.cnblogs.com/borter/p/9596290.html
Copyright © 2011-2022 走看看