Search in sources :

Example 16 with GridBagLayout

use of java.awt.GridBagLayout in project binnavi by google.

the class MemberDialog method createControls.

private void createControls(final TypeManager typeManager) {
    setBounds(100, 100, 450, 215);
    getContentPane().setLayout(new BorderLayout());
    contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
    getContentPane().add(contentPanel, BorderLayout.CENTER);
    final GridBagLayout gbl_contentPanel = new GridBagLayout();
    gbl_contentPanel.columnWidths = new int[] { 0, 0, 0 };
    gbl_contentPanel.rowHeights = new int[] { 0, 0, 0, 0 };
    gbl_contentPanel.columnWeights = new double[] { 0.0, 1.0, Double.MIN_VALUE };
    gbl_contentPanel.rowWeights = new double[] { 0.0, 0.0, 0.0, Double.MIN_VALUE };
    contentPanel.setLayout(gbl_contentPanel);
    {
        final JLabel lblMemberName = new JLabel("Member name:");
        final GridBagConstraints gbc_lblMemberName = new GridBagConstraints();
        gbc_lblMemberName.insets = new Insets(0, 0, 5, 5);
        gbc_lblMemberName.anchor = GridBagConstraints.EAST;
        gbc_lblMemberName.gridx = 0;
        gbc_lblMemberName.gridy = 0;
        contentPanel.add(lblMemberName, gbc_lblMemberName);
    }
    {
        memberName = new JTextField();
        final GridBagConstraints gbc_memberName = new GridBagConstraints();
        gbc_memberName.insets = new Insets(0, 0, 5, 0);
        gbc_memberName.fill = GridBagConstraints.HORIZONTAL;
        gbc_memberName.gridx = 1;
        gbc_memberName.gridy = 0;
        contentPanel.add(memberName, gbc_memberName);
        memberName.setColumns(10);
    }
    {
        final JLabel lblMemberType = new JLabel("Member type:");
        final GridBagConstraints gbc_lblMemberType = new GridBagConstraints();
        gbc_lblMemberType.anchor = GridBagConstraints.EAST;
        gbc_lblMemberType.insets = new Insets(0, 0, 5, 5);
        gbc_lblMemberType.gridx = 0;
        gbc_lblMemberType.gridy = 1;
        contentPanel.add(lblMemberType, gbc_lblMemberType);
    }
    {
        memberType = new TypeComboBox(new TypeListModel(typeManager.getTypes(), new TypeListModel.PrototypesFilter()));
        final GridBagConstraints gbc_memberType = new GridBagConstraints();
        gbc_memberType.insets = new Insets(0, 0, 5, 0);
        gbc_memberType.fill = GridBagConstraints.HORIZONTAL;
        gbc_memberType.gridx = 1;
        gbc_memberType.gridy = 1;
        contentPanel.add(memberType, gbc_memberType);
    }
    {
        final JPanel buttonPane = new JPanel();
        buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
        getContentPane().add(buttonPane, BorderLayout.SOUTH);
        {
            final JButton okButton = new JButton("OK");
            okButton.addActionListener(new OkActionListener());
            okButton.setActionCommand("OK");
            buttonPane.add(okButton);
            getRootPane().setDefaultButton(okButton);
        }
        {
            final JButton cancelButton = new JButton("Cancel");
            cancelButton.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(final ActionEvent e) {
                    dispose();
                }
            });
            cancelButton.setActionCommand("Cancel");
            buttonPane.add(cancelButton);
        }
    }
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) FlowLayout(java.awt.FlowLayout) GridBagLayout(java.awt.GridBagLayout) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField) BorderLayout(java.awt.BorderLayout) ActionListener(java.awt.event.ActionListener) EmptyBorder(javax.swing.border.EmptyBorder)

Example 17 with GridBagLayout

use of java.awt.GridBagLayout 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;
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) BorderLayout(java.awt.BorderLayout) GridBagLayout(java.awt.GridBagLayout)

Example 18 with GridBagLayout

use of java.awt.GridBagLayout in project zaproxy by zaproxy.

the class OptionsConnectionPanel method getPanelProxyAuth.

/**
	 * This method initializes panelProxyAuth	
	 * 	
	 * @return javax.swing.JPanel	
	 */
