Package javax.swing

Examples of javax.swing.JTabbedPane$Page


   *
   * @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

    final Container          cp      = getContentPane();
    final Application        app      = AbstractApplication.getApplication();
//    final JPanel          buttonPanel;
    final Box            buttonPanel;
    final JTabbedPane        ggTabPane;
    final String          abCfgID;
    final AudioBoxConfig      abCfg;
    JButton              ggButton;
//    Param              p;

    audioPrefs      = app.getUserPrefs().node( PrefsUtil.NODE_AUDIO );
    abCfgID        = audioPrefs.get( PrefsUtil.KEY_AUDIOBOX, AudioBoxConfig.ID_DEFAULT );
    abCfg        = new AudioBoxConfig( audioPrefs.node( PrefsUtil.NODE_AUDIOBOXES ).node( abCfgID ));

    audioHwChannels[0= abCfg.numInputChannels;
    audioHwChannels[1= abCfg.numOutputChannels;

    ggTabPane      = new JTabbedPane();

    // ---------- tabs ----------

    for( int i = 0; i < NUM_TABS; i++ ) {  // input + output tabs
      fromPrefs( i );
      ggTabPane.addTab( app.getResourceString( i == 0 ? "labelInputs" : "labelOutputs" ), null,
        createTab( i ), null );
    }

    // ---------- generic gadgets ----------

        buttonPanel = Box.createHorizontalBox(); // new JPanel( new FlowLayout( FlowLayout.RIGHT, 4, 4 ));
    buttonPanel.setBorder( BorderFactory.createEmptyBorder( 0, 0, 2, 0 ));
    buttonPanel.add( new HelpButton( "IOSetup" ));
    buttonPanel.add( Box.createHorizontalGlue() );
        ggButton  = new JButton( app.getResourceString( "buttonOk" ));
        ggButton.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
        final ControlRoomFrame f;
       
        for( int i = 0; i < NUM_TABS; i++ ) {
          if( !toPrefs( i )) return;
        }
        disposeAndClose();
// XXX ControlRoomFrame cannot rely on prefs since childAdded is
// never fired (probably bug in java or spi)
        f = (ControlRoomFrame) app.getComponent( Main.COMP_CTRLROOM );
        if( f != null ) f.refillIOConfigs();
     
    });
        buttonPanel.add( ggButton );
        ggButton  = new JButton( app.getResourceString( "buttonCancel" ));
        buttonPanel.add( ggButton );
        ggButton.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
        disposeAndClose();
      }
    });
    buttonPanel.add( CoverGrowBox.create() );
//    if( app.getUserPrefs().getBoolean( PrefsUtil.KEY_INTRUDINGSIZE, false )) {
//        buttonPanel.add( Box.createHorizontalStrut( 16 ));
//        }

    cp.add( ggTabPane, BorderLayout.CENTER );
        cp.add( buttonPanel, BorderLayout.SOUTH );
    AbstractWindowHandler.setDeepFont( cp );

    // ---------- ----------

    ggTabPane.setSelectedIndex( NUM_TABS - 1 );
    setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE );

    init();
    app.addComponent( Main.COMP_IOSETUP, this );
    }
View Full Code Here

    SpringPanel      p;
    JLabel        lb;
    GridBagLayout    lay;
    GridBagConstraints  con;

    ggTabPane = new JTabbedPane();
        ggTabPane.setTabLayoutPolicy( JTabbedPane.WRAP_TAB_LAYOUT );

    // ----- cursor tab ------
    c        = new JPanel();
    lay        = new GridBagLayout();
View Full Code Here

      }
    };
    tp.addActionListener(kernelChangedListener);
    tp.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));

    tabbedPane = new JTabbedPane();
    tabbedPane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    tabbedPane.addTab(app.getMenu("General"), createGeneralSettingsTab());
    tabbedPane.addTab(app.getMenu("Advanced"), createAdvancedSettingsTab());

    // Cancel and Export Button
View Full Code Here

      setIconImage(LResources.PROPERTIES_ICON.getImage());

      setTitle(LangTool.INSTANCE.getStringDialogFrame("PreferencesFrame.Pref")); //$NON-NLS-1$
      setLocation(dim.width/3, dim.height/4);

      final JTabbedPane tabbedPane = new JTabbedPane();
      final JPanel pGeneral = new JPanel(new BorderLayout());

      tabbedPane.add(LangTool.INSTANCE.getStringDialogFrame("PreferencesFrame.general"), createGeneralPanel()); //$NON-NLS-1$
      tabbedPane.add("LaTeX", createLatexPanel()); //$NON-NLS-1$
      tabbedPane.add(LangTool.INSTANCE.getStringDialogFrame("PreferencesFrame.folders"), createFoldersPanel()); //$NON-NLS-1$
      tabbedPane.add(LangTool.INSTANCE.getStringDialogFrame("PreferencesFrame.quality"), createQualityPanel()); //$NON-NLS-1$
      tabbedPane.add(LangTool.INSTANCE.getStringLaTeXDrawFrame("LaTeXDrawFrame.90"), createDisplayPanel()); //$NON-NLS-1$
      tabbedPane.add(LangTool.INSTANCE.getStringDialogFrame("PreferencesFrame.grid"), createGridPanel()); //$NON-NLS-1$

    pGeneral.add(tabbedPane, BorderLayout.CENTER);

    getContentPane().add(pGeneral);
      setSize(460, 320);
View Full Code Here

   */
  public AboutDialogueBox() {
    super();
    final int width      = 490;
    final int height    = 440;
    final JTabbedPane tabbedPane   = new JTabbedPane();

    setTitle(LResources.LABEL_ABOUT);

    createMainPanel(tabbedPane);
    createReleaseNotePanel(tabbedPane);
    createContributorsPanel(tabbedPane);
    createSystemPanel(tabbedPane);
    createLicensePanel(tabbedPane);

    tabbedPane.setPreferredSize(new Dimension(510, 290));
     setIconImage(LResources.ABOUT_ICON.getImage());
     getContentPane().add(tabbedPane);

     setSize(width, height);
     final Dimension dim = LSystem.INSTANCE.getScreenDimension();
View Full Code Here

TOP

Related Classes of javax.swing.JTabbedPane$Page

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.