use of java.awt.GridBagLayout in project zaproxy by zaproxy.
the class FilterReplaceDialog method getJPanel.
/**
* This method initializes jPanel
*
* @return javax.swing.JPanel
*/
protected JPanel getJPanel() {
if (jPanel == null) {
java.awt.GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
javax.swing.JLabel jLabel2 = new JLabel();
javax.swing.JLabel jLabel1 = new JLabel();
javax.swing.JLabel jLabel = new JLabel();
jPanel = new JPanel();
jPanel.setLayout(new GridBagLayout());
// ZAP: i18n
jLabel.setText(Constant.messages.getString("filter.replacedialog.pattern") + ":");
jLabel1.setText(Constant.messages.getString("filter.replacedialog.replace") + ":");
jLabel2.setText(Constant.messages.getString("filter.replacedialog.title"));
gridBagConstraints1.gridx = 0;
gridBagConstraints1.gridy = 0;
gridBagConstraints1.insets = new java.awt.Insets(5, 5, 5, 5);
gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints1.gridwidth = 2;
gridBagConstraints1.weightx = 1.0D;
gridBagConstraints2.gridx = 0;
gridBagConstraints2.gridy = 1;
gridBagConstraints2.insets = new java.awt.Insets(2, 5, 2, 5);
gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints3.gridx = 1;
gridBagConstraints3.gridy = 1;
gridBagConstraints3.weightx = 1.0;
gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints3.insets = new java.awt.Insets(2, 5, 2, 5);
gridBagConstraints3.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints4.gridx = 0;
gridBagConstraints4.gridy = 2;
gridBagConstraints4.insets = new java.awt.Insets(2, 5, 2, 5);
gridBagConstraints4.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints5.gridx = 1;
gridBagConstraints5.gridy = 2;
gridBagConstraints5.weightx = 1.0;
gridBagConstraints5.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints5.insets = new java.awt.Insets(2, 5, 2, 5);
gridBagConstraints5.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints6.anchor = java.awt.GridBagConstraints.SOUTHEAST;
gridBagConstraints6.gridwidth = 2;
gridBagConstraints6.gridx = 0;
gridBagConstraints6.gridy = 3;
gridBagConstraints6.insets = new java.awt.Insets(2, 2, 2, 2);
jPanel.add(jLabel2, gridBagConstraints1);
jPanel.add(jLabel, gridBagConstraints2);
jPanel.add(getTxtPattern(), gridBagConstraints3);
jPanel.add(jLabel1, gridBagConstraints4);
jPanel.add(getTxtReplaceWith(), gridBagConstraints5);
jPanel.add(getJPanel1(), gridBagConstraints6);
}
return jPanel;
}
use of java.awt.GridBagLayout in project zaproxy by zaproxy.
the class FilterChangeUserAgentDialog method getJPanel1.
/**
* This method initializes jPanel1
*
* @return javax.swing.JPanel
*/
private JPanel getJPanel1() {
if (jPanel1 == null) {
jLabel2 = new JLabel();
GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
jPanel1 = new JPanel();
jPanel1.setLayout(new GridBagLayout());
gridBagConstraints7.gridx = 1;
gridBagConstraints7.gridy = 0;
gridBagConstraints7.insets = new java.awt.Insets(5, 5, 5, 5);
gridBagConstraints7.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints8.gridx = 2;
gridBagConstraints8.gridy = 0;
gridBagConstraints8.insets = new java.awt.Insets(5, 5, 5, 5);
gridBagConstraints8.anchor = java.awt.GridBagConstraints.EAST;
jLabel2.setText(" ");
gridBagConstraints9.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints9.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints9.insets = new java.awt.Insets(5, 2, 5, 2);
gridBagConstraints9.weightx = 1.0D;
gridBagConstraints9.gridx = 0;
gridBagConstraints9.gridy = 0;
jPanel1.add(jLabel2, gridBagConstraints9);
jPanel1.add(getBtnOK(), gridBagConstraints7);
jPanel1.add(getBtnCancel(), gridBagConstraints8);
}
return jPanel1;
}
use of java.awt.GridBagLayout in project zaproxy by zaproxy.
the class FilterChangeUserAgentDialog method getJPanel.
/**
* This method initializes jPanel
*
* @return javax.swing.JPanel
*/
private JPanel getJPanel() {
if (jPanel == null) {
GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
jLabel1 = new JLabel();
jLabel = new JLabel();
GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
jPanel = new JPanel();
jPanel.setLayout(new GridBagLayout());
jLabel.setText(Constant.messages.getString("filter.changeua.label.selectua"));
gridBagConstraints1.gridx = 0;
gridBagConstraints1.gridy = 0;
gridBagConstraints1.insets = new java.awt.Insets(20, 5, 2, 5);
gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints1.gridwidth = 2;
gridBagConstraints2.gridx = 0;
gridBagConstraints2.gridy = 1;
gridBagConstraints2.weightx = 1.0;
gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints2.insets = new java.awt.Insets(2, 5, 2, 5);
gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints2.gridwidth = 2;
jLabel1.setText("");
gridBagConstraints3.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints3.gridx = 0;
gridBagConstraints3.gridy = 2;
gridBagConstraints3.insets = new java.awt.Insets(2, 5, 2, 5);
gridBagConstraints3.weightx = 1.0D;
gridBagConstraints3.weighty = 1.0D;
gridBagConstraints3.gridwidth = 2;
gridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints6.gridx = 0;
gridBagConstraints6.gridy = 4;
gridBagConstraints6.insets = new java.awt.Insets(2, 5, 2, 5);
gridBagConstraints6.weightx = 1.0D;
jPanel.add(jLabel, gridBagConstraints1);
jPanel.add(getCmbUserAgent(), gridBagConstraints2);
jPanel.add(jLabel1, gridBagConstraints3);
jPanel.add(getJPanel1(), gridBagConstraints6);
}
return jPanel;
}
use of java.awt.GridBagLayout in project nhin-d by DirectProject.
the class PreviewTrustBundle method addComponentsToPane.
/**
* Set the orientation of the components inside the pane.
* @param pane Accept the container pane and set its orientation.
* @return void
*/
public static void addComponentsToPane(Container pane) {
if (RIGHT_TO_LEFT) {
pane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
}
pane.setLayout(new GridBagLayout());
ComponentCreation creation = new ComponentCreation();
/**
* Below block create the screen by using the ComponentCreation class and its method to create components.
* The componentCreation class has various methods exposed which will take the pane and type of component with its position.
* Radio, label, File, Directory etc are different type of pane can be created using the class.
*/
GridBagConstraints c = new GridBagConstraints();
c.anchor = (c.gridx == 0) ? GridBagConstraints.EAST : GridBagConstraints.WEST;
c.weighty = 1.5;
c.weightx = 0.5;
creation.createComponent("TEXTAREA", conent, false, c, pane, null, 0, 0);
}
use of java.awt.GridBagLayout in project nhin-d by DirectProject.
the class ViewTrustBundle method addComponentsToPane.
/**
* Set the orientation of the components inside the pane.
* @param pane Accept the container pane and set its orientation.
* @return void
*/
public static void addComponentsToPane(Container pane) {
if (RIGHT_TO_LEFT) {
pane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
}
pane.setLayout(new GridBagLayout());
ComponentCreation creation = new ComponentCreation();
/**
* Below block create the screen by using the ComponentCreation class and its method to create components.
* The componentCreation class has various methods exposed which will take the pane and type of component with its position.
* Radio, label, File, Directory etc are different type of pane can be created using the class.
*/
GridBagConstraints c = new GridBagConstraints();
c.anchor = (c.gridx == 0) ? GridBagConstraints.EAST : GridBagConstraints.WEST;
c.weighty = 1.5;
c.weightx = 0.5;
ButtonGroup myButtonGroup = new ButtonGroup();
creation.createComponent("RADIO", " Create Unsigned Trust Bundle", false, c, pane, myButtonGroup, 0, 0);
creation.createComponent("RADIO", " Create Signed Trust Bundle", false, c, pane, myButtonGroup, 1, 0);
creation.createComponent("RADIO", " View Trust Bundle", true, c, pane, myButtonGroup, 2, 0);
creation.createComponent("LABEL", " Trust Bundle", false, c, pane, null, 0, 1);
creation.createBrowseFile("FILE", "Select Trust Bundle File", c, pane, 1, 1);
creation.createComponent("BUTTON", "View Bundle", false, c, pane, null, 1, 5);
c.fill = GridBagConstraints.NONE;
creation.createComponent("LABEL", " Feedback:", false, c, pane, null, 0, 6);
creation.createComponent("TEXTPANE", "", false, c, pane, null, 1, 6);
}
Aggregations