Examples of CardLayout


Examples of java.awt.CardLayout

    }
   
    void createComponents() {
        titleBar = new FolderBar();
        titleBar.setFont(titleBar.getFont().deriveFont(Font.BOLD).deriveFont((float)(titleBar.getFont().getSize() * 2)));
        pageContainer = new JPanel(pageCardLayout = new CardLayout());
        JPanel buttonBar = new JPanel(new FlowLayout(FlowLayout.RIGHT, 4, 0));
        buttonBar.setBorder(BorderFactory.createEmptyBorder(4, 0, 4, 0));
        buttonBar.add(new JButton(cancelAction));
        buttonBar.add(previousButton = new JButton(previousAction));
        buttonBar.add(nextButton = new JButton(nextAction));
View Full Code Here

Examples of java.awt.CardLayout

            BorderFactory.createEmptyBorder(0, 0, 4, 0)));
        toolBar.setFolderBar(folderBar);

        JPanel centerPane = new JPanel(new BorderLayout());
        centerPane.setBorder(BorderFactory.createEmptyBorder(0, 4, 0, 0));
        viewPane = new JPanel(layout = new CardLayout());
        centerPane.add(folderBar, BorderLayout.NORTH);
        centerPane.add(viewPane, BorderLayout.CENTER);
        add(scrolling, BorderLayout.WEST);
        add(centerPane, BorderLayout.CENTER);
    }
View Full Code Here

Examples of java.awt.CardLayout

        toolBarBackground = UIManager.getColor("Panel.background").darker();

        // Intialise
        contextList = new Vector();
        cardLayout = new CardLayout();
        cardPanel = new JPanel(cardLayout);
        cardPanel.setOpaque(false);
        cardPanel.setBackground(toolBarBackground);

        // Create the constraints for use later
View Full Code Here

Examples of java.awt.CardLayout

 
  /**
   * Layouts components in 4 panels added to this panel as cards.
   */
  private void layoutComponents() {
    this.cardLayout = new CardLayout();
    setLayout(this.cardLayout);
   
    JPanel modelPanel = new JPanel(new GridBagLayout());
    modelPanel.add(this.modelChoiceOrChangeLabel, new GridBagConstraints(
        0, 0, 2, 1, 0, 0, GridBagConstraints.LINE_START,
View Full Code Here

Examples of java.awt.CardLayout

 
  /**
   * Layouts components in 3 panels added to this panel as cards.
   */
  private void layoutComponents() {
    this.cardLayout = new CardLayout();
    setLayout(this.cardLayout);
   
    JPanel imageChoiceTopPanel = new JPanel(new GridBagLayout());
    imageChoiceTopPanel.add(this.imageChoiceOrChangeLabel, new GridBagConstraints(
        0, 0, 1, 1, 0, 0, GridBagConstraints.LINE_START,
View Full Code Here

Examples of java.awt.CardLayout

  private void layoutComponents() {
    int labelAlignment = OperatingSystem.isMacOSX()
        ? JLabel.TRAILING
        : JLabel.LEADING;
    // Add animatedWaitLabel and photoComponent to a card panel
    this.photoCardLayout = new CardLayout();
    this.photoPanel = new JPanel(this.photoCardLayout);
    photoPanel.add(this.photoComponent, PHOTO_CARD);
    photoPanel.add(this.animatedWaitLabel, WAIT_CARD);
    // First row
    add(photoPanel, new GridBagConstraints(
View Full Code Here

Examples of java.awt.CardLayout

 
  /**
   * Layouts components in 3 panels added to this panel as cards.
   */
  private void layoutComponents() {
    this.cardLayout = new CardLayout();
    setLayout(this.cardLayout);
   
    JPanel imageChoiceTopPanel = new JPanel(new GridBagLayout());
    imageChoiceTopPanel.add(this.imageChoiceOrChangeLabel, new GridBagConstraints(
        0, 0, 1, 1, 0, 0, GridBagConstraints.LINE_START,
View Full Code Here

Examples of java.awt.CardLayout

  private void layoutComponents() {
    int labelAlignment = OperatingSystem.isMacOSX()
        ? GridBagConstraints.LINE_END
        : GridBagConstraints.LINE_START;
    // Add tip and progress bar to a card panel
    this.statusLayout = new CardLayout();
    this.statusPanel = new JPanel(this.statusLayout);
    this.statusPanel.add(this.tipLabel, TIP_CARD);
    this.tipLabel.setMinimumSize(this.tipLabel.getPreferredSize());
    JPanel progressPanel = new JPanel(new BorderLayout(5, 2));
    progressPanel.add(this.progressBar, BorderLayout.NORTH);
View Full Code Here

Examples of java.awt.CardLayout

  Map tabs = new HashMap();
  CardLayout card;

  public JCardPane() {
    card = new CardLayout();

    setLayout(card);
  }
View Full Code Here

Examples of java.awt.CardLayout

  public void configureEditor(String propertyName, String template, String propertyBaseName, PropertyEditorManager newManager) {
    configureBasic(propertyName, template, propertyBaseName, newManager);

    editors = new ArrayList<SwingPropertyEditor>();

    layout = new CardLayout();
    this.setLayout(layout);

    // see about loading the WizardController
    String controllerClassString = manager.getProperty(template + ".controllerClass", "");
    if (controllerClassString.length() > 0) {
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.