Package javax.swing

Examples of javax.swing.JTabbedPane


    createContent();
  }
 
  protected void createContent(){

    JTabbedPane plotPane = new JTabbedPane();

    // Axis pane
    JPanel axisPaneContainer = new JPanel (new BorderLayout());
    JLabel axisTitle = new JLabel(resources.getStringValue("axisLabel"));
    axisTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    axisPaneContainer.add(axisTitle, BorderLayout.NORTH);
   
    axisPane = new JPanel ();
    axisPane.setLayout(new BoxLayout(axisPane, BoxLayout.Y_AXIS));
    axeprop=new AxePropertiesPanel[4];
   
    axisPane.add(axeprop[0]=new AxePropertiesPanel(resources.getStringValue("primXSection"), "primX", true, null));
    axisPane.add(axeprop[1]=new AxePropertiesPanel(resources.getStringValue("primYSection"), "primY", false, null));
    axisPane.add(axeprop[2]=new AxePropertiesPanel(resources.getStringValue("secXSection"), "secX", false, null));
    axisPane.add(axeprop[3]=new AxePropertiesPanel(resources.getStringValue("secYSection"), "secY", false, null));
    axisPaneContainer.add(axisPane,BorderLayout.CENTER );
   
    JPanel s1 = new JPanel (new BorderLayout());
    s1.add(axisPaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("axisLabel"), s1);
 
    // Curves pane
    JPanel curvePaneContainer = new JPanel (new BorderLayout());
    JLabel curveTitle = new JLabel(resources.getStringValue("curveLabel"));
    curveTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    curvePaneContainer.add(curveTitle, BorderLayout.NORTH);
   
    curvePane = new JPanel ();
    curvePane.setLayout(new BoxLayout(curvePane, BoxLayout.Y_AXIS));

    curvProp= createCurvePropertiesPanel()
    curvePane.add(curvProp);
   
    curvePaneContainer.add(curvePane,BorderLayout.CENTER);
   
    JPanel s2 = new JPanel (new BorderLayout());
    s2.add(curvePaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("curveLabel"), s2);
   
   
    //  Limit pane
    JPanel limitPaneContainer = new JPanel (new BorderLayout());
    JLabel limitTitle = new JLabel(resources.getStringValue("limitLabel"));
    limitTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    limitPaneContainer.add(limitTitle, BorderLayout.NORTH);
   
    limitPane = new JPanel ();
    limitPane.setLayout(new BoxLayout(limitPane, BoxLayout.Y_AXIS));

    limitProp=new LimitPropertiesPanel(resources);
    limitPane.add(limitProp);
   
    limitPaneContainer.add(limitPane,BorderLayout.CENTER);
   
    JPanel l = new JPanel (new BorderLayout());
    l.add(limitPaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("limitLabel"), l);


   
    // Plot settings pane
    JPanel plotSettingsContainer= new JPanel (new BorderLayout());
    JLabel plotTitle = new JLabel(resources.getStringValue("plotLabel"));
    plotTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    plotSettingsContainer.add(plotTitle, BorderLayout.NORTH);
   
    plotPropertiesPane = new JPanel ();
    plotPropertiesPane.setLayout(new BoxLayout(plotPropertiesPane, BoxLayout.Y_AXIS));
    plotPropertiesPane.add(Box.createVerticalStrut(10));
   
    JPanel title = new JPanel(new FlowLayout(FlowLayout.LEFT));
    title.add(new JLabel(resources.getStringValue("titleLabel")));
    tftitle = new JTextField(25);
    title.add(tftitle);
    plotPropertiesPane.add(title);
   
   
    plotPropertiesPane.add(Box.createVerticalStrut(10));
    JPanel legend = new JPanel (new FlowLayout(FlowLayout.LEFT));
    cblegend = resources.getCheckBox("legend", null);
    cbCurveInformation = resources.getCheckBox("curveInformation", null);
    legend.add(cblegend);
    legend.add(cbCurveInformation);
    plotPropertiesPane.add(legend);
   
    plotSettingsContainer.add(plotPropertiesPane,BorderLayout.CENTER);
    JPanel s3 = new JPanel (new BorderLayout());
    s3.add(plotSettingsContainer, BorderLayout.NORTH);
   
   
    plotPane.addTab(resources.getString("plotLabel"), s3);
   
   
    this.addOnCurrentRow(plotPane, 1, true, true, true);
  }
