Search in sources :

Example 31 with CardLayout

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

the class ContextTechnologyPanel method initialize.

/**
	 * This method initializes this
	 */
private void initialize() {
    this.setLayout(new CardLayout());
    this.setName(getPanelName(getContextIndex()));
    this.add(getPanelSession(), getPanelSession().getName());
}
Also used : CardLayout(java.awt.CardLayout)

Example 32 with CardLayout

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

the class OptionsLocalePanel method initialize.

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

Example 33 with CardLayout

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

the class ParamsPanel method initialize.

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

Example 34 with CardLayout

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

the class OptionsLangPanel method initialize.

private void initialize() {
    this.setLayout(new CardLayout());
    this.setName(Constant.messages.getString("options.lang.title"));
    this.add(getPanelLang(), getPanelLang().getName());
}
Also used : CardLayout(java.awt.CardLayout)

Example 35 with CardLayout

use of java.awt.CardLayout in project jdk8u_jdk by JetBrains.

the class java_awt_CardLayout method getObject.

@Override
protected CardLayout getObject() {
    CardLayout layout = new CardLayout();
    layout.addLayoutComponent(new JLabel("a"), "a");
    layout.addLayoutComponent(new JLabel("b"), "b");
    layout.addLayoutComponent(new JLabel("c"), "c");
    return layout;
}
Also used : CardLayout(java.awt.CardLayout) JLabel(javax.swing.JLabel)

Aggregations

CardLayout (java.awt.CardLayout)92 JPanel (javax.swing.JPanel)37 BorderLayout (java.awt.BorderLayout)16 JLabel (javax.swing.JLabel)14 JScrollPane (javax.swing.JScrollPane)12 Dimension (java.awt.Dimension)9 GridBagLayout (java.awt.GridBagLayout)8 Insets (java.awt.Insets)8 JButton (javax.swing.JButton)7 ImageIcon (javax.swing.ImageIcon)6 ListSelectionEvent (javax.swing.event.ListSelectionEvent)6 JSplitPane (javax.swing.JSplitPane)5 ListSelectionListener (javax.swing.event.ListSelectionListener)5 FlowLayout (java.awt.FlowLayout)4 Font (java.awt.Font)4 Point (java.awt.Point)4 JList (javax.swing.JList)4 EmptyBorder (javax.swing.border.EmptyBorder)4 AWTException (java.awt.AWTException)3 GridBagConstraints (java.awt.GridBagConstraints)3