Package java.awt

Examples of java.awt.CardLayout.show()


  createdInquisitors.put(selectedParameter, inq);
  cardPanel.add(inq.getPanel(), inq.getPanelName());
    }

    CardLayout cardLayout = (CardLayout)cardPanel.getLayout();
    cardLayout.show(cardPanel, inq.getPanelName());

    // Fill card
    inq.copyParamIntoGUI();
}
View Full Code Here


* Displays the swing page, building it first if necessary.
*/
void showPage() {
    getPage();      // Make sure page completely built
    CardLayout cardLayout = (CardLayout)parent.getLayout();
    cardLayout.show(parent, "page " + pageNumber);
}

/**
* Builds the swing page and adds it to the parent, all in a separate
* thread. Calls {@link #buildPage}.
View Full Code Here

        cb.setEditable(false);
        cb.addItemListener(new ItemListener() {
            public void itemStateChanged(ItemEvent evt) {
                CardLayout cl = (CardLayout) (cards.getLayout());
                String active = (String) evt.getItem();
                cl.show(cards, active);
                setActiveGeneratorLoader(active);
            }
        });
        // Put the JComboBox in a JPanel to get a nicer look.
        JPanel comboBoxPane = new JPanel(); // use FlowLayout
View Full Code Here

    chooser.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
        if (e.getValueIsAdjusting())
          return;
        String o = (String) chooser.getSelectedValue();
        cardLayout.show(main, o);
      }
    });

    JPanel one = new JPanel(), two = new JPanel();
    one.setLayout(new BorderLayout());
View Full Code Here

        // Update content
        CardLayout cl = (CardLayout) (content.getLayout());
       
        if (pm != null){
            cl.show(content, pm.getPageTitle());
        } else {
            cl.show(content, "emptyPanel");
        }

        // Update tags status
View Full Code Here

        CardLayout cl = (CardLayout) (content.getLayout());
       
        if (pm != null){
            cl.show(content, pm.getPageTitle());
        } else {
            cl.show(content, "emptyPanel");
        }

        // Update tags status
        for(int i=0;i<tabs.size();i++){
            ((JButton)tabs.get(i)).setBackground(null);
View Full Code Here

    private void displayTemplate(Template t) {
        if (t != null){
            CardLayout cl = (CardLayout) (templatesPanels.getLayout());

            if ( t.getOptionPanelForTemplate() != null ){
                cl.show(templatesPanels, t.getName());
            } else {
                cl.show(templatesPanels,"emptyPanel");
            }

            headerPanel.setTitle(t.getName());
View Full Code Here

            CardLayout cl = (CardLayout) (templatesPanels.getLayout());

            if ( t.getOptionPanelForTemplate() != null ){
                cl.show(templatesPanels, t.getName());
            } else {
                cl.show(templatesPanels,"emptyPanel");
            }

            headerPanel.setTitle(t.getName());
            headerPanel.displayInfo(t.getTemplateInformation());
        }
View Full Code Here

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

     
      panel.add(cbcyclex = new ActionCheckBox(resources.getString("CyclicAxis"), cna!=null) {
        public void actionPerformed(ActionEvent e) {
          CardLayout cl = (CardLayout)(xcards.getLayout());
          if (isSelected()) cl.show(xcards, "cyclic");
          else cl.show(xcards, "normal");
        }
      });
      panel.add(cbinvertx = new ActionCheckBox(resources.getString("Inverted"), plot.getDomainAxis().isInverted()) {
        public void actionPerformed(ActionEvent e) {
        }
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.