Package javax.swing

Examples of javax.swing.JTabbedPane.addTab()


      springLayout.putConstraint(SpringLayout.EAST, mainTabbedPane, 0, SpringLayout.EAST, window.getContentPane());
      springLayout.putConstraint(SpringLayout.NORTH, mainTabbedPane, 0, SpringLayout.NORTH, window.getContentPane());
      springLayout.putConstraint(SpringLayout.WEST, mainTabbedPane, 0, SpringLayout.WEST, window.getContentPane());

      domInspector = new PdfInspectorSample();
      mainTabbedPane.addTab(
        "DOM Inspector",
        null,
        domInspector,
        null
        );
View Full Code Here


        // panel1.setBackground( new java.awt.Color( 235, 124, 25 ) );
        panel1.setLayout( gridBag1 );

        JTabbedPane tabbedPane = new JTabbedPane();
        // tabbedPane.setLayout(new BorderLayout());
        tabbedPane.addTab( DemoApp.getRes().getString( "Failure Detections" ), panel1 );
        tabbedPane.setMnemonicAt( 0, KeyEvent.VK_1 );

        buildCommand( panel1, gridBag1, c1, 1, DemoApp.getRes().getString( "Crash" ), "crash", DemoApp.getRes().getString( "Simulate a Application Crash" ) );
        buildCommand( panel1, gridBag1, c1, 1, DemoApp.getRes().getString( "Out of Memory" ), "out_of_mem", DemoApp.getRes().getString( "Simulate a Out Of Memory Error" ) );
        buildCommand( panel1, gridBag1, c1, 1, DemoApp.getRes().getString( "Frozen" ), "frozen", DemoApp.getRes().getString( "Simulate a Frozen JVM" ) );
View Full Code Here

        buildCommand( panel1, gridBag1, c1, 2, DemoApp.getRes().getString( "Deadlock" ), "deadlock", DemoApp.getRes().getString( "Simulate a Thread Deadlock" ) );

        JPanel panel2 = new JPanel();
        panel2.setLayout( gridBag2 );
        // panel2.setBackground( Color.yellow );
        tabbedPane.addTab( DemoApp.getRes().getString( "Feature Demo" ), panel2 );
        tabbedPane.setMnemonicAt( 1, KeyEvent.VK_2 );
        buildCommand( panel2, gridBag2, c2, 3, DemoApp.getRes().getString( "Email" ), "mail", DemoApp.getRes().getString( "Activates the email functionality" ) );

        buildCommand( panel2, gridBag2, c2, 3, DemoApp.getRes().getString( "WrapperExec" ), "exec", DemoApp.getRes().getString( "Creates a managed Child Process" ) );
        String os = System.getProperty( "os.name" );
View Full Code Here

        }
        tabbedPane.removeAll();
        for (Iterator<String> i=map.keySet().iterator(); i.hasNext();) {
            String title = i.next();
            BasePanel panel = map.get(title);
            tabbedPane.addTab(title, panel);
        }
    }

    public int compare(String o1, String o2) {
        return o1.toLowerCase().compareTo(o2.toLowerCase());
View Full Code Here

                    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")));
View Full Code Here

                    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
View Full Code Here

                    .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
View Full Code Here

                    .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

        m_spinner_SlideShowTimer = new JNumberSpinner(new SpinnerNumberModel(0, 0, 1000, 5));
        m_spinner_SlideShowTimer.setValue(Main.m_settings.getSlideShowTimer()/1000);
        panelSlideShow.addComponent(m_spinner_SlideShowTimer, 0, row, GridBagConstraints.WEST, new Insets(5, 0, 0, 0));
        panelSlideShow.addComponent(new JLabel(Main.getString("settings_label_slideshowtimer_sec")), GridBagConstraints.RELATIVE, row, GridBagConstraints.WEST, new Insets(2, 5, 0, 0));

        tab.addTab(Main.getString("settings_tab_tree"), panelTree);
        tab.addTab(Main.getString("settings_tab_table"), panelTable);
        tab.addTab(Main.getString("settings_tab_image"), panelImage);
        tab.addTab(Main.getString("settings_tab_slideshow"), panelSlideShow);
        tab.addTab(Main.getString("settings_tab_tooltip"), panelToolTip);
        tab.addTab(Main.getString("settings_tab_other"), panelOther);
View Full Code Here

        m_spinner_SlideShowTimer.setValue(Main.m_settings.getSlideShowTimer()/1000);
        panelSlideShow.addComponent(m_spinner_SlideShowTimer, 0, row, GridBagConstraints.WEST, new Insets(5, 0, 0, 0));
        panelSlideShow.addComponent(new JLabel(Main.getString("settings_label_slideshowtimer_sec")), GridBagConstraints.RELATIVE, row, GridBagConstraints.WEST, new Insets(2, 5, 0, 0));

        tab.addTab(Main.getString("settings_tab_tree"), panelTree);
        tab.addTab(Main.getString("settings_tab_table"), panelTable);
        tab.addTab(Main.getString("settings_tab_image"), panelImage);
        tab.addTab(Main.getString("settings_tab_slideshow"), panelSlideShow);
        tab.addTab(Main.getString("settings_tab_tooltip"), panelToolTip);
        tab.addTab(Main.getString("settings_tab_other"), panelOther);
        tab.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.