Search in sources :

Example 1 with CardLayout

use of java.awt.CardLayout in project AndroidWiFiADB by pedrovgs.

the class CardLayoutDevices method createAndShowGUI.

public void createAndShowGUI() {
    cards = new JPanel(new CardLayout());
    createNoDevicesPanel();
    createTableDevices();
    cards.add(panelDevices, CARD_DEVICES);
    cards.add(panelNoDevices, CARD_NO_DEVICES);
    parentContainer.add(cards, BorderLayout.PAGE_START);
    setupUi();
}
Also used : JPanel(javax.swing.JPanel) CardLayout(java.awt.CardLayout)

Example 2 with CardLayout

use of java.awt.CardLayout in project gephi by gephi.

the class TimelineTopComponent method enableTimeline.

private void enableTimeline(TimelineModel model) {
    CardLayout cardLayout = (CardLayout) containerPanel.getLayout();
    if (model == null) {
        cardLayout.show(containerPanel, "top");
        enableTimelineButton.setEnabled(false);
        setTimeLineVisible(false);
    } else if (!model.hasValidBounds()) {
        cardLayout.show(containerPanel, "disabled");
    } else if (model.isEnabled()) {
        cardLayout.show(containerPanel, "bottom");
        setTimeLineVisible(true);
    } else {
        cardLayout.show(containerPanel, "top");
        enableTimelineButton.setEnabled(true);
        setTimeLineVisible(true);
    }
}
Also used : CardLayout(java.awt.CardLayout)

Example 3 with CardLayout

use of java.awt.CardLayout in project zaproxy by zaproxy.

the class AlertPanel method initialize.

/**
	 * This method initializes this
	 */
private void initialize() {
    this.setLayout(new CardLayout());
    this.setSize(274, 251);
    this.setName(Constant.messages.getString("alerts.panel.title"));
    // 'flag' icon
    this.setIcon(new ImageIcon(AlertPanel.class.getResource("/resource/icon/16/071.png")));
    this.add(getPanelCommand(), getPanelCommand().getName());
    this.setDefaultAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | Event.SHIFT_MASK, false));
    this.setMnemonic(Constant.messages.getChar("alerts.panel.mnemonic"));
    this.setShowByDefault(true);
}
Also used : CardLayout(java.awt.CardLayout) ImageIcon(javax.swing.ImageIcon)

Example 4 with CardLayout

use of java.awt.CardLayout in project zaproxy by zaproxy.

the class OptionsApiPanel method initialize.

/**
	 * This method initializes this
	 */
private void initialize() {
    this.setLayout(new CardLayout());
    this.setName(Constant.messages.getString("api.options.title"));
    this.add(getPanelMisc(), getPanelMisc().getName());
}
Also used : CardLayout(java.awt.CardLayout)

Example 5 with CardLayout

use of java.awt.CardLayout in project zaproxy by zaproxy.

the class OptionsCheckForUpdatesPanel method initialize.

/**
	 * This method initializes this
	 */
private void initialize() {
    this.setLayout(new CardLayout());
    this.setName(Constant.messages.getString("cfu.options.title"));
    this.add(getPanelMisc(), getPanelMisc().getName());
}
Also used : CardLayout(java.awt.CardLayout)

Aggregations

CardLayout (java.awt.CardLayout)81 JPanel (javax.swing.JPanel)29 JLabel (javax.swing.JLabel)12 BorderLayout (java.awt.BorderLayout)10 JScrollPane (javax.swing.JScrollPane)9 GridBagLayout (java.awt.GridBagLayout)7 Dimension (java.awt.Dimension)6 Insets (java.awt.Insets)6 ImageIcon (javax.swing.ImageIcon)6 ListSelectionEvent (javax.swing.event.ListSelectionEvent)5 Font (java.awt.Font)4 Point (java.awt.Point)4 JButton (javax.swing.JButton)4 AWTException (java.awt.AWTException)3 FlowLayout (java.awt.FlowLayout)3 EmptyBorder (javax.swing.border.EmptyBorder)3 ListSelectionListener (javax.swing.event.ListSelectionListener)3 Account (com.moneychanger.core.Account)2 OpenTransactionAccount (com.moneychanger.core.OpenTransactionAccount)2 RippleAccount (com.moneychanger.core.RippleAccount)2