Package javax.swing

Examples of javax.swing.JTabbedPane$Page


        lpd.dispose();
        if (!lpd.abort()) {
            JDialog dialog = new JDialog(dialogParent, LangageManager
                    .getProperty("statistic.statistic"));
            JTabbedPane tab = new JTabbedPane();
            SummaryPanel panel = new SummaryPanel();
            panel.getValidFileCountLabel().setText(
                    collector.getStatistic().getValidFileCount() + "");
            panel.getInvalidFileCountLabel().setText(
                    collector.getStatistic().getInvalidFileCount() + "");
            panel.getTotalMusicTimeLabel().setText(
                    collector.getStatistic().getTotalDuration());
            panel.getTotalFileSize().setText(
                    collector.getStatistic().getTotalFileSize());
            tab.addTab(LangageManager
                    .getProperty("statistic.summary"), panel);
            tab.addTab(LangageManager
                    .getProperty("statistic.codecs"), CategoryPanelCreator.createFor(collector
                    .getStatistic(), Statistic.MAP_CODEC, LangageManager
                    .getProperty("statistic.categorydescription.codec")));
            tab.addTab(LangageManager
                    .getProperty("statistic.bitrate"), CategoryPanelCreator
                    .createBitratePanel(collector.getStatistic()));
            tab.addTab(LangageManager
                    .getProperty("statistic.sampling"), CategoryPanelCreator.createFor(collector
                    .getStatistic(), Statistic.MAP_SAMPLING, LangageManager
                    .getProperty("statistic.categorydescription.sampling")));
            dialog.getContentPane().add(tab);
            dialog.pack();
View Full Code Here


        return result;
    }
    /** Init the widgets */
    public void init() {

        tabbedPane = new JTabbedPane();
        tabbedPane.getModel().addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                changeNameOfTask();
                fireDurationChanged();
            }
View Full Code Here

      }
      };
      builder.setI18N(i18n);
      final JComponent mainPage = builder.buildPlanePage(new GPOptionGroup[] {myGroup});
      mainPage.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
        tabbedPane = new JTabbedPane();
        tabbedPane.addTab(language.getText("general"), new ImageIcon(getClass()
                .getResource("/icons/properties_16.gif")), mainPage);
        tabbedPane.addTab(language.getText("daysOff"), new ImageIcon(getClass()
                .getResource("/icons/holidays_16.gif")),
                constructDaysOffPanel());
View Full Code Here

            if ( componentMap != null )
                componentMap.put( key, value );
        }

        JTabbedPane pane = new JTabbedPane( SwingConstants.BOTTOM );
        pane.setPreferredSize( new Dimension( 800, 400 ) );
        addComponentTabs( pane, components );

        return pane;
    }
View Full Code Here

   *  
   * @return javax.swing.JTabbedPane 
   */
  private JTabbedPane getJTabbedPaneExplo_Index() {
    if (jTabbedPaneExplo_Index == null) {
      jTabbedPaneExplo_Index = new JTabbedPane();
   
      jTabbedPaneExplo_Index.addTab(LangageManager.getProperty("miage.explorer"), null, getTablePanel(), null);
     
      String workDir = PreferencesManager.get("tageditor.tageditorframe.workingdir");
      if (workDir != null) {
View Full Code Here

        }
        myPanel = new JPanel(new BorderLayout());
        mySchemaPage = new SchemaComponent();
        myDataPage = new DataComponent(this, 1000);

        myComponent = new JTabbedPane();

        mySchemaPage.getComponent().putClientProperty(this, mySchemaPage);
        myDataPage.getComponent().putClientProperty(this, myDataPage);

        myComponent.insertTab(mySchemaPage.getTitle(), null, mySchemaPage.getComponent(), mySchemaPage.getTip(), 0);
View Full Code Here

    // bundlePanel.setPreferredSize(new Dimension(400, 300));

    toolBar       = makeToolBar();


    detailPanel   = new JTabbedPane();
    // detailPanel.setPreferredSize(new Dimension(400, 300));

    detailPanel.setTabPlacement(JTabbedPane.BOTTOM);

    detailPanel.setBorder(null);
View Full Code Here

   * @param name name of the window
   */
  ProgressLog(String name) {
    window = new JDialog(j2DClient.get().getMainFrame(), name);
   
    tabs = new JTabbedPane();
    tabs.setPreferredSize(new Dimension(PAGE_WIDTH, PAGE_HEIGHT));
    tabs.addChangeListener(new TabChangeListener());
   
    window.add(tabs);
    window.pack();
View Full Code Here

    // Add a background for the tabs. The column itself has none.
    JPanel tabBackground = new JPanel();
    tabBackground.setBorder(null);
    tabBackground.setLayout(new SBoxLayout(SBoxLayout.VERTICAL));
    JTabbedPane tabs = new JTabbedPane(JTabbedPane.BOTTOM);
    // Adjust the Tab Width, if we can. The default is pretty if there's
    // space, but in the column there are no pixels to waste.
    TabbedPaneUI ui = tabs.getUI();
    if (ui instanceof StyledTabbedPaneUI) {
      ((StyledTabbedPaneUI) ui).setTabLabelMargins(1);
    }
    tabs.setFocusable(false);
    tabs.add("Friends", buddyPane);

    tabs.add("Group", GroupPanelController.get().getComponent());

    tabBackground.add(tabs, SBoxLayout.constraint(SLayout.EXPAND_X, SLayout.EXPAND_Y));
    leftColumn.add(tabBackground, SBoxLayout.constraint(SLayout.EXPAND_X, SLayout.EXPAND_Y));

    return leftColumn;
View Full Code Here

  public SettingsDialog(Frame parent) {
    super(parent, "Settings");
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    int pad = SBoxLayout.COMMON_PADDING;
    setLayout(new SBoxLayout(SBoxLayout.VERTICAL, pad));
    tabs = new JTabbedPane();
    add(tabs);
    tabs.add("General", new GeneralSettings().getComponent());
    tabs.add("Sound", new SoundSettings().getComponent());
    setResizable(false);
    JButton closeButton = new JButton("Close");
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.