Package javax.swing

Examples of javax.swing.JTabbedPane$JTabInfo


      stripe.add(p);
    }
   
    mainGuiPanel.add(stripe);
         
    tabs = new JTabbedPane();
    /*
    // Register a change listener
    tabs.addChangeListener(new ChangeListener() {
      // This method is called whenever the selected tab changes
      public void stateChanged(ChangeEvent evt) {
View Full Code Here


     
    }

    /* create tabs */
   
    JTabbedPane tabs = new JTabbedPane();
    this.add(tabs);
       
    { // global statistics
     
      JPanel panel = new JPanel();
      panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
     
      panel.add(new JLabel("object types: " + classList.size()));
      panel.add(new JLabel("materials: " + materialList.size()));
     
      for (Stat stat : Stat.values()) {
        panel.add(new JLabel(statNames.get(stat) + ": "
            + stats.getGlobalCount(stat)));
      }
     
      tabs.addTab("Global", null, panel, "Global statistics");
      tabs.setMnemonicAt(0, KeyEvent.VK_G);
     
    } { // statistics per material
           
      JComponent component = createTableComponent(
          columnNames, perMaterialData, comparators);
     
      tabs.addTab("Materials", null, component,
          "Statistics per material");
     
      tabs.setMnemonicAt(1, KeyEvent.VK_M);
     
    } { // statistics per class
     
      JComponent component = createTableComponent(
          columnNames, perClassData, comparators);
           
      tabs.addTab("Classes", null, component,
          "Statistics per WorldObject class");
     
      tabs.setMnemonicAt(2, KeyEvent.VK_C);
     
    }
   
    setSize(800, 500);
   
View Full Code Here

    centerPanel = new JPanel();
    centerPanel.setBackground(Color.BLACK);
    frame.getContentPane().add(centerPanel, BorderLayout.CENTER);

    centerPanel.setLayout(new BorderLayout(0, 0));
    mainTabbedPane = new JTabbedPane(JTabbedPane.TOP);
    mainTabbedPane.setBackground(Color.BLACK);
    centerPanel.add(mainTabbedPane, BorderLayout.CENTER);

    JPanel startPanel_1 = new JPanel();
    startPanel_1.setForeground(SystemColor.menu);
View Full Code Here

   *  
   * @return javax.swing.JTabbedPane 
   */
  private JTabbedPane getRightTabbedPane() {
    if (rightTabbedPane == null) {
      rightTabbedPane = new JTabbedPane();
      rightTabbedPane.addTab("Scene Editor", null, getEditorPanel(), null);
      rightTabbedPane.addTab("Console", null, getConsolePanel(), null);
    }
    return rightTabbedPane;
  }
View Full Code Here

        JScrollBar hScrollBar = modelDetailsScrollPane.getHorizontalScrollBar();
        hScrollBar.setUnitIncrement(10);
        JScrollBar vScrollBar = modelDetailsScrollPane.getVerticalScrollBar();
        vScrollBar.setUnitIncrement(10);
       
        this.modelChartAndDetailsPanel = new JTabbedPane();
        this.modelChartAndDetailsPanel.addTab(LocalisationHelper.getString("data_panel_tab_chart"), modelChart);
        this.modelChartAndDetailsPanel.addTab(LocalisationHelper.getString("data_panel_tab_details"), modelDetailsScrollPane);
       
        this.viewBar = new ViewBar(this);
        this.propertyChangeSupport = new SwingPropertyChangeSupport(this);
View Full Code Here

   *
   * @return javax.swing.JTabbedPane
   */
  private JTabbedPane getOperatorsTabbedPane() {
    if (operatorsTabbedPane == null) {
      operatorsTabbedPane = new JTabbedPane();
      operatorsTabbedPane.addTab("Transform", null,
          getTransformersContentPanel(), null);
      operatorsTabbedPane.addTab("Create image", null,
          getCreatorsContentPanel(), null);
      operatorsTabbedPane.addTab("Load image", null,
View Full Code Here

   *
   * @return javax.swing.JTabbedPane
   */
  private JTabbedPane getShowErrorDlgTabbedPane() {
    if (showErrorDlgTabbedPane == null) {
      showErrorDlgTabbedPane = new JTabbedPane();
      showErrorDlgTabbedPane.addTab("Message", null,
          getShowErrorDlgMessagePnl(), null);
      showErrorDlgTabbedPane.addTab("Stacktrace", null,
          getShowErrorDlgStacktracePnl(), null);
    }
View Full Code Here

   *
   * @return javax.swing.JTabbedPane
   */
  private JTabbedPane getScriptRootTabbedPane() {
    if (scriptRootTabbedPane == null) {
      scriptRootTabbedPane = new JTabbedPane();
      scriptRootTabbedPane.addTab("Script", null, getScriptPanel(), null);
      scriptRootTabbedPane.addTab("Envelopes", null,
          getEnvelopeRootPanel(), null);
    }
    return scriptRootTabbedPane;
View Full Code Here

        JPanel pImg = new JPanel(new BorderLayout());
        pImg.add(img, BorderLayout.CENTER);
        pImg.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));

        JTabbedPane pane = new JTabbedPane();
        pane.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
        pane.add(Utilities.getLangueMessage(Constantes.MESSAGE_OPTIONS_PROJET_ASI), pasEncore());
        pane.add(Utilities.getLangueMessage(Constantes.MESSAGE_OPTIONS_SQL), pasEncore());
       
        p.add(BorderLayout.CENTER, pane);
        p.add(BorderLayout.SOUTH, MyPanelFactory.createBottomWhitePanel(new JButton(close)));

        this.getContentPane().add(p);
View Full Code Here

        JPanel pImg = new JPanel(new BorderLayout());
        pImg.add(img, BorderLayout.CENTER);
        pImg.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));

        JTabbedPane pane = new JTabbedPane();
        pane.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
        pane.add(Utilities.getLangueMessage(Constantes.MESSAGE_APROPOS) , pImg);
        pane.add(Utilities.getLangueMessage(Constantes.MESSAGE_AUTEUR), buildAuthorPane());
        //pane.add(Utilities.getLangueMessage(Constantes.MESSAGE_QUOI_DE_NEUF), buildWhatsnewPane());
        pane.add(Utilities.getLangueMessage(Constantes.MESSAGE_LICENCE), buildLicensePane());

        p.add(BorderLayout.CENTER, pane);
        p.add(BorderLayout.SOUTH, MyPanelFactory.createBottomWhitePanel(new JButton(close)));

        this.getContentPane().add(p);
View Full Code Here

TOP

Related Classes of javax.swing.JTabbedPane$JTabInfo

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.