Search in sources :

Example 76 with JScrollPane

use of javax.swing.JScrollPane in project zaproxy by zaproxy.

the class CertificateView method initComponents.

/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
private void initComponents() {
    closeButton = new JButton();
    certificateScrollPane = new JScrollPane();
    certificateTextArea = new ZapTextArea();
    //TODO: Constant for messages.properties
    setTitle("Certificate");
    //TODO: Constant for messages.properties
    closeButton.setText("Close");
    closeButton.addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent evt) {
            closeButtonActionPerformed(evt);
        }
    });
    certificateScrollPane.setViewportView(certificateTextArea);
    GroupLayout layout = new GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(closeButton, GroupLayout.PREFERRED_SIZE, 93, GroupLayout.PREFERRED_SIZE).addComponent(certificateScrollPane, GroupLayout.DEFAULT_SIZE, 658, Short.MAX_VALUE)).addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addContainerGap().addComponent(certificateScrollPane, GroupLayout.DEFAULT_SIZE, 439, Short.MAX_VALUE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(closeButton).addContainerGap()));
    pack();
}
Also used : JScrollPane(javax.swing.JScrollPane) ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton) GroupLayout(javax.swing.GroupLayout) ZapTextArea(org.zaproxy.zap.utils.ZapTextArea)

Example 77 with JScrollPane

use of javax.swing.JScrollPane in project zaproxy by zaproxy.

the class AddOnDependencyChecker method createScrollableTable.

private static JScrollPane createScrollableTable(TableModel model) {
    JXTable table = new JXTable(model);
    table.setColumnControlVisible(true);
    table.setVisibleRowCount(Math.min(model.getRowCount() + 1, 5));
    table.packAll();
    return new JScrollPane(table);
}
Also used : JScrollPane(javax.swing.JScrollPane) JXTable(org.jdesktop.swingx.JXTable)

Example 78 with JScrollPane

use of javax.swing.JScrollPane in project zaproxy by zaproxy.

the class ScanProgressDialog method getJScrollPane.

/**
     * Get the dialog scroll panel
     * @return the panel
     */
private JScrollPane getJScrollPane() {
    if (jScrollPane == null) {
        jScrollPane = new JScrollPane();
        jScrollPane.setViewportView(getMainPanel());
        jScrollPane.setName("ScanProgressScrollPane");
        jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        jScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    }
    return jScrollPane;
}
Also used : JScrollPane(javax.swing.JScrollPane)

Example 79 with JScrollPane

use of javax.swing.JScrollPane in project zaproxy by zaproxy.

the class PolicyAllCategoryPanel method getJScrollPane.

/**
     * This method initializes jScrollPane
     *
     * @return javax.swing.JScrollPane
     */
private JScrollPane getJScrollPane() {
    if (jScrollPane == null) {
        jScrollPane = new JScrollPane();
        jScrollPane.setViewportView(getTableTest());
        jScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));
    }
    return jScrollPane;
}
Also used : JScrollPane(javax.swing.JScrollPane)

Example 80 with JScrollPane

use of javax.swing.JScrollPane in project zaproxy by zaproxy.

the class PolicyCategoryPanel method getJScrollPane.

/**
	 * This method initializes jScrollPane
	 *
	 * @return javax.swing.JScrollPane
	 */
private JScrollPane getJScrollPane() {
    if (jScrollPane == null) {
        jScrollPane = new JScrollPane();
        jScrollPane.setViewportView(getTableTest());
        jScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));
    }
    return jScrollPane;
}
Also used : JScrollPane(javax.swing.JScrollPane)

Aggregations

JScrollPane (javax.swing.JScrollPane)832 JPanel (javax.swing.JPanel)431 Dimension (java.awt.Dimension)271 JLabel (javax.swing.JLabel)269 BorderLayout (java.awt.BorderLayout)260 JButton (javax.swing.JButton)191 GridBagLayout (java.awt.GridBagLayout)149 JTable (javax.swing.JTable)148 BoxLayout (javax.swing.BoxLayout)140 Insets (java.awt.Insets)122 GridBagConstraints (java.awt.GridBagConstraints)121 ActionEvent (java.awt.event.ActionEvent)120 JTextArea (javax.swing.JTextArea)110 ActionListener (java.awt.event.ActionListener)103 FlowLayout (java.awt.FlowLayout)96 JTextField (javax.swing.JTextField)70 FormLayout (com.jgoodies.forms.layout.FormLayout)60 Container (java.awt.Container)55 JSplitPane (javax.swing.JSplitPane)55 MouseEvent (java.awt.event.MouseEvent)52