Package java.awt

Examples of java.awt.CardLayout.show()


                } 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");
                }
            }
        });
        dstree.getSourceTree().addTreeSelectionListener(new TreeSelectionListener() {
            public void valueChanged(TreeSelectionEvent e) {
View Full Code Here


                CardLayout cl = (CardLayout) (cards.getLayout());
                int index = cbx.getSelectedIndex();
                if (index >= 0) {
                    TextPropertiesPanel tpp = (TextPropertiesPanel) TextArrayPropertiesPanel.this.textPanels.get(index);
                    tpp.updateSourceTree();
                    cl.show(cards, Integer.toString(index));
                }
            }
        });
        bcelldelete.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
View Full Code Here

    details.setLayout(new BorderLayout());
    details.add(scrollPane, BorderLayout.CENTER);

    flip.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent event) {
        crd.show(pan, "details");
      }
    });
    pan.add(simple, "simple");
    pan.add(details, "details");
    // pass the scrollpane to the joptionpane.
View Full Code Here

      panel.add(rootProp, sep);
    }
    String defaultProperty = manager.getProperty(property + "._default", "");

    if (defaultProperty != "")
      entryLayout.show(panel, defaultProperty);

    return panel;
  }

  /**
 
View Full Code Here

    getLogger().fine("selectedId = " + selectedId);
    if (selectedId != null) {
      SwingPropertyEditor newSelected = currentPanels.get(selectedId);
      getLogger().fine("newSelected = " + newSelected);
      entryLayout.show(entryPanel, selectedId);
    }

  }

  /**
 
View Full Code Here

          spe.addDisableMask(this);
        }
        this.add(selectedId, spe);
      }
    }
    layout.show(this, selectedId);
    currentKeyValue = selectedId;
  }

  /**
   * Creates a SwingPropertyEditor for the given subproperty.
View Full Code Here

    public void setRefresh(final boolean refresh) {
        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                CardLayout cl = (CardLayout) previewPanel.getLayout();
                cl.show(previewPanel, refresh ? "refreshCard" : "previewCard");
                ((JXBusyLabel) busyLabel).setBusy(refresh);
            }
        });
    }
View Full Code Here

        PluginDataModel selectedPlug = (PluginDataModel)selectedObject;
        AbstractPlugablePanel panel = container.getPluginsMap().get(selectedPlug);
        statusPanel.setText(selectedPlug.getName());
        statusPanel.setIcon(panel.getIcon());
        CardLayout cl = (CardLayout)(plugsPanel.getLayout());
        cl.show(plugsPanel, selectedPlug.getName());    
        container.setFocusTraversalPolicy(panel.getFocusPolicy());
        container.setMainPanelPreferredSize(panel.getPreferredSize());
      }
    }
  }
View Full Code Here

            JComponent connectionsSetupPanel = connectionBundle.createComponent();
            connectionsPanel.add(connectionsSetupPanel, id);
            cachedPanelIds.add(id);
        }
        CardLayout cardLayout = (CardLayout) connectionsPanel.getLayout();
        cardLayout.show(connectionsPanel, id);
    }

    public void focusConnectionSettings(ConnectionHandler connectionHandler) {
        ConnectionBundle connectionBundle = connectionHandler.getConnectionBundle();
        modulesComboBox.setSelectedItem(connectionBundle);
View Full Code Here

    }

    private void switchSettingsPanel(ConnectionSettings connectionSettings) {
        CardLayout cardLayout = (CardLayout) connectionSetupPanel.getLayout();
        if (connectionSettings == null) {
            cardLayout.show(connectionSetupPanel, BLANK_PANEL_ID);
        } else {

            ConnectionSettingsForm currentForm = cachedForms.get(currentPanelId);
            String selectedTabName = currentForm == null ? null : currentForm.getSelectedTabName();
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.