Package java.awt

Examples of java.awt.CardLayout


  public AbstractWizard(String title) {
    jd = new JDialog();
    jd.setTitle(title);
    this.title = title;

    final CardLayout cardLayout = new CardLayout();
    cards = new JPanel(cardLayout);

    btnBack = new JButton("< Back");
    btnNext = new JButton("Next >");
    btnFinish = new JButton("Finish");

    setEnableButtons();

    btnBack.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        cardLayout.show(cards, Integer.toString(--currentStep));
        setEnableButtons();
        pages.get(currentStep).display();
      }});

    btnNext.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        AbstractWizardPage page = pages.get(currentStep);
        String error = page.isPageComplete();
        if(error == null) {
          cardLayout.show(cards, Integer.toString(++currentStep));
          setEnableButtons();
          pages.get(currentStep).display();
        } else {
          JOptionPane.showMessageDialog(jd,
              error,
View Full Code Here


   
    private void initFrame() {

        mDialog.getContentPane().setLayout(new BorderLayout());
       
        mCardLayout = new CardLayout();
        mCardPanel  = new JPanel();
        mCardPanel.setBorder(new EmptyBorder(new Insets(5, 10, 5, 10)));      
        mCardPanel.setLayout(mCardLayout);
       
        mPreviousButton = new JButton();
View Full Code Here

    fieldDefinitions = EMPTY_FIELDS;
    panel = new JPanel();
    panel.setLayout(new BorderLayout());

    rootPanel = new JPanel();
    rootPanel.setLayout(new CardLayout());
    rootPanel.add("2", panel);
    rootPanel.add("1", Box.createRigidArea(new Dimension(650, 250)));

    editors = new HashMap<String, FunctionParameterEditor>();
    defaultEditor = new DefaultFunctionParameterEditor();
View Full Code Here

    final JScrollPane comp = new JScrollPane(parameterPaneCarrier);
    comp.setBorder(new EmptyBorder(0, 0, 0, 0));
    comp.setViewportBorder(new EmptyBorder(0, 0, 0, 0));

    setLayout(new CardLayout());
    add("2", comp);
    add("1", Box.createRigidArea(new Dimension(650, 250)));
  }
View Full Code Here

    layoutRendererComponent.setLayout(new BoxLayout(layoutRendererComponent, BoxLayout.Y_AXIS));
    layoutRendererComponent.setBackground(new Color(0,0,0,0));
    layoutRendererComponent.setBorder(new EmptyBorder(0, 0, 0, 0));
    layoutRendererComponent.setOpaque(false);

    cardLayout = new CardLayout();
    previewComponent = new ReportPreviewComponent(designerContext);
    getReport().addReportModelListener(new ReportPreviewChangeHandler());

    previewView = new ImagePanel(CanvasImageLoader.getInstance().getBackgroundImage().getImage());
    previewView.setLayout(new BorderLayout());
View Full Code Here

    {
      disabledPanel = new JPanel();
      disabledPanel.setLayout(new BorderLayout());
      disabledPanel.add(new JLabel(EditorExpressionsMessages.getString("ExpressionEditorDialog.NoExtendedEditor")));

      cardLayout = new CardLayout();

      enabledPanel = new JPanel();
      enabledPanel.setLayout(new BorderLayout());

      setLayout(cardLayout);
View Full Code Here

    drillDownEditor = new DrillDownEditor();
    drillDownEditor.addPropertyChangeListener
        (DrillDownEditor.DRILL_DOWN_UI_PROFILE_PROPERTY, new DrillDownProfileChangeHandler());
    basicLinkPanel = new BasicLinkPanel();

    cardLayout = new CardLayout();

    cardHolder = new JPanel();
    cardHolder.setLayout(cardLayout);
    cardHolder.add("2", drillDownEditor);
    cardHolder.add("1", basicLinkPanel);
View Full Code Here

  {
    components = new ArrayList();
    radioButtons = new ArrayList();
    buttonGroup = new ButtonGroup();

    cardLayout = new CardLayout();
    contentPanel = new JPanel();
    contentPanel.setLayout(cardLayout);
    selectorPanel = new JPanel();
    selectorPanel.setLayout(new FlowLayout());
View Full Code Here

    setLayout(new BorderLayout(0, 0));

    buttonPanel = new JPanel(new GridLayout(0, 1));

    panelButtons = new ButtonGroup();
    cardLayout = new CardLayout();
    cardPanel = new JPanel(cardLayout);

    final JPanel buttonHelperPanel = new ScrollablePanel(new BorderLayout());
    buttonHelperPanel.setOpaque(true);
    buttonHelperPanel.add(buttonPanel, BorderLayout.NORTH);
View Full Code Here

  private boolean allowDataSourceCard = false;
  private boolean allowExpressionCard = false;

  public ElementPropertiesPanel()
  {
    cardLayout = new CardLayout();
    setLayout(cardLayout);

    this.attributeEditorPanel = new VisualAttributeEditorPanel();
    this.styleEditorPanel = new StyleEditorPanel();
    this.expressionEditorPanel = new ExpressionPropertiesEditorPanel();
View Full Code Here

TOP

Related Classes of java.awt.CardLayout

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.