Search in sources :

Example 26 with CardLayout

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

the class LicenseFrame method getJPanel1.

/**
	 * This method initializes jPanel1
	 *
	 * @return javax.swing.JPanel
	 */
private JPanel getJPanel1() {
    if (jPanel1 == null) {
        jPanel1 = new JPanel();
        jPanel1.setLayout(new CardLayout());
        jPanel1.add(getJScrollPane(), getJScrollPane().getName());
    }
    return jPanel1;
}
Also used : JPanel(javax.swing.JPanel) CardLayout(java.awt.CardLayout)

Example 27 with CardLayout

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

the class ScanPanel method initialize.

/**
	 * This method initializes this
	 * 
	 */
private void initialize(ImageIcon icon) {
    this.setLayout(new CardLayout());
    if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        this.setSize(474, 251);
    }
    this.setName(Constant.messages.getString(prefix + ".panel.title"));
    this.setIcon(icon);
    this.add(getPanelCommand(), prefix + ".panel");
    scanStatus = new ScanStatus(icon, Constant.messages.getString(prefix + ".panel.title"));
    if (View.isInitialised()) {
        View.getSingleton().getMainFrame().getMainFooterPanel().addFooterToolbarRightLabel(scanStatus.getCountLabel());
    }
}
Also used : CardLayout(java.awt.CardLayout)

Example 28 with CardLayout

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

the class ContextUsersPanel method initialize.

private void initialize() {
    this.setLayout(new CardLayout());
    this.setName(getPanelName(getContextIndex()));
    this.setLayout(new GridBagLayout());
    this.add(new JLabel(Constant.messages.getString("users.panel.description")), LayoutHelper.getGBC(0, 0, 1, 1.0d, 0.0d));
    usersTableModel = new UsersTableModel();
    usersOptionsPanel = new UsersMultipleOptionsPanel(this.extension, usersTableModel, getContextIndex());
    this.add(usersOptionsPanel, LayoutHelper.getGBC(0, 1, 1, 1.0d, 1.0d));
}
Also used : CardLayout(java.awt.CardLayout) GridBagLayout(java.awt.GridBagLayout) JLabel(javax.swing.JLabel)

Example 29 with CardLayout

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

the class HttpSessionsPanel method initialize.

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

Example 30 with CardLayout

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

the class ContextListPanel method initialize.

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

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