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();
}
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);
}
}
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);
}
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());
}
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());
}
Aggregations