⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e823. creating a jsplitpane container.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
A split pane divides its space between two components. The split pane contains a divider that allows the user to control the amount of space distributed to each component. 
    // Create a left-right split pane
    JSplitPane hpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftComponent, rightComponent);
    
    // Create a top-bottom split pane
    JSplitPane vpane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topComponent, bottomComponent);
    

By default, when the divider is dragged, a shadow is displayed to indicate where the divider would be when the mouse is released. It is possible for the split pane to continuously move the divider and resize its child components while the user is dragging the divider. 
    boolean b = vpane.isContinuousLayout();  // false by default
    
    // Set the split pane to continuously resize the child components
    // which the divider is dragged
    vpane.setContinuousLayout(true);

The split pane supports a one-touch-expandable capability that allows the user to conveniently move the divider to either end with a single click. This capability is enabled by setting the following property: 
    b = vpane.isOneTouchExpandable();        // false by default
    
    vpane.setOneTouchExpandable(true);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -