Package javax.swing

Examples of javax.swing.JSplitPane


   *
   * @return javax.swing.JSplitPane
   */
  private JSplitPane getTransformersSplitPane() {
    if (transformersSplitPane == null) {
      transformersSplitPane = new JSplitPane();
      transformersSplitPane.setPreferredSize(new Dimension(78, 78));
      transformersSplitPane.setDividerLocation(200);
      transformersSplitPane
          .setTopComponent(getTransformersCenterScrollPane());
      transformersSplitPane
View Full Code Here


   *
   * @return javax.swing.JSplitPane
   */
  private JSplitPane getCreatorsSplitPane() {
    if (creatorsSplitPane == null) {
      creatorsSplitPane = new JSplitPane();
      creatorsSplitPane.setDividerLocation(200);
      creatorsSplitPane.setTopComponent(getCreatorsCenterScrollPane());
      creatorsSplitPane.setBottomComponent(getCreatorPropertiesPanel());
      creatorsSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
    }
View Full Code Here

   *
   * @return javax.swing.JSplitPane
   */
  private JSplitPane getLoadersSplitPane() {
    if (loadersSplitPane == null) {
      loadersSplitPane = new JSplitPane();
      loadersSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
      loadersSplitPane.setTopComponent(getLoadersScrollPane());
      loadersSplitPane.setBottomComponent(getLoadersPropertiesPanel());
      loadersSplitPane.setDividerLocation(200);
    }
View Full Code Here

   *
   * @return javax.swing.JSplitPane
   */
  private JSplitPane getScriptCenterSplitPane() {
    if (scriptCenterSplitPane == null) {
      scriptCenterSplitPane = new JSplitPane();
      scriptCenterSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
      scriptCenterSplitPane.setTopComponent(getScriptTableScrollPane());
      scriptCenterSplitPane.setBottomComponent(getScriptActionPanel());
      scriptCenterSplitPane.setDividerLocation(120);
    }
View Full Code Here

        "environment in your browser");
   
    lowerPanel.add(butAndHistHolder, BorderLayout.WEST);
    lowerPanel.add(m_outputPane, BorderLayout.CENTER);
   
    m_splitP = new JSplitPane(JSplitPane.VERTICAL_SPLIT, m_configPane, lowerPanel);
    m_splitP.setOneTouchExpandable(true);

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

      });
    }

    private MyWindow(int orientation, Class<?> testClass) {
      super(testClass);
      splitPane = new JSplitPane(orientation, new JList(), new JList());
      splitPane.setDividerLocation(150);
      splitPane.setPreferredSize(new Dimension(300, 300));
      add(splitPane);
    }
View Full Code Here

    @RunsInEDT
    public JSplitPane createNew() {
      return execute(new GuiQuery<JSplitPane>() {
        @Override
        protected JSplitPane executeInEDT() {
          JSplitPane splitPane = new JSplitPane();
          splitPane.setOrientation(orientation);
          splitPane.setName(name);
          if (leftComponent != null) {
            splitPane.setLeftComponent(leftComponent);
          }
          if (rightComponent != null) {
            splitPane.setRightComponent(rightComponent);
          }
          return splitPane;
        }
      });
    }
View Full Code Here

      });
    }

    private MyWindow() {
      super(JSplitPaneSetDividerLocationTask_setDividerLocation_Test.class);
      splitPane = new JSplitPane(VERTICAL_SPLIT, new JList(), new JList());
      splitPane.setDividerLocation(150);
      splitPane.setPreferredSize(new Dimension(300, 300));
      add(splitPane);
    }
