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