Package javax.swing

Examples of javax.swing.JTabbedPane$Page


                 new Insets(0,0,0,0), 0, 0));
    }
   
    @Override
  public void stateChanged(ChangeEvent ce) {
        JTabbedPane pane = (JTabbedPane) ce.getSource();
        current = pane.getSelectedIndex();
        panels.get(current).activate();
  }
View Full Code Here


    public Component getGUI() {
        if (panel == null) {
            Component[] layerComps = getLayers();

            panel = new JPanel();
            JTabbedPane tabs = new JTabbedPane();

            JPanel bfPanel = new JPanel();
            bfPanel.setLayout(new BoxLayout(bfPanel, BoxLayout.Y_AXIS));
            bfPanel.setAlignmentX(Component.CENTER_ALIGNMENT); // LEFT
            bfPanel.setAlignmentY(Component.CENTER_ALIGNMENT); // BOTTOM
            tabs.addTab("Layer Visibility", bfPanel);

            for (int i = 0; i < layerComps.length; i++) {
                Layer layer = (Layer) layerComps[i];
                Component layerGUI = layer.getGUI();
                if (layerGUI != null) {
                    tabs.addTab(layer.getName(), layerGUI);
                }

                VisHelper layerVisibility = new VisHelper(layer);
                bfPanel.add(layerVisibility);
            }
View Full Code Here

          prev.setRightComponent(split);
        }
      }
    } else if(mode==TAB) {
      if (tabPane == null) {
        tabPane = new JTabbedPane(
            orientation == JSplitPane.HORIZONTAL_SPLIT ? JTabbedPane.LEFT
                : JTabbedPane.TOP);
        tabPane.addMouseListener(this);
        if (firstSplitBorder == null) {
          // we dont need a split yet
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

  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);
          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

       
        addOnCurrentRow(new JLabel(resources.getString("nameOfComputedSource")));
        addOnCurrentRow(tfNewSourceName = new JTextField(), 4, true, false, true);
 
       
        tabbedPane = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
       
        GridBagPanel predefinedSources = new GridBagPanel();
        predefinedSources.addOnCurrentRow(cbxPredefined = new JComboBox(), 5, true, false, true);
        tabbedPane.add(predefinedSources, resources.getString("predefinedSources"));
       
View Full Code Here

    protected GatesPropertiesPanel gatesProperties;
   
    public GatedSvgShapePropertiesPanel(String shapeName) {
        super(shapeName);
       
        JTabbedPane plotPane = new JTabbedPane();
       
        // SVG shape properties
        JPanel sp = new JPanel (new BorderLayout());
        JLabel shapeTitle = new JLabel(resources.getStringValue("shape"));
        shapeTitle.setFont(new Font("Dialog", Font.PLAIN,18));
        sp.add(shapeTitle, BorderLayout.NORTH);
       
        svgShapeProperties = new SvgShapePropertiesPanel(shapeName);
        sp.add(svgShapeProperties, BorderLayout.CENTER);
       
        plotPane.addTab(resources.getStringValue("shape"), sp);
       
       
         // Gates properties
        JPanel gp = new JPanel (new BorderLayout());
        JLabel gatesTitle = new JLabel(resources.getStringValue("gates"));
        gatesTitle.setFont(new Font("Dialog", Font.PLAIN,18));
        gp.add(gatesTitle, BorderLayout.NORTH);
       
        gatesProperties = new GatesPropertiesPanel();
        gp.add(gatesProperties, BorderLayout.CENTER);
       
        plotPane.addTab(resources.getStringValue("gates"), gp);
       
       
        add(plotPane);
    }
View Full Code Here

      return null
    }
    dialog = new JDialog( parent, resources.getString("plotInformation"), false);
    Container contentPane = dialog.getContentPane();

    JTabbedPane informationPane = new JTabbedPane();
   
      // Hearder panel
        headerPanel = new HeaderPanel();


       
   
    // Statistic tab
    JPanel statistics2  = new JPanel(new BorderLayout());
    JPanel statistics  = new JPanel();
    statistics.setBorder(BorderFactory.createEmptyBorder(0,10,10,10));
    statistics.setLayout(new BoxLayout(statistics,BoxLayout.Y_AXIS));
   
    JPanel p1 = new JPanel(new BorderLayout());
    JLabel statTitle = new JLabel(resources.getStringValue("plotStatistics"));
    statTitle.setFont(new Font("Dialog", Font.PLAIN,18));
    p1.add(statTitle, BorderLayout.WEST);
   
    statistics.add(p1);
   
    statistics.add(createGlobalStatisticPanel());   
    statistics.add(createCurveStatisticsPanel());
 
    statistics2.add(statistics, BorderLayout.NORTH);
    informationPane.addTab(resources.getString("plotStatistics"),
            new JScrollPane(statistics2, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER ));


    contentPane.add(headerPanel, BorderLayout.NORTH);
    contentPane.add(informationPane, BorderLayout.CENTER);
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);
          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

    for (int i=0; i<cmps.length; ++i) {
      if (cmps[i] instanceof JTabbedPane) return (JTabbedPane)cmps[i];
    }
    // no pane, recurse
    for (int i=0; i<cmps.length; ++i) {
      JTabbedPane ret = null;
      if (cmps[i] instanceof Container) ret = findTab((Container)cmps[i]);
      if (ret!=null) return ret;
    }
    return 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.