private JPanel getPanelProxyAuth() {
    if (panelProxyAuth == null) {
        java.awt.GridBagConstraints gridBagConstraints82 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints72 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints62 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints52 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints42 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints31 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints21 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints16 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints17 = new GridBagConstraints();
        javax.swing.JLabel jLabel11 = new JLabel();
        javax.swing.JLabel jLabel10 = new JLabel();
        javax.swing.JLabel jLabel9 = new JLabel();
        panelProxyAuth = new JPanel();
        panelProxyAuth.setLayout(new GridBagLayout());
        jLabel9.setText(Constant.messages.getString("conn.options.proxy.auth.realm"));
        jLabel10.setText(Constant.messages.getString("conn.options.proxy.auth.username"));
        jLabel11.setText(Constant.messages.getString("conn.options.proxy.auth.password"));
        panelProxyAuth.setBorder(javax.swing.BorderFactory.createTitledBorder(null, Constant.messages.getString("conn.options.proxy.auth.auth"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, FontUtils.getFont(FontUtils.Size.standard), java.awt.Color.black));
        gridBagConstraints16.gridx = 0;
        gridBagConstraints16.gridy = 0;
        gridBagConstraints16.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints16.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints16.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints16.gridwidth = 2;
        gridBagConstraints16.weightx = 1.0D;
        gridBagConstraints17.gridx = 0;
        gridBagConstraints17.gridy = 1;
        gridBagConstraints17.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints17.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints17.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints17.gridwidth = 2;
        gridBagConstraints17.weightx = 1.0D;
        gridBagConstraints21.gridx = 0;
        gridBagConstraints21.gridy = 2;
        gridBagConstraints21.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints21.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints21.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints21.weightx = 0.5D;
        gridBagConstraints31.gridx = 1;
        gridBagConstraints31.gridy = 2;
        gridBagConstraints31.weightx = 0.5D;
        gridBagConstraints31.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints31.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints31.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints31.ipadx = 50;
        gridBagConstraints42.gridx = 0;
        gridBagConstraints42.gridy = 3;
        gridBagConstraints42.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints42.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints42.weightx = 0.5D;
        gridBagConstraints42.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints52.gridx = 1;
        gridBagConstraints52.gridy = 3;
        gridBagConstraints52.weightx = 0.5D;
        gridBagConstraints52.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints52.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints52.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints52.ipadx = 50;
        gridBagConstraints62.gridx = 0;
        gridBagConstraints62.gridy = 4;
        gridBagConstraints62.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints62.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints62.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints62.weightx = 0.5D;
        gridBagConstraints72.gridx = 1;
        gridBagConstraints72.gridy = 4;
        gridBagConstraints72.weightx = 0.5D;
        gridBagConstraints72.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints72.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints72.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints72.ipadx = 50;
        gridBagConstraints82.gridx = 1;
        gridBagConstraints82.gridy = 5;
        gridBagConstraints82.weightx = 0.5D;
        gridBagConstraints82.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints82.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints82.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints82.ipadx = 50;
        panelProxyAuth.add(getChkProxyChainAuth(), gridBagConstraints16);
        panelProxyAuth.add(getChkProxyChainPrompt(), gridBagConstraints17);
        panelProxyAuth.add(jLabel9, gridBagConstraints21);
        panelProxyAuth.add(getTxtProxyChainRealm(), gridBagConstraints31);
        panelProxyAuth.add(jLabel10, gridBagConstraints42);
        panelProxyAuth.add(getTxtProxyChainUserName(), gridBagConstraints52);
        panelProxyAuth.add(jLabel11, gridBagConstraints62);
        panelProxyAuth.add(getTxtProxyChainPassword(), gridBagConstraints72);
        panelProxyAuth.add(getChkShowPassword(), gridBagConstraints82);
    }
    return panelProxyAuth;
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) JLabel(javax.swing.JLabel) JLabel(javax.swing.JLabel) GridBagConstraints(java.awt.GridBagConstraints)

Example 19 with GridBagLayout

use of java.awt.GridBagLayout in project zaproxy by zaproxy.

the class OptionsConnectionPanel method getPanelGeneral.

private JPanel getPanelGeneral() {
    if (panelGeneral == null) {
        java.awt.GridBagConstraints gridBagConstraints01 = new GridBagConstraints();
        java.awt.GridBagConstraints gridBagConstraints00 = new GridBagConstraints();
        javax.swing.JLabel jLabel = new JLabel();
        panelGeneral = new JPanel();
        panelGeneral.setLayout(new GridBagLayout());
        jLabel.setText(Constant.messages.getString("conn.options.timeout"));
        jLabel.setLabelFor(getTxtTimeoutInSecs());
        panelGeneral.setBorder(javax.swing.BorderFactory.createTitledBorder(null, Constant.messages.getString("conn.options.general"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, FontUtils.getFont(FontUtils.Size.standard), java.awt.Color.black));
        gridBagConstraints00.gridx = 0;
        gridBagConstraints00.gridy = 0;
        gridBagConstraints00.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints00.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints00.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints00.weightx = 0.5D;
        gridBagConstraints01.gridx = 1;
        gridBagConstraints01.gridy = 0;
        gridBagConstraints01.weightx = 0.5D;
        gridBagConstraints01.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints01.insets = new java.awt.Insets(2, 2, 2, 2);
        gridBagConstraints01.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints01.ipadx = 50;
        panelGeneral.add(jLabel, gridBagConstraints00);
        panelGeneral.add(getTxtTimeoutInSecs(), gridBagConstraints01);
        java.awt.GridBagConstraints gbc = new java.awt.GridBagConstraints();
        gbc.gridy = 3;
        gbc.gridwidth = 2;
        gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gbc.insets = new java.awt.Insets(2, 2, 2, 2);
        gbc.anchor = java.awt.GridBagConstraints.WEST;
        JLabel uaLabel = new JLabel(Constant.messages.getString("conn.options.defaultUserAgent"));
        uaLabel.setLabelFor(this.getDefaultUserAgent());
        panelGeneral.add(uaLabel, LayoutHelper.getGBC(0, 1, 1, 0.5D));
        panelGeneral.add(this.getCommonUserAgents(), LayoutHelper.getGBC(1, 1, 1, 0.5D, new Insets(2, 2, 2, 2)));
        panelGeneral.add(this.getDefaultUserAgent(), LayoutHelper.getGBC(0, 2, 2, 1.0D, new Insets(2, 2, 2, 2)));
        panelGeneral.add(getCheckBoxSingleCookeRequestHeader(), gbc);
    }
    return panelGeneral;
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) JLabel(javax.swing.JLabel) JLabel(javax.swing.JLabel) GridBagConstraints(java.awt.GridBagConstraints)

Example 20 with GridBagLayout

use of java.awt.GridBagLayout in project zaproxy by zaproxy.

the class OptionsViewPanel method getPanelMisc.

/**
	 * This method initializes panelMisc	
	 * 	
	 * @return javax.swing.JPanel	
	 */
private JPanel getPanelMisc() {
    if (panelMisc == null) {
        panelMisc = new JPanel();
        panelMisc.setLayout(new GridBagLayout());
        if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
            panelMisc.setSize(114, 132);
        }
        panelMisc.setName(Constant.messages.getString("view.options.misc.title"));
        displayLabel = new JLabel(Constant.messages.getString("view.options.label.display"));
        brkPanelViewLabel = new JLabel(Constant.messages.getString("view.options.label.brkPanelView"));
        advancedViewLabel = new JLabel(Constant.messages.getString("view.options.label.advancedview"));
        wmUiHandlingLabel = new JLabel(Constant.messages.getString("view.options.label.wmuihandler"));
        askOnExitLabel = new JLabel(Constant.messages.getString("view.options.label.askonexit"));
        showMainToolbarLabel = new JLabel(Constant.messages.getString("view.options.label.showMainToolbar"));
        processImagesLabel = new JLabel(Constant.messages.getString("view.options.label.processImages"));
        showTabNamesLabel = new JLabel(Constant.messages.getString("view.options.label.showTabNames"));
        outputTabTimeStampLabel = new JLabel(Constant.messages.getString("options.display.timestamp.format.outputtabtimestamps.label"));
        largeRequestLabel = new JLabel(Constant.messages.getString("view.options.label.largeRequestSize"));
        largeResponseLabel = new JLabel(Constant.messages.getString("view.options.label.largeResponseSize"));
        outputTabTimeStampExampleLabel = new JLabel(TimeStampUtils.currentDefaultFormattedTimeStamp());
        showSplashScreenLabel = new JLabel(Constant.messages.getString("view.options.label.showSplashScreen"));
        int row = 0;
        displayLabel.setLabelFor(getDisplaySelect());
        panelMisc.add(displayLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getDisplaySelect(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        JLabel responsePanelPositionLabel = new JLabel(Constant.messages.getString("view.options.label.responsepanelpos"));
        panelMisc.add(responsePanelPositionLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getResponsePanelPositionComboBox(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        brkPanelViewLabel.setLabelFor(getBrkPanelViewSelect());
        panelMisc.add(brkPanelViewLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getBrkPanelViewSelect(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        largeRequestLabel.setLabelFor(getLargeRequestSize());
        panelMisc.add(largeRequestLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getLargeRequestSize(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        largeResponseLabel.setLabelFor(getLargeResponseSize());
        panelMisc.add(largeResponseLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getLargeResponseSize(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        advancedViewLabel.setLabelFor(getChkAdvancedView());
        panelMisc.add(advancedViewLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getChkAdvancedView(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        wmUiHandlingLabel.setLabelFor(getChkWmUiHandling());
        panelMisc.add(wmUiHandlingLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getChkWmUiHandling(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        askOnExitLabel.setLabelFor(getChkAskOnExit());
        panelMisc.add(askOnExitLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getChkAskOnExit(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        showMainToolbarLabel.setLabelFor(getChkShowMainToolbar());
        panelMisc.add(showMainToolbarLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getChkShowMainToolbar(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        processImagesLabel.setLabelFor(getChkProcessImages());
        panelMisc.add(processImagesLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getChkProcessImages(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        Insets insets = new Insets(2, 2, 2, 2);
        String labelText = Constant.messages.getString("view.options.label.showlocalconnectrequests");
        JLabel showConnectRequestLabel = new JLabel(labelText);
        showConnectRequestLabel.setLabelFor(getShowLocalConnectRequestsCheckbox());
        panelMisc.add(showConnectRequestLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, insets));
        panelMisc.add(getShowLocalConnectRequestsCheckbox(), LayoutHelper.getGBC(1, row, 1, 1.0D, insets));
        row++;
        showTabNamesLabel.setLabelFor(getShowTabNames());
        panelMisc.add(showTabNamesLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getShowTabNames(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        showSplashScreenLabel.setLabelFor(getShowSplashScreen());
        panelMisc.add(showSplashScreenLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getShowSplashScreen(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        outputTabTimeStampLabel.setLabelFor(getChkOutputTabTimeStamps());
        panelMisc.add(outputTabTimeStampLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getChkOutputTabTimeStamps(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        outputTabTimeStampExampleLabel.setLabelFor(getTimeStampsFormatSelect());
        panelMisc.add(getTimeStampsFormatSelect(), LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(outputTabTimeStampExampleLabel, LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        JLabel fontNameLabel = new JLabel(Constant.messages.getString("view.options.label.fontName"));
        fontNameLabel.setLabelFor(getFontName());
        panelMisc.add(fontNameLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getFontName(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        JLabel fontSizeLabel = new JLabel(Constant.messages.getString("view.options.label.fontSize"));
        fontSizeLabel.setLabelFor(getFontSize());
        panelMisc.add(fontSizeLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getFontSize(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        JLabel fontExampleLabel = new JLabel(Constant.messages.getString("view.options.label.fontExample"));
        fontExampleLabel.setLabelFor(getFontExampleLabel());
        panelMisc.add(fontExampleLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getFontExampleLabel(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        JLabel scaleImagesLabel = new JLabel(Constant.messages.getString("view.options.label.scaleImages"));
        fontExampleLabel.setLabelFor(getScaleImages());
        panelMisc.add(scaleImagesLabel, LayoutHelper.getGBC(0, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        panelMisc.add(getScaleImages(), LayoutHelper.getGBC(1, row, 1, 1.0D, new java.awt.Insets(2, 2, 2, 2)));
        row++;
        panelMisc.add(new JLabel(""), LayoutHelper.getGBC(0, row, 1, 1.0D, 1.0D));
    }
    return panelMisc;
}
Also used : JPanel(javax.swing.JPanel) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) JLabel(javax.swing.JLabel)

Aggregations

GridBagLayout (java.awt.GridBagLayout)739 GridBagConstraints (java.awt.GridBagConstraints)576 JPanel (javax.swing.JPanel)532 JLabel (javax.swing.JLabel)425 Insets (java.awt.Insets)409 Dimension (java.awt.Dimension)182 JScrollPane (javax.swing.JScrollPane)147 JButton (javax.swing.JButton)143 ActionEvent (java.awt.event.ActionEvent)136 ActionListener (java.awt.event.ActionListener)115 JTextField (javax.swing.JTextField)100 BorderLayout (java.awt.BorderLayout)96 JCheckBox (javax.swing.JCheckBox)79 BoxLayout (javax.swing.BoxLayout)66 ButtonGroup (javax.swing.ButtonGroup)56 TitledBorder (javax.swing.border.TitledBorder)48 JComboBox (javax.swing.JComboBox)46 FlowLayout (java.awt.FlowLayout)42 JRadioButton (javax.swing.JRadioButton)36 Color (java.awt.Color)34