Example usage for javax.swing.border TitledBorder DEFAULT_JUSTIFICATION

List of usage examples for javax.swing.border TitledBorder DEFAULT_JUSTIFICATION

Introduction

In this page you can find the example usage for javax.swing.border TitledBorder DEFAULT_JUSTIFICATION.

Prototype

int DEFAULT_JUSTIFICATION

To view the source code for javax.swing.border TitledBorder DEFAULT_JUSTIFICATION.

Click Source Link

Document

Use the default justification for the title text.

Usage

From source file:com.mirth.connect.client.ui.SettingsPanelResources.java

private void initComponents() {
    setLayout(new MigLayout("insets 12, novisualpadding, hidemode 3, fill"));
    setBackground(UIConstants.BACKGROUND_COLOR);

    JPanel resourceListPanel = new JPanel(new MigLayout("insets 0, novisualpadding, hidemode 3, fill"));
    resourceListPanel.setBackground(getBackground());
    resourceListPanel.setBorder(BorderFactory.createTitledBorder(
            BorderFactory.createMatteBorder(1, 0, 0, 0, new Color(204, 204, 204)), "Resources",
            TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Tahoma", 1, 11)));

    resourceTable = new MirthTable();
    resourceTable.setModel(//from w w  w .  j  a va  2  s .  co  m
            new RefreshTableModel(new Object[] { "Properties", "Name", "Type", "Global Scripts" }, 0) {
                @Override
                public boolean isCellEditable(int row, int column) {
                    if (row == 0) {
                        return column == GLOBAL_SCRIPTS_COLUMN;
                    } else {
                        return column == NAME_COLUMN || column == TYPE_COLUMN
                                || column == GLOBAL_SCRIPTS_COLUMN;
                    }
                }
            });
    resourceTable.setDragEnabled(false);
    resourceTable.setRowSelectionAllowed(true);
    resourceTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    resourceTable.setRowHeight(UIConstants.ROW_HEIGHT);
    resourceTable.setFocusable(true);
    resourceTable.setOpaque(true);
    resourceTable.getTableHeader().setReorderingAllowed(false);
    resourceTable.setEditable(true);
    resourceTable.setSortable(false);

    if (Preferences.userNodeForPackage(Mirth.class).getBoolean("highlightRows", true)) {
        resourceTable.setHighlighters(HighlighterFactory.createAlternateStriping(UIConstants.HIGHLIGHTER_COLOR,
                UIConstants.BACKGROUND_COLOR));
    }

    for (ResourceClientPlugin plugin : LoadedExtensions.getInstance().getResourceClientPlugins().values()) {
        propertiesPanelMap.put(plugin.getType(), plugin.getPropertiesPanel());
    }

    resourceTable.getColumnModel().getColumn(NAME_COLUMN).setCellEditor(new NameEditor());
    resourceTable.getColumnExt(NAME_COLUMN).setToolTipText("The unique name of the resource.");

    resourceTable.getColumnModel().getColumn(TYPE_COLUMN).setMinWidth(100);
    resourceTable.getColumnModel().getColumn(TYPE_COLUMN).setMaxWidth(200);
    resourceTable.getColumnModel().getColumn(TYPE_COLUMN)
            .setCellRenderer(new ComboBoxRenderer(propertiesPanelMap.keySet().toArray()));
    resourceTable.getColumnModel().getColumn(TYPE_COLUMN).setCellEditor(new ComboBoxEditor(resourceTable,
            propertiesPanelMap.keySet().toArray(), 1, true, new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent evt) {
                    typeComboBoxActionPerformed(evt);
                }
            }));
    resourceTable.getColumnExt(TYPE_COLUMN).setToolTipText("The type of resource.");

    resourceTable.getColumnModel().getColumn(GLOBAL_SCRIPTS_COLUMN).setMinWidth(80);
    resourceTable.getColumnModel().getColumn(GLOBAL_SCRIPTS_COLUMN).setMaxWidth(80);
    resourceTable.getColumnModel().getColumn(GLOBAL_SCRIPTS_COLUMN).setCellRenderer(new CheckBoxRenderer());
    resourceTable.getColumnModel().getColumn(GLOBAL_SCRIPTS_COLUMN).setCellEditor(new CheckBoxEditor());
    resourceTable.getColumnExt(GLOBAL_SCRIPTS_COLUMN).setToolTipText(
            "<html>If checked, libraries associated with the corresponding<br/>resource will be included in global script contexts.</html>");

    resourceTable.removeColumn(resourceTable.getColumnModel().getColumn(PROPERTIES_COLUMN));

    resourceTable.getSelectionModel().addListSelectionListener(this);

    resourceTable
            .setToolTipText("<html>Add or remove resources to use<br/>in specific channels/connectors.</html>");

    resourceTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
            .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "selectNextColumnCell");

    resourceListPanel.add(new JScrollPane(resourceTable), "grow, push");

    add(resourceListPanel, "grow, h 20%");

    for (ResourcePropertiesPanel panel : propertiesPanelMap.values()) {
        add(panel, "newline, grow, h 80%");
    }

    fillerPanel = new JPanel(new MigLayout("insets 5, novisualpadding, hidemode 3, fill", "", "[][grow]"));
    fillerPanel.setBackground(getBackground());
    fillerPanel.setBorder(BorderFactory.createTitledBorder(
            BorderFactory.createMatteBorder(1, 0, 0, 0, new Color(204, 204, 204)), "Resource Settings",
            TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Tahoma", 1, 11)));
    fillerLabel = new JLabel("Select a resource from the table above.");
    fillerPanel.add(fillerLabel);

    exceptionTextPane = new JTextPane();
    exceptionTextPane.setBackground(new Color(224, 223, 227));
    exceptionTextPane.setEditable(false);
    exceptionScrollPane = new JScrollPane(exceptionTextPane);
    fillerPanel.add(exceptionScrollPane, "newline, grow");

    add(fillerPanel, "newline, grow, h 80%");
}

From source file:com.mirth.connect.plugins.datapruner.DataPrunerPanel.java

private void initComponents() {
    setBackground(UIConstants.BACKGROUND_COLOR);

    statusPanel = new JPanel();
    statusPanel.setBackground(UIConstants.BACKGROUND_COLOR);
    statusPanel.setBorder(BorderFactory.createTitledBorder(
            BorderFactory.createMatteBorder(1, 0, 0, 0, new Color(204, 204, 204)), "Status",
            TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Tahoma", 1, 11)));

    currentStateLabel = new JLabel("Current State:");
    currentStateTextLabel = new JLabel("Unknown");

    currentProcessLabel = new JLabel("Current Process:");
    currentProcessTextLabel = new JLabel("Unknown");

    lastProcessLabel = new JLabel("Last Process:");
    lastProcessTextLabel = new JLabel("Unknown");

    nextProcessLabel = new JLabel("Next Process:");
    nextProcessTextLabel = new JLabel("Unknown");

    pruningSchedulePanel = new JPanel();
    pruningSchedulePanel.setBackground(UIConstants.BACKGROUND_COLOR);
    pruningSchedulePanel.setBorder(BorderFactory.createTitledBorder(
            BorderFactory.createMatteBorder(1, 0, 0, 0, new Color(204, 204, 204)), "Schedule",
            TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
            new java.awt.Font("Tahoma", 1, 11)));

    enabledLabel = new JLabel("Enable:");

    yesEnabledRadio = new MirthRadioButton("Yes");
    yesEnabledRadio.setFocusable(false);
    yesEnabledRadio.setBackground(Color.white);
    yesEnabledRadio.addActionListener(new ActionListener() {
        @Override/*from  www  .j a  v  a2s  .c  om*/
        public void actionPerformed(ActionEvent event) {
            enabledActionPerformed();
        }
    });

    noEnabledRadio = new MirthRadioButton("No");
    noEnabledRadio.setFocusable(false);
    noEnabledRadio.setBackground(Color.white);
    noEnabledRadio.setSelected(true);
    noEnabledRadio.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent event) {
            enabledActionPerformed();
        }
    });

    enabledButtonGroup = new ButtonGroup();
    enabledButtonGroup.add(yesEnabledRadio);
    enabledButtonGroup.add(noEnabledRadio);

    pollingSettingsPanel = new PollingSettingsPanel(false);

    pruneSettingsPanel = new JPanel();
    pruneSettingsPanel.setBackground(UIConstants.BACKGROUND_COLOR);
    pruneSettingsPanel.setBorder(BorderFactory.createTitledBorder(
            BorderFactory.createMatteBorder(1, 0, 0, 0, new Color(204, 204, 204)), "Prune Settings",
            TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Tahoma", 1, 11))); // NOI18N

    blockSizeLabel = new JLabel("Block Size:");
    blockSizeTextField = new MirthTextField();
    blockSizeTextField.setToolTipText(
            "<html>The number of messages that will be pruned at a time. This value must<br/>be between 50 and 10000. The recommended value for most servers is 1000.</html>");

    pruneEventsLabel = new JLabel("Prune Events:");

    pruneEventsYes = new MirthRadioButton("Yes");
    pruneEventsYes.setBackground(UIConstants.BACKGROUND_COLOR);
    pruneEventsYes.setToolTipText(
            "<html>If Yes, event records older than the Event Age will be pruned. If No, event records will not be pruned.</html>");
    pruneEventsYes.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            pruneEventsActionPerformed(evt);
        }
    });

    pruneEventsNo = new MirthRadioButton("No");
    pruneEventsNo.setBackground(UIConstants.BACKGROUND_COLOR);
    pruneEventsNo.setToolTipText(
            "<html>If Yes, event records will be pruned in addition to messages. If No, event records will not be pruned.</html>");
    pruneEventsNo.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            pruneEventsActionPerformed(evt);
        }
    });

    pruneEventsButtonGroup = new ButtonGroup();
    pruneEventsButtonGroup.add(pruneEventsYes);
    pruneEventsButtonGroup.add(pruneEventsNo);

    pruneEventAgeLabel = new JLabel("Prune Event Age:");

    pruneEventAgeTextField = new MirthTextField();
    pruneEventAgeTextField.setToolTipText(
            "<html>Events older than this number of days will be pruned if Prune Events is set to Yes.</html>");

    eventDaysLabel = new JLabel("days");
    eventDaysLabel.setEnabled(false);

    archiverContainerPanel = new JPanel();
    archiverContainerPanel.setBackground(UIConstants.BACKGROUND_COLOR);
    archiverContainerPanel.setBorder(BorderFactory.createTitledBorder(
            BorderFactory.createMatteBorder(1, 0, 0, 0, new Color(204, 204, 204)), "Archive Settings",
            TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Tahoma", 1, 11))); // NOI18N
    archiverContainerPanel.setLayout(null);

    archiverPanel = new MessageExportPanel(Frame.userPreferences, true, false);
    archiverPanel.setBackground(archiverContainerPanel.getBackground());
    archiverContainerPanel.setLayout(new MigLayout("fillx, insets 0 0 0 0", "[grow,fill]", "[grow,fill]"));
    archiverContainerPanel.add(archiverPanel, "height 195!, aligny top");

    enabledActionPerformed();
}

From source file:com.sec.ose.osi.ui.dialog.setting.JPanProjectAnalysisSetting.java

/**
 * This method initializes jIntMainPanel   
 *    //from ww w.j  a  v  a2s  .  c  o m
 * @return javax.swing.JPanel   
 */
private JPanel getJIntMainPanel() {
    if (jIntMainPanel == null) {

        GridBagConstraints gridBagConstraintsSplit = new GridBagConstraints();
        gridBagConstraintsSplit.anchor = GridBagConstraints.NORTHWEST;
        gridBagConstraintsSplit.weighty = 1.0;
        gridBagConstraintsSplit.insets = new Insets(5, 5, 0, 5);
        gridBagConstraintsSplit.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsSplit.weightx = 1.0;

        GridBagConstraints gridBagConstraintsMonitor = new GridBagConstraints();
        gridBagConstraintsMonitor.anchor = GridBagConstraints.WEST;
        gridBagConstraintsMonitor.weighty = 1.0;
        gridBagConstraintsMonitor.insets = new Insets(5, 5, 0, 5);
        gridBagConstraintsMonitor.gridx = 0;
        gridBagConstraintsMonitor.gridy = 1;
        gridBagConstraintsMonitor.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsMonitor.weightx = 1.0;

        jIntMainPanel = new JPanel();
        jIntMainPanel.setLayout(new GridBagLayout());
        jIntMainPanel.setBorder(BorderFactory.createTitledBorder(null, "", TitledBorder.DEFAULT_JUSTIFICATION,
                TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jIntMainPanel.add(getJPanelProjectSplit(), gridBagConstraintsSplit);
        jIntMainPanel.add(getJPanelMonitorInterval(), gridBagConstraintsMonitor);
    }
    return jIntMainPanel;
}

From source file:com.sec.ose.osi.ui.frm.main.manage.JPanManageMain.java

/**
 * This method initializes jPanelProjectList   
 *    /*from  w  ww .  j  a  v  a2  s  .  c  om*/
 * @return javax.swing.JPanel   
 */
private JPanel getJPanelProjectList() {
    if (jPanelProjectList == null) {
        GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
        gridBagConstraints8.anchor = GridBagConstraints.EAST;
        gridBagConstraints8.weightx = 0.1;
        gridBagConstraints8.insets = new Insets(0, 0, 0, 10);
        GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
        gridBagConstraints2.anchor = GridBagConstraints.CENTER;
        gridBagConstraints2.insets = new Insets(0, 0, 0, 10);
        GridBagConstraints gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.fill = GridBagConstraints.BOTH;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.insets = new Insets(10, 10, 10, 10);
        gridBagConstraints.gridx = 0;
        jPanelProjectList = new JPanel();
        jPanelProjectList.setLayout(new GridBagLayout());
        jPanelProjectList.setBorder(BorderFactory.createTitledBorder(null, "Project",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jPanelProjectList.add(getJButtonAdd(), gridBagConstraints8);
        jPanelProjectList.add(getJButtonCreate(), gridBagConstraints2);
        jPanelProjectList.add(getJScrollPanePjtList(), gridBagConstraints);
    }
    return jPanelProjectList;
}

From source file:com.sec.ose.osi.ui.frm.main.identification.codematch.JPanCodeMatchMain.java

/**
 * This method initializes jPanel1   /* w  w w.ja  v a2  s . c om*/
 *    
 * @return javax.swing.JPanel   
 */
public JSplitPane getJSplitPaneSourceCode() {
    if (jSplitPaneSourceCode == null) {
        GridBagConstraints gridBagConstraints14 = new GridBagConstraints();
        gridBagConstraints14.fill = GridBagConstraints.BOTH;
        gridBagConstraints14.weighty = 1.0;
        gridBagConstraints14.weightx = 1.0;
        GridBagConstraints gridBagConstraints17 = new GridBagConstraints();
        gridBagConstraints17.fill = GridBagConstraints.BOTH;
        gridBagConstraints17.weighty = 1.0;
        gridBagConstraints17.weightx = 1.0;
        jSplitPaneSourceCode = new JSplitPane();
        jSplitPaneSourceCode.setBorder(BorderFactory.createTitledBorder(null, "Source Code",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jSplitPaneSourceCode.setDividerSize(5);
        jSplitPaneSourceCode.setLeftComponent(getJPanMatchedSourceViewLeft());
        jSplitPaneSourceCode.setRightComponent(getJPanMatchedSourceViewRight());

        PropertyChangeListener propertyChangeListener = new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent changeEvent) {
                String propertyName = changeEvent.getPropertyName();
                if (propertyName.equals(JSplitPane.LAST_DIVIDER_LOCATION_PROPERTY)) {
                    if (getSimilarSnippets() != null) {
                        setNavigator();
                    }
                }
            }
        };

        jSplitPaneSourceCode.addPropertyChangeListener(propertyChangeListener);
    }
    return jSplitPaneSourceCode;
}

From source file:com.sec.ose.osi.ui.frm.login.JPanLogin.java

/****************
 *  Proxy Info/* w w w .  j  a  v a2 s .c  o  m*/
 ***************/

private JPanel getJPanelForProxyInfo() {
    if (jPanelForProxyInfo == null) {
        GridBagConstraints gridBagConstraintsProxyInfo = new GridBagConstraints();
        gridBagConstraintsProxyInfo.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsProxyInfo.gridx = -1;
        gridBagConstraintsProxyInfo.gridy = -1;
        gridBagConstraintsProxyInfo.gridwidth = 1;
        gridBagConstraintsProxyInfo.anchor = GridBagConstraints.CENTER;
        gridBagConstraintsProxyInfo.weightx = 1.0;
        gridBagConstraintsProxyInfo.weighty = 0.0;
        //gridBagConstraints5.insets = new Insets(10, 10, 0, 20);
        jPanelForProxyInfo = new JPanel();
        jPanelForProxyInfo.setLayout(new GridBagLayout());
        jPanelForProxyInfo.setBorder(BorderFactory.createTitledBorder(null, "Proxy Setting",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jPanelForProxyInfo.add(getJPanelProxyInfo(), gridBagConstraintsProxyInfo);
    }
    return jPanelForProxyInfo;
}

From source file:net.sf.profiler4j.console.ProjectDialog.java

/**
 * This method initializes jPanel4/*from  w  w w.  j a v a  2  s.c o m*/
 * 
 * @return javax.swing.JPanel
 */
private JPanel getConnectionPanel() {
    if (connectionPanel == null) {
        portLabel = new JLabel();
        portLabel.setBounds(new java.awt.Rectangle(16, 64, 49, 17));
        portLabel.setText("Port");
        hostLabel = new JLabel();
        hostLabel.setText("Host");
        hostLabel.setBounds(new java.awt.Rectangle(16, 32, 49, 17));
        connectionPanel = new JPanel();
        connectionPanel.setLayout(null);
        connectionPanel.setBounds(new java.awt.Rectangle(16, 56, 385, 103));
        connectionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Remote JVM",
                javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
                javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
        connectionPanel.add(hostLabel, null);
        connectionPanel.add(getHostTextField(), null);
        connectionPanel.add(getPortTextField(), null);
        connectionPanel.add(portLabel, null);
    }
    return connectionPanel;
}

From source file:com.sec.ose.osi.ui.dialog.setting.JPanProjectAnalysisSetting.java

/**
 * This method initializes jInnerPanel   
 *    /*from   w ww . ja v  a2  s .  com*/
 * @return javax.swing.JPanel   
 */
private JPanel getJPanelMonitorInterval() {
    if (jInnerPanel == null) {
        GridBagConstraints gridBagConstraints12 = new GridBagConstraints();
        gridBagConstraints12.anchor = GridBagConstraints.WEST;
        gridBagConstraints12.gridx = 0;
        gridBagConstraints12.gridy = 1;
        gridBagConstraints12.weightx = 1.0;
        gridBagConstraints12.insets = new Insets(0, 0, 10, 0);
        gridBagConstraints12.fill = GridBagConstraints.NONE;
        GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
        gridBagConstraints8.anchor = GridBagConstraints.WEST;
        gridBagConstraints8.insets = new Insets(0, 0, 0, 0);
        gridBagConstraints8.gridx = -1;
        gridBagConstraints8.gridy = -1;
        gridBagConstraints8.weightx = 1.0;
        gridBagConstraints8.fill = GridBagConstraints.NONE;
        jInnerPanel = new JPanel();
        jInnerPanel.setLayout(new GridBagLayout());
        jInnerPanel.setBorder(BorderFactory.createTitledBorder(null, "Monitor Interval",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jInnerPanel.add(getJIntRadioTopPanel(), gridBagConstraints8);
        jInnerPanel.add(getJIntRadioBottomPanel(), gridBagConstraints12);
    }
    return jInnerPanel;
}

From source file:com.sec.ose.osi.ui.frm.main.manage.JPanManageMain.java

/**
 * This method initializes jPanelConsol   
 *    //from  w w  w.  java 2s . c  o m
 * @return javax.swing.JPanel   
 */
private JPanel getJPanelConsol() {
    if (jPanelConsol == null) {
        GridBagConstraints gridBagConstraintsForConsole = new GridBagConstraints();
        gridBagConstraintsForConsole.fill = GridBagConstraints.BOTH;
        gridBagConstraintsForConsole.weightx = 1.0;
        gridBagConstraintsForConsole.weighty = 1.0;
        gridBagConstraintsForConsole.gridwidth = 3;
        gridBagConstraintsForConsole.insets = new Insets(10, 10, 10, 10);

        GridBagConstraints gridBagConstraintsForProgressBar = new GridBagConstraints();
        gridBagConstraintsForProgressBar.fill = GridBagConstraints.BOTH;
        gridBagConstraintsForProgressBar.gridx = 0;
        gridBagConstraintsForProgressBar.gridy = 1;
        gridBagConstraintsForProgressBar.weightx = 1.0;
        gridBagConstraintsForProgressBar.gridwidth = 3;
        gridBagConstraintsForProgressBar.insets = new Insets(10, 10, 10, 10);

        GridBagConstraints gridBagConstraintsForLabelStatus = new GridBagConstraints();
        gridBagConstraintsForLabelStatus.fill = GridBagConstraints.BOTH;
        gridBagConstraintsForLabelStatus.gridx = 0;
        gridBagConstraintsForLabelStatus.gridy = 2;
        gridBagConstraintsForLabelStatus.weightx = 0.1;
        gridBagConstraintsForLabelStatus.insets = new Insets(0, 10, 10, 0);

        GridBagConstraints gridBagConstraintsForMonitoringInterfal = new GridBagConstraints();
        gridBagConstraintsForMonitoringInterfal.fill = GridBagConstraints.BOTH;
        gridBagConstraintsForMonitoringInterfal.gridx = 2;
        gridBagConstraintsForMonitoringInterfal.gridy = 2;
        gridBagConstraintsForMonitoringInterfal.weightx = 0.1;
        gridBagConstraintsForMonitoringInterfal.insets = new Insets(0, 0, 10, 10);

        jPanelConsol = new JPanel();
        jPanelConsol.setLayout(new GridBagLayout());
        jPanelConsol.setBorder(BorderFactory.createTitledBorder(null, "Console",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jPanelConsol.add(getJScrollPaneConsole(), gridBagConstraintsForConsole);
        jPanelConsol.add(getJLabelStatus(), gridBagConstraintsForLabelStatus);
        jPanelConsol.add(getJAnalyzeProgressBar(), gridBagConstraintsForProgressBar);
        jPanelConsol.add(getJLabelMonitoringInterval(), gridBagConstraintsForMonitoringInterfal);
    }
    return jPanelConsol;
}

From source file:com.sec.ose.osi.ui.frm.main.report.JPanExportReport.java

private JPanel getJPanelForCreatorInfo() {
    if (jPanelForCreatorInfo == null) {
        GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
        gridBagConstraints5.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraints5.gridx = -1;//from  w w  w  .  j  ava 2s .  c om
        gridBagConstraints5.gridy = -1;
        gridBagConstraints5.gridwidth = 1;
        gridBagConstraints5.anchor = GridBagConstraints.CENTER;
        gridBagConstraints5.weightx = 1.0;
        gridBagConstraints5.weighty = 0.0;
        gridBagConstraints5.insets = new Insets(0, 10, 10, 43); // margin // top, left, bottom, right
        jPanelForCreatorInfo = new JPanel();
        jPanelForCreatorInfo.setLayout(new GridBagLayout());
        jPanelForCreatorInfo.setBorder(BorderFactory.createTitledBorder(null, "Creator Info",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jPanelForCreatorInfo.add(getJPanelCreatorInfo(), gridBagConstraints5);
    }
    return jPanelForCreatorInfo;
}