use of java.awt.BorderLayout in project zaproxy by zaproxy.
the class OptionsConnectionPanel method getPanelProxyChain.
/**
* This method initializes panelProxyChain
*
* @return javax.swing.JPanel
*/
private JPanel getPanelProxyChain() {
if (panelProxyChain == null) {
panelProxyChain = new JPanel(new BorderLayout());
panelProxyChain.setName("ProxyChain");
JPanel innerPanel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.insets = new java.awt.Insets(2, 2, 2, 2);
gbc.anchor = java.awt.GridBagConstraints.NORTHWEST;
gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0D;
innerPanel.add(getPanelGeneral(), gbc);
innerPanel.add(getDnsPanel(), gbc);
innerPanel.add(getSecurityProtocolsPanel(), gbc);
innerPanel.add(getJPanel(), gbc);
innerPanel.add(getPanelProxyAuth(), gbc);
JScrollPane scrollPane = new JScrollPane(innerPanel);
scrollPane.setBorder(BorderFactory.createEmptyBorder());
panelProxyChain.add(scrollPane, BorderLayout.CENTER);
}
return panelProxyChain;
}
use of java.awt.BorderLayout in project zaproxy by zaproxy.
the class OutputPanel method initialize.
/**
* This method initializes this
*/
private void initialize() {
this.setLayout(new BorderLayout());
// ZAP: i18n
this.setName(Constant.messages.getString("output.panel.title"));
if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
this.setSize(243, 119);
}
// ZAP: Added Output (doc) icon
// 'doc' icon
this.setIcon(new ImageIcon(OutputPanel.class.getResource("/resource/icon/16/172.png")));
this.setDefaultAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | Event.SHIFT_MASK, false));
this.setMnemonic(Constant.messages.getChar("output.panel.mnemonic"));
this.add(getMainPanel(), BorderLayout.CENTER);
this.setShowByDefault(true);
}
use of java.awt.BorderLayout in project zaproxy by zaproxy.
the class BrowserDialog method getJContentPane.
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new BorderLayout());
jContentPane.add(getJPanel(), java.awt.BorderLayout.CENTER);
jContentPane.add(getJPanelBottom(), java.awt.BorderLayout.SOUTH);
}
return jContentPane;
}
use of java.awt.BorderLayout in project zaproxy by zaproxy.
the class LogPanel method initialize.
/**
* This method initializes this
*/
private void initialize() {
historyListFiltersButtonGroup = new DeselectableButtonGroup();
this.setLayout(new BorderLayout());
if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
this.setSize(600, 200);
}
this.add(getHistoryPanel(), java.awt.BorderLayout.CENTER);
this.setDefaultAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | Event.SHIFT_MASK, false));
this.setMnemonic(Constant.messages.getChar("history.panel.mnemonic"));
}
use of java.awt.BorderLayout in project zaproxy by zaproxy.
the class HttpPanelSyntaxHighlightTextView method init.
private void init() {
mainPanel = new JPanel();
mainPanel.setLayout(new BorderLayout());
httpPanelTextArea = createHttpPanelTextArea();
httpPanelTextArea.setEditable(false);
httpPanelTextArea.setComponentPopupMenu(new CustomPopupMenu());
JScrollPane scrollPane = new RTextScrollPane(httpPanelTextArea, false);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
mainPanel.add(scrollPane, BorderLayout.CENTER);
}
Aggregations