View Full Code Here


    super(curvesSize, shapeName);
  }
 
  protected void createContent(){

    JTabbedPane plotPane = new JTabbedPane();

    // Axis pane
    JPanel axisPaneContainer = new JPanel (new BorderLayout());
    JLabel axisTitle = new JLabel(resources.getStringValue("axisLabel"));
    axisTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    axisPaneContainer.add(axisTitle, BorderLayout.NORTH);
   
    axisPane = new JPanel ();
    axisPane.setLayout(new BoxLayout(axisPane, BoxLayout.Y_AXIS));
    axeprop=new AxePropertiesPanel[4];
    addPrimeAxes();
    addSecondaryAxes();
   
    axisPaneContainer.add(axisPane,BorderLayout.CENTER );
   
    JPanel s1 = new JPanel (new BorderLayout());
    s1.add(axisPaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("axisLabel"), s1);
 
    // Curves pane
    JPanel curvePaneContainer = new JPanel (new BorderLayout());
    JLabel curveTitle = new JLabel(resources.getStringValue("curveLabel"));
    curveTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    curvePaneContainer.add(curveTitle, BorderLayout.NORTH);
   
    curvePane = new JPanel ();
    curvePane.setLayout(new BoxLayout(curvePane, BoxLayout.Y_AXIS));

    curvProp=new CurvePropertiesPanel(resources)
    curvePane.add(curvProp);
   
    curvePaneContainer.add(curvePane,BorderLayout.CENTER);
   
    JPanel s2 = new JPanel (new BorderLayout());
    s2.add(curvePaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("curveLabel"), s2);
   
   
    //  Limit pane
    JPanel limitPaneContainer = new JPanel (new BorderLayout());
    JLabel limitTitle = new JLabel(resources.getStringValue("limitLabel"));
    limitTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    limitPaneContainer.add(limitTitle, BorderLayout.NORTH);
   
    limitPane = new JPanel ();
    limitPane.setLayout(new BoxLayout(limitPane, BoxLayout.Y_AXIS));

    limitProp=new LimitPropertiesPanel(resources);
    limitPane.add(limitProp);
   
    limitPaneContainer.add(limitPane,BorderLayout.CENTER);
   
    JPanel l = new JPanel (new BorderLayout());
    l.add(limitPaneContainer, BorderLayout.NORTH);
    plotPane.addTab(resources.getString("limitLabel"), l);

   
    // Plot settings pane
    JPanel plotSettingsContainer= new JPanel (new BorderLayout());
    JLabel plotTitle = new JLabel(resources.getStringValue("plotLabel"));
    plotTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    plotSettingsContainer.add(plotTitle, BorderLayout.NORTH);

   
    plotPropertiesPane = new JPanel();
    plotPropertiesPane.setLayout(new BoxLayout(plotPropertiesPane, BoxLayout.Y_AXIS));
    plotPropertiesPane.add(Box.createVerticalStrut(10));
   
    JPanel title = new JPanel(new FlowLayout(FlowLayout.LEFT));
    title.add(new JLabel(resources.getStringValue("titleLabel")));
    tftitle = new JTextField(25);
    title.add(tftitle);
    plotPropertiesPane.add(title);
   
   
    plotPropertiesPane.add(Box.createVerticalStrut(10));
    JPanel legend = new JPanel (new FlowLayout(FlowLayout.LEFT));
    cblegend = resources.getCheckBox("legend", null);
    cbCurveInformation = resources.getCheckBox("curveInformation", null);
    legend.add(cblegend);
    legend.add(cbCurveInformation);
    plotPropertiesPane.add(legend);

    plotSettingsContainer.add(plotPropertiesPane,BorderLayout.CENTER);
    JPanel s3 = new JPanel (new BorderLayout());
    s3.add(plotSettingsContainer, BorderLayout.NORTH);
   
   
    plotPane.addTab(resources.getString("plotLabel"), s3);
   
    addOnCurrentRow(plotPane, 1, true, true, true);
  }
View Full Code Here

   *
   * @return javax.swing.JTabbedPane
   */
  private JTabbedPane getJTabbedPane() {
    if (jTabbedPane == null) {
      jTabbedPane = new JTabbedPane();
      jTabbedPane.addTab("�ִ�", null, getJpSplit(), null);
    }
    return jTabbedPane;
  }
View Full Code Here

   *
   * @return javax.swing.JTabbedPane
   */
  private JTabbedPane getJTabbedPane() {
    if (jTabbedPane == null) {
      jTabbedPane = new JTabbedPane();
      jTabbedPane.addTab("�ִ�", null, getJpSplit(), null);
    }
    return jTabbedPane;
  }