View Full Code Here

    for (final QueryResult qr : resultQueryEvaluator) {
      if (!(qr instanceof BooleanResult) && (qr.size() > 0))
        tablesOccur = true;
    }

    JSplitPane splitPane_result = null;

    if (tablesOccur) {

      final JCheckBox cb_prefixes = new JCheckBox("Use prefixes", true);
      cb_prefixes.setSelected(usePrefixes.isTrue());
      cb_prefixes.addItemListener(new ItemListener() {
        @Override
        public void itemStateChanged(final ItemEvent e) {
          // set boolean flag...
          if (e.getStateChange() == ItemEvent.SELECTED) {
            usePrefixes.setValue(true);
          } else if (e.getStateChange() == ItemEvent.DESELECTED) {
            usePrefixes.setValue(false);
          }
          if (prefixInstance != null)
            prefixInstance.setStatus(usePrefixes.isTrue());
          resultpanel.removeAll();
          try {
            ResultPanelHelper.setupResultPanel(resultpanel, resultQueryEvaluator, debugViewerCreator, materializationInfo, inferenceRules,  ruleApplicationsForMaterialization, errorsInOntology, usePrefixes,  prefixInstance, contentPane );
          } catch(Exception exception){
            System.err.println("Should only occurr if it already occurred before:\n"+exception);
            exception.printStackTrace();
          }
          contentPane.validate();
        }
      });

      final JPanel prefixesPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 1, 0));
      prefixesPanel.add(cb_prefixes);
     
      if(buttonSuperPanel!=null){
        buttonSuperPanel.add(prefixesPanel, BorderLayout.SOUTH);
      } else {
        buttonpanel.add(prefixesPanel);
      }

      if (usePrefixes.isTrue()) {
        final JPanel pPanel = new JPanel(new BorderLayout());

        final JLabel info = new JLabel();
        info.setText("Prefixes:");

        final JPanel infoPanel = new JPanel(new FlowLayout(
            FlowLayout.LEFT));
        infoPanel.add(info);
        pPanel.add(infoPanel, BorderLayout.NORTH);

        final LuposDocument document = new LuposDocument();
        final LuposJTextPane ta_prefixes = new LuposJTextPane(document);
        document.init(TurtleParser.createILuposParser(new LuposDocumentReader(document)), false);

        // just to get all prefixes before displaying them...
        for(QueryResult qr: resultQueryEvaluator){
          qr.toString(prefixInstance);
        }
        if(errorsInOntology!=null){
          errorsInOntology.toString(prefixInstance);
        }
       
        ta_prefixes.setText(prefixInstance.getPrefixString("", "").toString());
        ta_prefixes.setEditable(false);
        final JScrollPane scroll = new JScrollPane(ta_prefixes);
        pPanel.add(scroll, BorderLayout.CENTER);

        splitPane_result = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
        splitPane_result.setOneTouchExpandable(true);
        splitPane_result.setContinuousLayout(true);
        splitPane_result.setTopComponent(pPanel);
        splitPane_result.setResizeWeight(0.15);

        resultpanel.add(splitPane_result, BorderLayout.CENTER);
      }
    }

    // --- output result table - end ---
    // final JScrollPane sp_result = new JScrollPane(resultTable);
    final QueryResult[] toDisplay;
    if(errorsInOntology!=null){
      toDisplay = new QueryResult[1+resultQueryEvaluator.length];
      toDisplay[0] = errorsInOntology;
      System.arraycopy(resultQueryEvaluator, 0, toDisplay, 1, resultQueryEvaluator.length);
    } else {
      toDisplay = resultQueryEvaluator;
    }

    final JScrollPane scrollpane = new JScrollPane(ShowResult.getResultPanel(errorsInOntology!=null, toDisplay, prefixInstance, resultOrder, null));

    if (usePrefixes.isTrue() && tablesOccur) {
      splitPane_result.setBottomComponent(scrollpane);
    } else {
      resultpanel.add(scrollpane, BorderLayout.CENTER);
    }

    ResultPanelHelper.updateButtonPanelSize(layout, resultpanel, contentPane.getSize(), buttonpanel, buttonPanelInference);
View Full Code Here

    this.rulePackageContainer = new RulePackageContainer(this);
    this.associationsContainer = new AssociationsContainer(this);

    this.treePane = new TreePane(this, this.ruleContainer, this.rulePackageContainer);

    this.splitPane = new JSplitPane();
    this.splitPane.setContinuousLayout(true);
    this.splitPane.setOneTouchExpandable(true);
    this.splitPane.setLeftComponent(this.treePane);
    this.splitPane.setRightComponent(new JPanel());
    this.splitPane.setDividerLocation(160);
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.