Examples of JTabbedPane


Examples of javax.swing.JTabbedPane

  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

Examples of javax.swing.JTabbedPane

       
        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

Examples of javax.swing.JTabbedPane

    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

Examples of javax.swing.JTabbedPane

      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

Examples of javax.swing.JTabbedPane

  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

Examples of javax.swing.JTabbedPane

    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

Examples of javax.swing.JTabbedPane

    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

Examples of javax.swing.JTabbedPane

  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

Examples of javax.swing.JTabbedPane

   */
  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

Examples of javax.swing.JTabbedPane

   
    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
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.