Package java.awt

Examples of java.awt.CardLayout.show()


      if (plot.getRangeAxis() instanceof CyclicNumberAxis) cna = (CyclicNumberAxis)plot.getRangeAxis();
     
      panel.add(cbcycley = new ActionCheckBox(resources.getString("CyclicAxis"), cna!=null) {
        public void actionPerformed(ActionEvent e) {
          CardLayout cl = (CardLayout)(ycards.getLayout());
          if (isSelected()) cl.show(ycards, "cyclic");
          else cl.show(ycards, "normal");
        }
      });
      panel.add(cbinverty = new ActionCheckBox(resources.getString("Inverted"), plot.getRangeAxis().isInverted()) {
        public void actionPerformed(ActionEvent e) {
View Full Code Here


     
      panel.add(cbcycley = new ActionCheckBox(resources.getString("CyclicAxis"), cna!=null) {
        public void actionPerformed(ActionEvent e) {
          CardLayout cl = (CardLayout)(ycards.getLayout());
          if (isSelected()) cl.show(ycards, "cyclic");
          else cl.show(ycards, "normal");
        }
      });
      panel.add(cbinverty = new ActionCheckBox(resources.getString("Inverted"), plot.getRangeAxis().isInverted()) {
        public void actionPerformed(ActionEvent e) {
        }
View Full Code Here

              } else {
                nfformat.setEnabled(false);
                lformatdigits.setEnabled(false);
              }
            }
            cl.show(optionPanel, "text");
            break;
        }
        cbxAction.setSelectedIndex(currentAction.action);
        if (list!=null) list.repaint();
        inAction = false;
View Full Code Here

        switch (currentAction.action) {
          case AutomatonAction.MOVE_UP:
          case AutomatonAction.MOVE_RIGHT:
          case AutomatonAction.MOVE_DOWN:
          case AutomatonAction.MOVE_LEFT:
            cl.show(optionPanel, "move");
            if ((currentAction.option==null) || (!(currentAction.option instanceof Integer)))
              currentAction.option = lastMoveOp;
            lastMoveOp = (Integer)currentAction.option;
            if (currentAction.option.equals(AutomatonAction.OPTION_WRAP)) {
              rbWrap.setSelected(true);
View Full Code Here

            else rbDoNothing.setSelected(true);
            break;
          case AutomatonAction.SET_BACKGROUND_COLOR: 
          case AutomatonAction.SET_FRAME_COLOR:
          case AutomatonAction.SET_TEXT_COLOR:
            cl.show(optionPanel, "color");
            if ((currentAction.option==null) || (!(currentAction.option instanceof Color)))
              currentAction.option = lastColor;
            lastColor = (Color)currentAction.option;
            bchoosecolor.setBackground(lastColor);
            break;
View Full Code Here

        mapperPanel.addOnCurrentRow(bduplicateMapper);
        mapperPanel.carriageReturn();
        cards.add(mapperPanel, "mapper");
        CardLayout cl = (CardLayout) (cards.getLayout());
        if (cbxformat.getSelectedIndex() == TextShape.FORMAT_MAPPER) {
            cl.show(cards, "mapper");
        } else {
            cl.show(cards, "bounds");
        }
        tfText.getDocument().addDocumentListener(new DocumentListener() {
            public void insertUpdate(DocumentEvent e) {
View Full Code Here

        cards.add(mapperPanel, "mapper");
        CardLayout cl = (CardLayout) (cards.getLayout());
        if (cbxformat.getSelectedIndex() == TextShape.FORMAT_MAPPER) {
            cl.show(cards, "mapper");
        } else {
            cl.show(cards, "bounds");
        }
        tfText.getDocument().addDocumentListener(new DocumentListener() {
            public void insertUpdate(DocumentEvent e) {
                updateName();
            }
View Full Code Here

                } else if (cbxformat.getSelectedIndex() == TextShape.FORMAT_PRINTF) {
                    tfPrintfFormat.setEditable(true);
                }
                CardLayout cl = (CardLayout) (cards.getLayout());
                if (cbxformat.getSelectedIndex() == TextShape.FORMAT_MAPPER) {
                    cl.show(cards, "mapper");
                } else if ((cbxformat.getSelectedIndex() == TextShape.FORMAT_DATE)
                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_TIME)
                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_DATE_TIME)) {
                    cl.show(cards, "noAttributes");
                } else if ((cbxformat.getSelectedIndex() == TextShape.FORMAT_USE_DATA_SOURCE)
View Full Code Here

                if (cbxformat.getSelectedIndex() == TextShape.FORMAT_MAPPER) {
                    cl.show(cards, "mapper");
                } else if ((cbxformat.getSelectedIndex() == TextShape.FORMAT_DATE)
                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_TIME)
                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_DATE_TIME)) {
                    cl.show(cards, "noAttributes");
                } else if ((cbxformat.getSelectedIndex() == TextShape.FORMAT_USE_DATA_SOURCE)
                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_PRINTF)
                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_DATE_TIME)) {
                    cl.show(cards, "printfFormat");
                } else {
View Full Code Here

                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_DATE_TIME)) {
                    cl.show(cards, "noAttributes");
                } else if ((cbxformat.getSelectedIndex() == TextShape.FORMAT_USE_DATA_SOURCE)
                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_PRINTF)
                        || (cbxformat.getSelectedIndex() == TextShape.FORMAT_DATE_TIME)) {
                    cl.show(cards, "printfFormat");
                } else {
                    cl.show(cards, "jsynopticFormat");
                }
            }
        });
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.