Search in sources :

Example 76 with CardLayout

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

the class SessionExcludeFromSpiderPanel method initialize.

/**
	 * This method initializes this
	 */
private void initialize() {
    this.setLayout(new CardLayout());
    this.setName(PANEL_NAME);
    regexesPanel = new MultipleRegexesOptionsPanel(View.getSingleton().getSessionDialog());
    this.add(getPanelSession(), getPanelSession().getName());
}
Also used : CardLayout(java.awt.CardLayout)

Example 77 with CardLayout

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

the class AlertViewPanel method initialize.

/**
	 * This method initializes this
	 */
private void initialize() {
    cardLayout = new CardLayout();
    this.setLayout(cardLayout);
    this.setName("AlertView");
    if (!editable) {
        this.add(getDefaultPane(), getDefaultPane().getName());
    }
    this.add(getAlertPane(), getAlertPane().getName());
}
Also used : CardLayout(java.awt.CardLayout)

Example 78 with CardLayout

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

the class OptionsSpiderPanel method initialize.

/**
	 * This method initializes this options Panel.
	 */
private void initialize() {
    this.setLayout(new CardLayout());
    this.setName(Constant.messages.getString("spider.options.title"));
    if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        this.setSize(314, 245);
    }
    this.add(getPanelSpider(), getPanelSpider().getName());
}
Also used : CardLayout(java.awt.CardLayout)

Example 79 with CardLayout

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

the class OptionsLocalProxyPanel method initialize.

/**
     * This method initializes this
     */
private void initialize() {
    this.setLayout(new CardLayout());
    this.setName(Constant.messages.getString("options.proxy.local.title"));
    if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        this.setSize(391, 320);
    }
    securityProtocolsPanel = new SecurityProtocolsPanel();
    this.add(getPanelProxy(), getPanelProxy().getName());
    getChkReverseProxy().setVisible(Constant.isSP());
    getPanelReverseProxy().setVisible(Constant.isSP());
}
Also used : CardLayout(java.awt.CardLayout)

Example 80 with CardLayout

use of java.awt.CardLayout in project pcgen by PCGen.

the class DescriptionInfoTab method initComponents.

private void initComponents() {
    addButton.setAlignmentX((float) 0.5);
    Box box = Box.createVerticalBox();
    box.add(new JScrollPane(pageList));
    box.add(Box.createVerticalStrut(5));
    {
        Box hbox = Box.createHorizontalBox();
        hbox.add(Box.createRigidArea(new Dimension(8, 0)));
        hbox.add(addButton);
        hbox.add(Box.createRigidArea(new Dimension(8, 0)));
        box.add(hbox);
    }
    box.add(Box.createVerticalStrut(4));
    setLeftComponent(box);
    CardLayout pages = new CardLayout();
    pagePanel.setLayout(pages);
    addPage(bioPane);
    addPage(portraitPane);
    addPage(histPane);
    setRightComponent(pagePanel);
    setResizeWeight(0);
}
Also used : JScrollPane(javax.swing.JScrollPane) CardLayout(java.awt.CardLayout) Box(javax.swing.Box) Dimension(java.awt.Dimension)

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