View Full Code Here

      window.setBounds(x,y,windowSize.width,windowSize.height);
    }

    {
      final JTabbedPane mainTabbedPane = new JTabbedPane();
      mainTabbedPane.setPreferredSize(new Dimension(0, 400));
      mainTabbedPane.setMinimumSize(new Dimension(0, 300));
      window.getContentPane().add(mainTabbedPane,BorderLayout.CENTER);

      final JMenuBar menuBar = new JMenuBar();
      window.setJMenuBar(menuBar);
      final JMenu fileMenu = new JMenu();
      menuBar.add(fileMenu);
      fileMenu.setName("fileMenu");
      fileMenu.setText("File");
      fileMenu.setMnemonic(KeyEvent.VK_F);
      {
        final JMenuItem openMenuItem = new JMenuItem();
        openMenuItem.setText("Open...");
        fileMenu.add(openMenuItem);
        openMenuItem.addMouseListener(
          new MouseAdapter()
          {
            @Override
            public void mousePressed(
              MouseEvent e
              )
            {showOpenFileDialog();}
          }
          );
        fileMenu.addSeparator();
        final JMenuItem exitMenuItem = new JMenuItem();
        exitMenuItem.setText("Exit");
        fileMenu.add(exitMenuItem);
        exitMenuItem.addMouseListener(
          new MouseAdapter()
          {
            @Override
            public void mousePressed(
              MouseEvent e
              )
            {System.exit(1);}
          }
          );
      }

      springLayout.putConstraint(SpringLayout.SOUTH, mainTabbedPane, 0, SpringLayout.SOUTH, window.getContentPane());
      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

   *  
   * @return javax.swing.JTabbedPane 
   */
  private JTabbedPane getPluginTypesTabbedPane() {
    if (pluginTypesTabbedPane == null) {
      pluginTypesTabbedPane = new JTabbedPane();
      pluginTypesTabbedPane.addTab("Demultiplexer", null, getDemuxPanel(), null);
      pluginTypesTabbedPane.addTab("Codec", null, getCodecPanel(), null);
      pluginTypesTabbedPane.addTab("Effect", null, getEffectsPanel(), null);
      pluginTypesTabbedPane.addTab("Renderer", null, getRendererPanel(), null);
      pluginTypesTabbedPane.addTab("Multiplexer", null, getMuxPanel(), null);
View Full Code Here

   *  
   * @return javax.swing.JTabbedPane 
   */
  private JTabbedPane getRegistryTabbedPane() {
    if (registryTabbedPane == null) {
      registryTabbedPane = new JTabbedPane();
      registryTabbedPane.setPreferredSize(new Dimension(320, 240));
      //registryTabbedPane.addTab("User Settings", null, getUserSettingsPanel(), null);
      registryTabbedPane.addTab("Capture Devices", null, getCaptureDevicePanel(), null);
      registryTabbedPane.addTab("PlugIns", null, getPluginsPanel(), null);
      registryTabbedPane.addTab("MIME Types", null, getMimeTypesPanel(), null);
View Full Code Here

   *
   */
  private void setSelectedObjectPanel(ObjectTreeTabbedPane pane)
  {
        _selectedObjTreeTabbedPane = pane;
    JTabbedPane comp = null;
    if (pane != null)
    {
      comp = pane.getTabbedPane();
    }
    if (comp == null)
View Full Code Here

  private void setupTabbedPane(ObjectTreeTabbedPane pane)
  {
    final SessionProperties props = _session.getProperties();
    pane.rebuild();
    final JTabbedPane p = pane.getTabbedPane();
    p.setTabPlacement(props.getObjectTabPlacement());
    p.addChangeListener(_tabPnlListener);
  }
View Full Code Here

          .append(" - it was ")
          .append(src == null ? "null" : src.getClass().getName());
        s_log.error(buf.toString());
        return;
      }
      JTabbedPane tabPane = (JTabbedPane)src;

      Object prop = tabPane.getClientProperty(ObjectTreeTabbedPane.IClientPropertiesKeys.TABBED_PANE_OBJ);
      if (!(prop instanceof ObjectTreeTabbedPane))
      {
        StringBuilder buf = new StringBuilder();
        buf.append("Client property in JTabbedPane was not an ObjectTreeTabbedPane")
          .append(" - it was ")
View Full Code Here

TOP

Related Classes of javax.swing.JTabbedPane

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.