Package javax.swing

Examples of javax.swing.JSplitPane


        graphScrollPanel.setViewportBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
        legendPanel = new JPanel();

        JScrollPane legendScrollPanel = new JScrollPane(legendPanel);
        JSplitPane graphSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, graphScrollPanel, legendScrollPanel);

        this.add(mainPanel, BorderLayout.NORTH);
        this.add(graphSplitPane, BorderLayout.CENTER);
        log.debug("End : init1");
    }
View Full Code Here


        tableHeaders.getTableHeader().setDefaultRenderer(
                new HeaderAsPropertyRenderer());
        RendererUtils.applyRenderers(tableHeaders, RENDERERS_HEADERS);

        // Create the split pane
        JSplitPane topSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
                GuiUtils.makeScrollPane(tableParams),
                GuiUtils.makeScrollPane(tableHeaders));
        topSplit.setOneTouchExpandable(true);
        topSplit.setResizeWeight(0.50); // set split ratio

        JSplitPane paneParsed = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
                GuiUtils.makeScrollPane(tableRequest), topSplit);
        paneParsed.setOneTouchExpandable(true);
        paneParsed.setResizeWeight(0.25); // set split ratio (only 5 lines to display)

        // Hint to background color on bottom tabs (grey, not blue)
        JPanel panel = new JPanel(new BorderLayout());
        panel.add(paneParsed);
        return panel;
View Full Code Here

                logger.debug(event.toString());
                XBayaGUI.this.activeTabChanged();
            }
        });

        this.leftSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true);
        this.rightSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true);
        this.mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, this.leftSplitPane, this.rightSplitPane);
        contentPane.add(this.mainSplitPane, BorderLayout.CENTER);

        this.leftSplitPane.setOneTouchExpandable(true);
        this.rightSplitPane.setOneTouchExpandable(true);
        this.mainSplitPane.setOneTouchExpandable(true);
View Full Code Here

      treeHolder.add(treeView, BorderLayout.CENTER);

      //m_perspectiveHolder.add(treeHolder, BorderLayout.WEST);


      JSplitPane p2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, treeHolder, m_flowTabs);
      p2.setOneTouchExpandable(true);

      add(p2, BorderLayout.CENTER);

      Dimension d = treeView.getPreferredSize();
      d = new Dimension((int)(d.getWidth() * 1.5), (int)d.getHeight());
View Full Code Here

      m_logPanels.add(tabLogPanel);

      m_environmentSettings.add(new Environment());
      m_filePaths.add(new File("-NONE-"));

      JSplitPane p2 = new JSplitPane(JSplitPane.VERTICAL_SPLIT, p1, tabLogPanel);
      p2.setOneTouchExpandable(true);
      //p2.setDividerLocation(500);
      p2.setDividerLocation(0.7);
      p2.setResizeWeight(1.0);
      JPanel splitHolder = new JPanel();
      splitHolder.setLayout(new BorderLayout());
      splitHolder.add(p2, BorderLayout.CENTER);

      //add(splitHolder, BorderLayout.CENTER);
View Full Code Here

        outputTextArea = new JTextArea();
        outputTextArea.setFont(font);
        outputTextArea.setEditable(false);

        JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);

        JScrollPane scriptScrollPane = new JScrollPane(scriptTextArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
        splitPane.setTopComponent(scriptScrollPane);

        JScrollPane outputScrollPane = new JScrollPane(outputTextArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
        splitPane.setBottomComponent(outputScrollPane);

        contentPane.add(splitPane, BorderLayout.CENTER);

        splitPane.setDividerLocation(700);

        mainFrame = new JFrame("vlcj scripting");
        mainFrame.setSize(1600, 1000);
        mainFrame.setContentPane(contentPane);
        mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here

      int m_width=maxdim.width-100;
      int m_height=maxdim.height-100;
      m_frame.setBounds( (int) ((maxdim.width-m_width)/2), 20, m_width, m_height);
          
      //Right panel
      JSplitPane rightSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, new NodePanel(this, context) , new CommonPanel(this));
      rightSplitPane.setOneTouchExpandable(true);
      rightSplitPane.setDividerLocation((int) (m_height*2/3));

      //General Panel
      this.nodesTree = new NodesTree(this, context);
      JSplitPane gSplitPane=new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, this.nodesTree , rightSplitPane);
      gSplitPane.setOneTouchExpandable(true);
      gSplitPane.setDividerLocation((int) (m_width/4));

      m_frame.getContentPane().add(gSplitPane);
    }

    // Now try to manually initialize the plugin list
View Full Code Here

        PropertySheetView right;
        right = new PropertySheetView();
        right.setDescriptionAreaVisible(false);
       
        JSplitPane splitPane;
        splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, left, right);
        splitPane.setResizeWeight(0.4);
        splitPane.setDividerSize(3);

        setTitle("Splunk Explorer");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        getContentPane().add(splitPane);
View Full Code Here

   *
   * @return javax.swing.JSplitPane
   */
  private JSplitPane getFormulaExplorerSplitPane() {
    if (formulaExplorerSplitPane == null) {
      formulaExplorerSplitPane = new JSplitPane();
      formulaExplorerSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
      formulaExplorerSplitPane
          .setTopComponent(getFormulaExplorerDrawPanel());
      formulaExplorerSplitPane
          .setBottomComponent(getFormulaExplorerValuesPanel());
View Full Code Here

   *  
   * @return javax.swing.JSplitPane 
   */
  private JSplitPane getHSplitPane() {
    if (hSplitPane == null) {
      hSplitPane = new JSplitPane();
      hSplitPane.setDividerSize(8);
      hSplitPane.setOneTouchExpandable(true);
      hSplitPane.setLeftComponent(getLeftSplitPanel());
      hSplitPane.setRightComponent(getRightSplitPanel());
      hSplitPane.setDividerLocation(700);
View Full Code Here

TOP

Related Classes of javax.swing.JSplitPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.