use of java.awt.GridBagConstraints in project EnrichmentMapApp by BaderLab.
the class EdgeWidthDialog method createGenesetOverlapPanel.
private JPanel createGenesetOverlapPanel() {
JPanel panel = new JPanel();
panel.setBorder(LookAndFeelUtil.createTitledBorder("Geneset Overlap"));
panel.setLayout(new GridBagLayout());
GridBagConstraints gbc;
// Similarity Coefficient
JLabel similarityLabel = new JLabel("Similarity Coefficient: ");
gbc = gridBagConstraints(0, 0);
gbc.weightx = 1.0;
panel.add(similarityLabel, gbc);
JLabel lowerBound = new JLabel(String.format("%.1f", similarityCutoff));
lowerBound.setHorizontalAlignment(JLabel.RIGHT);
gbc = gridBagConstraints(1, 0);
panel.add(lowerBound, gbc);
// hardcoded
JLabel upperBound = new JLabel("1.0");
upperBound.setHorizontalAlignment(JLabel.RIGHT);
gbc = gridBagConstraints(2, 0);
panel.add(upperBound, gbc);
JLabel spacer = new JLabel("");
gbc = gridBagConstraints(3, 0);
panel.add(spacer, gbc);
// Width
JLabel widthLabel = new JLabel("Width:");
gbc = gridBagConstraints(0, 1);
panel.add(widthLabel, gbc);
emLowerWidthText = new JFormattedTextField(new DecimalFormat());
emLowerWidthText.setPreferredSize(new Dimension(50, emLowerWidthText.getPreferredSize().height));
emLowerWidthText.setHorizontalAlignment(JTextField.RIGHT);
gbc = gridBagConstraints(1, 1);
gbc.insets = new Insets(5, 5, 5, 0);
panel.add(emLowerWidthText, gbc);
emUpperWidthText = new JFormattedTextField(new DecimalFormat());
emUpperWidthText.setPreferredSize(new Dimension(50, emUpperWidthText.getPreferredSize().height));
emUpperWidthText.setHorizontalAlignment(JTextField.RIGHT);
gbc = gridBagConstraints(2, 1);
gbc.insets = new Insets(5, 5, 5, 0);
panel.add(emUpperWidthText, gbc);
JLabel mappingText = new JLabel("(continuous mapping) ");
gbc = gridBagConstraints(3, 1);
panel.add(mappingText, gbc);
makeSmall(similarityLabel, lowerBound, upperBound, spacer, widthLabel, emLowerWidthText, emUpperWidthText, mappingText);
return panel;
}
use of java.awt.GridBagConstraints in project zaproxy by zaproxy.
the class OptionsGlobalExcludeURLPanel method initialize.
/**
* This method initializes this
*/
private void initialize() {
this.setName(Constant.messages.getString("options.globalexcludeurl.title"));
this.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.anchor = GridBagConstraints.LINE_START;
gbc.fill = GridBagConstraints.BOTH;
this.add(new JLabel(Constant.messages.getString("options.globalexcludeurl.label.tokens")), gbc);
tokensOptionsPanel = new GlobalExcludeURLMultipleOptionsPanel(getGlobalExcludeURLModel());
gbc.weighty = 1.0;
this.add(tokensOptionsPanel, gbc);
//gbc.weighty = 0.0;
}
use of java.awt.GridBagConstraints in project zaproxy by zaproxy.
the class AlertAddDialog method getJPanel.
/**
* This method initializes jPanel
*
* @return javax.swing.JPanel
*/
private JPanel getJPanel() {
if (jPanel == null) {
GridBagConstraints gridBagConstraints15 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints13 = new GridBagConstraints();
javax.swing.JLabel jLabel2 = new JLabel();
java.awt.GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
jPanel = new JPanel();
jPanel.setLayout(new GridBagLayout());
jPanel.setPreferredSize(new java.awt.Dimension(450, 650));
jPanel.setMinimumSize(new java.awt.Dimension(450, 650));
gridBagConstraints2.gridx = 1;
gridBagConstraints2.gridy = 5;
gridBagConstraints2.insets = new java.awt.Insets(2, 2, 2, 2);
gridBagConstraints2.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints3.gridx = 2;
gridBagConstraints3.gridy = 5;
gridBagConstraints3.insets = new java.awt.Insets(2, 2, 2, 10);
gridBagConstraints3.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints13.gridx = 0;
gridBagConstraints13.gridy = 5;
gridBagConstraints13.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints13.weightx = 1.0D;
gridBagConstraints13.insets = new java.awt.Insets(2, 10, 2, 5);
gridBagConstraints15.weightx = 1.0D;
gridBagConstraints15.weighty = 1.0D;
gridBagConstraints15.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints15.insets = new java.awt.Insets(2, 2, 2, 2);
gridBagConstraints15.gridwidth = 3;
gridBagConstraints15.gridx = 0;
gridBagConstraints15.gridy = 2;
gridBagConstraints15.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints15.ipadx = 0;
gridBagConstraints15.ipady = 10;
jPanel.add(getJScrollPane(), gridBagConstraints15);
jPanel.add(jLabel2, gridBagConstraints13);
jPanel.add(getBtnCancel(), gridBagConstraints2);
jPanel.add(getBtnOk(), gridBagConstraints3);
}
return jPanel;
}
use of java.awt.GridBagConstraints in project zaproxy by zaproxy.
the class OptionsHttpSessionsPanel method initialize.
/**
* This method initializes this panel.
*/
private void initialize() {
this.setName(Constant.messages.getString("httpsessions.options.title"));
this.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.weightx = 1.0;
gbc.anchor = GridBagConstraints.LINE_START;
gbc.fill = GridBagConstraints.BOTH;
JLabel tokenNamesLabel = new JLabel();
tokenNamesLabel.setText(Constant.messages.getString("httpsessions.options.label.tokens"));
this.add(tokenNamesLabel, gbc);
tokensOptionsPanel = new HttpSessionTokensMultipleOptionsPanel(getDefaultTokensModel());
gbc.weighty = 1.0;
this.add(tokensOptionsPanel, gbc);
gbc.weighty = 0.0;
gbc.insets = new Insets(10, 2, 2, 2);
this.add(getChkProxyOnly(), gbc);
}
use of java.awt.GridBagConstraints in project zaproxy by zaproxy.
the class SearchPanel method newGBC.
private GridBagConstraints newGBC(int gridx) {
GridBagConstraints gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridx = gridx;
gridBagConstraints.gridy = 0;
gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 0);
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
return gridBagConstraints;
}
Aggregations