Package javax.swing

Examples of javax.swing.JTabbedPane$Page


    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          BoundsPanel plotPanel = null;
          if (tab!=null) tab.add(plotPanel = new BoundsPanel(),0);
          int result = JOptionPane.showConfirmDialog(null, panel,
            resources.getString("ChartProperties"), JOptionPane.OK_CANCEL_OPTION,
            JOptionPane.PLAIN_MESSAGE);
          if (result == JOptionPane.OK_OPTION) {
            panel.updateChartProperties(chart);
View Full Code Here


  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          XYPlot plot = (XYPlot)chart.getXYPlot();
          PlotPanel plotPanel = new PlotPanel();
          Container c = (Container)plotPanel.getComponent(0);
          Box b = Box.createHorizontalBox();
          b.add(new JLabel(resources.getString("TransparencyCoefficient")));
          NumberField nfalpha;
          b.add(Box.createHorizontalGlue());
          b.add(nfalpha = new NumberField(plot.getForegroundAlpha()));
          c.add(b);
          b = Box.createHorizontalBox();
          JCheckBox cbDrawContour;
          b.add(cbDrawContour = new JCheckBox(resources.getString("OutlineEachSegment"), ((JSynopticAreaXYItemRenderer)plot.getRenderer()).isOutline()));
          b.add(Box.createHorizontalGlue());
          c.add(b);
          if (tab!=null) tab.add(plotPanel,0);
          int result = JOptionPane.showConfirmDialog(null, panel,
            resources.getString("ChartProperties"), JOptionPane.OK_CANCEL_OPTION,
            JOptionPane.PLAIN_MESSAGE);
          if (result == JOptionPane.OK_OPTION) {
            panel.updateChartProperties(chart);
View Full Code Here

   */
  public void paintIcon(Component c, Graphics g, int x, int y) {
    boolean doPaintCloseIcon = true;
    try {
      // JComponent.putClientProperty("isClosable", new Boolean(false));
      JTabbedPane tabbedpane = (JTabbedPane) c;
      int tabNumber = tabbedpane.getUI().tabForCoordinate(tabbedpane, x, y);
      JComponent curPanel = (JComponent) tabbedpane.getComponentAt(tabNumber);
      Object prop = null;
      if ((prop = curPanel.getClientProperty("isClosable")) != null) {
        doPaintCloseIcon = (Boolean) prop;
      }
    } catch (Exception ignored) {/*Could probably be a ClassCastException*/}
 
View Full Code Here

   
    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          PlotPanel plotPanel = null;
          if (tab!=null) tab.add(plotPanel = new PlotPanel(),0);
          int result = JOptionPane.showConfirmDialog(null, panel,
            resources.getString("ChartProperties"), JOptionPane.OK_CANCEL_OPTION,
            JOptionPane.PLAIN_MESSAGE);
          if (result == JOptionPane.OK_OPTION) {
            panel.updateChartProperties(chart);
View Full Code Here

       
        _scrollable = scrollable;
        _closable = closable;

        createCardPopupMenu();
        _namesPane = new JTabbedPane();
        _namesPane.addChangeListener(this);
        _namesPane.addMouseListener(this);
        add(BorderLayout.NORTH, _namesPane);

        _components = new Vector();
View Full Code Here

    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

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.