Example usage for javax.swing BorderFactory createTitledBorder

List of usage examples for javax.swing BorderFactory createTitledBorder

Introduction

In this page you can find the example usage for javax.swing BorderFactory createTitledBorder.

Prototype

public static TitledBorder createTitledBorder(Border border, String title, int titleJustification,
        int titlePosition, Font titleFont, Color titleColor) 

Source Link

Document

Adds a title to an existing border, with the specified positioning, font and color.

Usage

From source file:Main.java

public Main() {
    getContentPane().setLayout(new FlowLayout());
    JLabel labelTwo = new JLabel("www.java2s.com");
    labelTwo.setBorder(BorderFactory.createEtchedBorder());

    add(labelTwo);/*from   w  w w.j av  a  2 s  . c  o m*/

    JLabel labelFour = new JLabel("TitledBorder");
    labelFour.setBorder(BorderFactory.createTitledBorder(
            BorderFactory.createMatteBorder(10, 10, 10, 10, Color.pink), "Title", TitledBorder.ABOVE_BOTTOM,
            TitledBorder.BOTTOM, new Font("font name", Font.BOLD, 19), Color.BLACK));
    add(labelFour);

}

From source file:org.cytoscape.dyn.internal.graphMetrics.GraphMetricsPanel.java

public GraphMetricsPanel(org.cytoscape.dyn.internal.CyActivator<T, C> cyActivator,
        DynNetwork<T> dynamicNetwork) {

    this.cyactivator = cyActivator;
    this.dynamicNetwork = dynamicNetwork;
    attributesTable = new JTable(new MyTableModel(dynamicNetwork.getNodeAttributes()));
    attributesTable.setPreferredScrollableViewportSize(new Dimension(300, 400));
    attributesTable.setFillsViewportHeight(true);
    attributesTable.setShowGrid(false);/*from   ww  w. ja v a 2 s  .  co  m*/
    JScrollPane tablePanel = new JScrollPane(attributesTable);
    tablePanel.setSize(new Dimension(250, 400));

    edgeAttributesTable = new JTable(new MyTableModel(dynamicNetwork.getEdgeAttributes()));
    edgeAttributesTable.setPreferredScrollableViewportSize(new Dimension(300, 400));
    edgeAttributesTable.setFillsViewportHeight(true);
    edgeAttributesTable.setShowGrid(false);
    JScrollPane edgeTablePanel = new JScrollPane(edgeAttributesTable);
    edgeTablePanel.setSize(new Dimension(250, 400));

    plotChartButton = new JButton("Plot Selected Attributes");
    closeTab = new JButton("Close Tab");

    plotChartButton.addActionListener(this);
    closeTab.addActionListener(this);

    buttonPanel = new JPanel();

    buttonPanel.setLayout(new FlowLayout());

    buttonPanel.add(plotChartButton);
    buttonPanel.add(closeTab);
    buttonPanel.setBorder(BorderFactory.createTitledBorder(null, "Options", TitledBorder.DEFAULT_JUSTIFICATION,
            TitledBorder.DEFAULT_POSITION, new Font("SansSerif", 0, 12), Color.darkGray));

    tablePanel.setBorder(
            BorderFactory.createTitledBorder(null, "Node Attributes", TitledBorder.DEFAULT_JUSTIFICATION,
                    TitledBorder.DEFAULT_POSITION, new Font("SansSerif", 0, 12), Color.darkGray));

    edgeTablePanel.setBorder(
            BorderFactory.createTitledBorder(null, "Edge Attributes", TitledBorder.DEFAULT_JUSTIFICATION,
                    TitledBorder.DEFAULT_POSITION, new Font("SansSerif", 0, 12), Color.darkGray));

    GroupLayout cytoLayout = new GroupLayout(this);
    this.setLayout(cytoLayout);
    this.add(tablePanel);
    this.add(buttonPanel);

    cytoLayout.setHorizontalGroup(cytoLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addComponent(tablePanel, GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
            .addComponent(edgeTablePanel, GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
            .addComponent(buttonPanel, GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE));
    cytoLayout.setVerticalGroup(
            cytoLayout.createSequentialGroup().addComponent(tablePanel, 200, GroupLayout.DEFAULT_SIZE, 300)
                    .addComponent(edgeTablePanel, 200, GroupLayout.DEFAULT_SIZE, 300)
                    .addComponent(buttonPanel, GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE));

    this.setVisible(true);
}

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

private JPanel getJPanelValue() {
    if (jPanelValue == null) {

        GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
        gridBagConstraints3.gridx = 1;//ww  w  .  j a  v a  2 s .  c  o m
        gridBagConstraints3.weighty = 1.0;
        gridBagConstraints3.weightx = 0.0;
        gridBagConstraints3.gridy = 4;
        jLabelEmpty = new JLabel();
        jLabelEmpty.setText("");
        GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
        gridBagConstraints2.gridx = 0;
        gridBagConstraints2.gridy = 3;
        jPanelValue = new JPanel();
        jPanelValue.setLayout(new GridBagLayout());
        jPanelValue.setBorder(BorderFactory.createTitledBorder(null, "", TitledBorder.DEFAULT_JUSTIFICATION,
                TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jPanelValue.setPreferredSize(new Dimension(400, 200));
        jPanelValue.add(jLabelEmpty, gridBagConstraints3);

        JLabel jLabelProxyHost = new JLabel("Proxy Host : ", JLabel.RIGHT);
        GridBagConstraints gridBagConstraintsjLabelProxyHost = new GridBagConstraints();
        gridBagConstraintsjLabelProxyHost.gridx = 0;
        gridBagConstraintsjLabelProxyHost.insets = new Insets(10, 20, 5, 0);
        gridBagConstraintsjLabelProxyHost.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsjLabelProxyHost.weightx = 0.0;
        gridBagConstraintsjLabelProxyHost.weighty = 0.0;
        gridBagConstraintsjLabelProxyHost.gridy = 1;
        jPanelValue.add(jLabelProxyHost, gridBagConstraintsjLabelProxyHost);

        GridBagConstraints gridBagConstraintsgetJTextFieldProxyHost = new GridBagConstraints();
        gridBagConstraintsgetJTextFieldProxyHost.gridx = 1;
        gridBagConstraintsgetJTextFieldProxyHost.weightx = 1.0;
        gridBagConstraintsgetJTextFieldProxyHost.fill = GridBagConstraints.BOTH;
        gridBagConstraintsgetJTextFieldProxyHost.insets = new Insets(10, 5, 5, 100);
        gridBagConstraintsgetJTextFieldProxyHost.gridwidth = 2;
        gridBagConstraintsgetJTextFieldProxyHost.gridy = 1;
        jPanelValue.add(getJTextFieldProxyHost(), gridBagConstraintsgetJTextFieldProxyHost);

        JLabel jLabelProxyPort = new JLabel("Proxy Port : ", JLabel.RIGHT);
        GridBagConstraints gridBagConstraintsjLabelProxyPort = new GridBagConstraints();
        gridBagConstraintsjLabelProxyPort.gridx = 0;
        gridBagConstraintsjLabelProxyPort.insets = new Insets(0, 20, 0, 0);
        gridBagConstraintsjLabelProxyPort.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsjLabelProxyPort.weighty = 0.0;
        gridBagConstraintsjLabelProxyPort.gridy = 2;
        jPanelValue.add(jLabelProxyPort, gridBagConstraintsjLabelProxyPort);

        GridBagConstraints gridBagConstraintsgetJTextFieldProxyPort = new GridBagConstraints();
        gridBagConstraintsgetJTextFieldProxyPort.gridx = 1;
        gridBagConstraintsgetJTextFieldProxyPort.weightx = 1.0;
        gridBagConstraintsgetJTextFieldProxyPort.fill = GridBagConstraints.BOTH;
        gridBagConstraintsgetJTextFieldProxyPort.insets = new Insets(5, 5, 5, 220);
        gridBagConstraintsgetJTextFieldProxyPort.weighty = 0.0;
        gridBagConstraintsgetJTextFieldProxyPort.anchor = GridBagConstraints.CENTER;
        gridBagConstraintsgetJTextFieldProxyPort.gridy = 2;
        jPanelValue.add(getJTextFieldProxyPort(), gridBagConstraintsgetJTextFieldProxyPort);

        JLabel jLabelProxyBypass = new JLabel("Proxy Bypass : ", JLabel.RIGHT);
        GridBagConstraints gridBagConstraintsjLabelProxyBypass = new GridBagConstraints();
        gridBagConstraintsjLabelProxyBypass.gridx = 0;
        gridBagConstraintsjLabelProxyBypass.insets = new Insets(0, 20, 0, 0);
        gridBagConstraintsjLabelProxyBypass.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsjLabelProxyBypass.weighty = 0.0;
        gridBagConstraintsjLabelProxyBypass.gridy = 3;
        jPanelValue.add(jLabelProxyBypass, gridBagConstraintsjLabelProxyBypass);

        GridBagConstraints gridBagConstraintsgetJTextFieldProxyBypass = new GridBagConstraints();
        gridBagConstraintsgetJTextFieldProxyBypass.gridx = 1;
        gridBagConstraintsgetJTextFieldProxyBypass.weightx = 1.0;
        gridBagConstraintsgetJTextFieldProxyBypass.fill = GridBagConstraints.BOTH;
        gridBagConstraintsgetJTextFieldProxyBypass.insets = new Insets(5, 5, 5, 100);
        gridBagConstraintsgetJTextFieldProxyBypass.weighty = 0.0;
        gridBagConstraintsgetJTextFieldProxyBypass.anchor = GridBagConstraints.CENTER;
        gridBagConstraintsgetJTextFieldProxyBypass.gridy = 3;
        jPanelValue.add(getJTextFieldProxyBypass(), gridBagConstraintsgetJTextFieldProxyBypass);

        //jPanelValue.add(getJPanel(), gridBagConstraints2);

    }
    return jPanelValue;
}

From source file:com.sec.ose.osi.ui.frm.main.identification.patternmatch.JPanPatternMatchMain.java

/**
 * This method initializes this/* w  ww  .j a va 2s .  com*/
 * 
 * @return void
 */
private void initialize() {
    GridBagConstraints gridBagConstraints41 = new GridBagConstraints();
    gridBagConstraints41.gridx = 0;
    gridBagConstraints41.gridwidth = 2;
    gridBagConstraints41.anchor = GridBagConstraints.NORTHWEST;
    gridBagConstraints41.weighty = 0.01;
    gridBagConstraints41.weightx = 1.0;
    gridBagConstraints41.gridy = 1;
    GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
    gridBagConstraints3.gridx = 0;
    gridBagConstraints3.anchor = GridBagConstraints.NORTHWEST;
    gridBagConstraints3.gridwidth = 2;
    gridBagConstraints3.weighty = 1.0;
    gridBagConstraints3.insets = new Insets(0, 20, 0, 0);
    gridBagConstraints3.gridy = 3;
    jLabelLicense = new JLabel();
    jLabelLicense.setText("License :");
    jLabelLicense.setFont(new Font("Dialog", Font.PLAIN, 12));
    jLabelComponent = new JLabel();
    jLabelComponent.setText("Component :");
    jLabelComponent.setFont(new Font("Dialog", Font.PLAIN, 12));
    jLabelBinding = new JLabel();
    jLabelBinding.setText("Binding Type :");
    jLabelBinding.setFont(new Font("Dialog", Font.PLAIN, 12));
    this.setLayout(new GridBagLayout());
    this.setSize(570, 480);
    this.setBorder(BorderFactory.createTitledBorder(null, "Identification Information",
            TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
            new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
    this.setLocation(new Point(0, 0));
    this.add(getJScrollPaneFolder(), gridBagConstraints3);
    this.add(getJScrollPanePanel(), gridBagConstraints41);

    getJRadioButtonNotContain().setSelected(false);
    getJRadioButtonThird().setSelected(false);
    getJRadioButtonIKnow().setSelected(true);
    getJScrollPaneFolder().setVisible(true);
}

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

/**
 * This method initializes jPanelValue   
 *    /*from   www. j  a va2  s  . c  o m*/
 * @return javax.swing.JPanel   
 */
private JPanel getJPanelValue() {
    if (jPanelValue == null) {

        jPanelValue = new JPanel();
        jPanelValue.setLayout(new GridBagLayout());
        jPanelValue.setBorder(BorderFactory.createTitledBorder(null, "", TitledBorder.DEFAULT_JUSTIFICATION,
                TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jPanelValue.setPreferredSize(new Dimension(400, 200));

        // Default Report Location

        jLabelDefaultReportLocation = new JLabel();
        jLabelDefaultReportLocation.setText("Default Report Location:");
        jLabelDefaultReportLocation.setHorizontalAlignment(SwingConstants.RIGHT);

        GridBagConstraints gridBagConstraintsjLabelDefaultReportLocation = new GridBagConstraints();
        gridBagConstraintsjLabelDefaultReportLocation.gridx = 0;
        gridBagConstraintsjLabelDefaultReportLocation.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsjLabelDefaultReportLocation.insets = new Insets(5, 0, 0, 0);
        gridBagConstraintsjLabelDefaultReportLocation.gridy = 1;

        GridBagConstraints gridBagConstraintsjpanelDefaultReportLocation = new GridBagConstraints();
        gridBagConstraintsjpanelDefaultReportLocation.fill = GridBagConstraints.BOTH;
        gridBagConstraintsjpanelDefaultReportLocation.gridy = 1;
        gridBagConstraintsjpanelDefaultReportLocation.weightx = 1.0;
        gridBagConstraintsjpanelDefaultReportLocation.insets = new Insets(10, 5, 5, 15);
        gridBagConstraintsjpanelDefaultReportLocation.gridx = 1;

        // reciprocal license

        jLabelReciprocalLicense = new JLabel();
        jLabelReciprocalLicense.setText("Reciprocal License (RED):");
        jLabelReciprocalLicense.setHorizontalAlignment(SwingConstants.RIGHT);

        GridBagConstraints gridBagConstraintsjLabelReciprocalLicense = new GridBagConstraints();
        gridBagConstraintsjLabelReciprocalLicense.gridx = 0;
        gridBagConstraintsjLabelReciprocalLicense.insets = new Insets(0, 15, 0, 0);
        gridBagConstraintsjLabelReciprocalLicense.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsjLabelReciprocalLicense.gridy = 2;
        jPanelValue.add(jLabelDefaultReportLocation, gridBagConstraintsjLabelDefaultReportLocation);
        jPanelValue.add(getJPanelDefaultReportLocation(), gridBagConstraintsjpanelDefaultReportLocation);
        jPanelValue.add(jLabelReciprocalLicense, gridBagConstraintsjLabelReciprocalLicense);

        GridBagConstraints gridBagConstraintsgetJTextFieldReciprocalLicense = new GridBagConstraints();
        gridBagConstraintsgetJTextFieldReciprocalLicense.gridx = 1;
        gridBagConstraintsgetJTextFieldReciprocalLicense.weightx = 1.0;
        gridBagConstraintsgetJTextFieldReciprocalLicense.fill = GridBagConstraints.BOTH;
        gridBagConstraintsgetJTextFieldReciprocalLicense.insets = new Insets(5, 5, 5, 15);
        gridBagConstraintsgetJTextFieldReciprocalLicense.gridy = 2;
        jPanelValue.add(getJTextFieldReciprocalLicense(), gridBagConstraintsgetJTextFieldReciprocalLicense);

        // major license

        jLabelMajorLicense = new JLabel();
        jLabelMajorLicense.setText("Major License (ORANGE):");
        jLabelMajorLicense.setHorizontalAlignment(SwingConstants.RIGHT);

        GridBagConstraints gridBagConstraintsjLabelMajorLicense = new GridBagConstraints();
        gridBagConstraintsjLabelMajorLicense.gridx = 0;
        gridBagConstraintsjLabelMajorLicense.insets = new Insets(0, 15, 0, 0);
        gridBagConstraintsjLabelMajorLicense.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraintsjLabelMajorLicense.gridy = 3;
        jPanelValue.add(jLabelMajorLicense, gridBagConstraintsjLabelMajorLicense);

        GridBagConstraints gridBagConstraintsgetJTextFieldMajorLicense = new GridBagConstraints();
        gridBagConstraintsgetJTextFieldMajorLicense.gridx = 1;
        gridBagConstraintsgetJTextFieldMajorLicense.weightx = 1.0;
        gridBagConstraintsgetJTextFieldMajorLicense.fill = GridBagConstraints.BOTH;
        gridBagConstraintsgetJTextFieldMajorLicense.insets = new Insets(5, 5, 5, 15);
        gridBagConstraintsgetJTextFieldMajorLicense.gridy = 3;
        jPanelValue.add(getJTextFieldMajorLicense(), gridBagConstraintsgetJTextFieldMajorLicense);

        GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
        gridBagConstraints3.gridx = 1;
        gridBagConstraints3.weighty = 1.0;
        gridBagConstraints3.weightx = 0.0;
        gridBagConstraints3.gridy = 4;
        JLabel jLabelEmpty = new JLabel();
        jLabelEmpty.setText("");
        jPanelValue.add(jLabelEmpty, gridBagConstraints3);
    }
    return jPanelValue;
}

From source file:me.paddingdun.gen.code.gui.view.dbtable.TableView.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.//from  w  w  w .j a v a 2s.  c o m
 */
// <editor-fold defaultstate="collapsed" desc="Generated
// Code">//GEN-BEGIN:initComponents
private void initComponents() {

    setIconifiable(true);
    setMaximizable(true);
    setResizable(true);
    setTitle("?/");
    fileChooser = new javax.swing.JFileChooser();
    p = new javax.swing.JSplitPane();
    p0t = new javax.swing.JPanel();
    pt = new javax.swing.JSplitPane();
    ptt = new javax.swing.JScrollPane();
    ptb = new javax.swing.JScrollPane();
    ptba = new javax.swing.JPanel();
    pb = new javax.swing.JSplitPane();
    p0b = new javax.swing.JPanel();
    pbt = new javax.swing.JScrollPane();
    pbb = new javax.swing.JScrollPane();
    pbba = new javax.swing.JPanel();

    p.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    pt.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    pb.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

    p.setTopComponent(p0t);
    p.setBottomComponent(p0b);

    p0t.setLayout(new BorderLayout());
    p0t.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(), "?",
            TitledBorder.LEFT, TitledBorder.DEFAULT_POSITION, null, Color.BLACK));
    p0t.add(pt, BorderLayout.CENTER);
    p0t.addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent e) {
            p.setDividerLocation(p.getHeight() - 40);
            EventQueue.invokeLater(new Runnable() {
                @Override
                public void run() {
                    pt.setDividerLocation(0.38);
                    EventQueue.invokeLater(new Runnable() {
                        @Override
                        public void run() {
                            pb.setDividerLocation(1.0d);
                        }
                    });
                }
            });
        }
    });

    p0b.setLayout(new BorderLayout());
    p0b.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(), "",
            TitledBorder.LEFT, TitledBorder.DEFAULT_POSITION, null, Color.BLACK));
    p0b.add(pb, BorderLayout.CENTER);
    p0b.addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent e) {
            p.setDividerLocation(30);
            EventQueue.invokeLater(new Runnable() {
                @Override
                public void run() {
                    pt.setDividerLocation(1.0d);

                    EventQueue.invokeLater(new Runnable() {
                        @Override
                        public void run() {
                            pb.setDividerLocation(0.38);
                        }
                    });
                }
            });
        }
    });

    pt.setTopComponent(ptt);
    pt.setBottomComponent(ptb);

    ptb.setViewportView(ptba);
    ptb.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

    pb.setTopComponent(pbt);
    pb.setBottomComponent(pbb);

    pbb.setViewportView(pbba);
    pbb.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

    tableColumnTable = new javax.swing.JTable() {
        public void editingStopped(ChangeEvent e) {
            TableCellEditor editor = this.getCellEditor();
            if (editor != null) {
                Object value = editor.getCellEditorValue();
                setTableColumnValue(value);
            }
            // System.out.println(MessageFormat.format("c:{0}-r:{1}",
            // this.getSelectedColumn(), this.getSelectedRow()));
            super.editingStopped(e);
        }
    };
    // ColumnModel?false;
    // table.setAutoCreateColumnsFromModel(false);
    ptt.setViewportView(tableColumnTable);

    /**
     * add by 2016422 ;
     */
    listColumnTable = new javax.swing.JTable() {
        public void editingStopped(ChangeEvent e) {
            TableCellEditor editor = this.getCellEditor();
            if (editor != null) {
                Object value = editor.getCellEditorValue();
                setListColumnValue(value);
            }
            // System.out.println(MessageFormat.format("c:{0}-r:{1}",
            // this.getSelectedColumn(), this.getSelectedRow()));
            super.editingStopped(e);
        }
    };
    listColumnTable.getTableHeader().addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent e) {

        }
    });
    pbt.setViewportView(listColumnTable);

    jLabel1 = new javax.swing.JLabel();
    basePackageName = new javax.swing.JTextField();
    btnGen = new javax.swing.JButton();
    btnListColumnOk = new javax.swing.JButton();
    btnTableColumnOk = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    jcombo_sqlMapMarkUse = new javax.swing.JComboBox<Option<Integer>>();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jLabel10 = new javax.swing.JLabel();
    jLabel11 = new javax.swing.JLabel();
    jLabel12 = new javax.swing.JLabel();
    jLabel13 = new javax.swing.JLabel();
    jLabel14 = new javax.swing.JLabel();
    jLabel15 = new javax.swing.JLabel();
    jLabel16 = new javax.swing.JLabel();
    columnTitle = new javax.swing.JTextField();
    listTitle = new javax.swing.JTextField();
    jcombo_showGsonAnnotation = new javax.swing.JComboBox<Option<Boolean>>();
    jcombo_queryRenderShow = new javax.swing.JComboBox<Option<Boolean>>();
    jcombo_listRenderShow = new javax.swing.JComboBox<Option<Boolean>>();
    jcombo_editRenderShow = new javax.swing.JComboBox<Option<Boolean>>();
    jcombo_queryRenderWay = new javax.swing.JComboBox<Option<Integer>>();
    jcombo_listRenderWay = new javax.swing.JComboBox<Option<Integer>>();
    jcombo_editRenderWay = new javax.swing.JComboBox<Option<Integer>>();
    saveMethodPrefix = new javax.swing.JTextField();
    updateMethodPrefix = new javax.swing.JTextField();
    getMethodPrefix = new javax.swing.JTextField();
    deleteMethodPrefix = new javax.swing.JTextField();
    queryMethodPrefix = new javax.swing.JTextField();
    queryPagingMethodPrefix = new javax.swing.JTextField();

    queryColumnJson = new javax.swing.JTextArea(1, 10);
    javax.swing.JScrollPane cqpc = new javax.swing.JScrollPane(queryColumnJson);
    // customQueryProperty.setAutoscrolls(true);

    editValueGenWayJson = new javax.swing.JTextArea(1, 10);
    javax.swing.JScrollPane cevfw = new javax.swing.JScrollPane(editValueGenWayJson);

    //      editValidateJson = new javax.swing.JTextArea(1, 10);
    //      javax.swing.JScrollPane evj = new javax.swing.JScrollPane(editValidateJson);

    editValidateEasyuiString = new javax.swing.JTextArea(1, 10);
    javax.swing.JScrollPane evj = new javax.swing.JScrollPane(editValidateEasyuiString);

    jLabel1.setText("??");

    btnGen.setText("?");
    btnTableColumnOk.setText("Ok");
    btnListColumnOk.setText("Ok");

    jLabel2.setText("SQL??");

    // sqlMapMarkUse.setModel(null);

    jLabel3.setText("??");

    jLabel4.setText("?");

    jLabel5.setText("??");

    jLabel6.setText("?");

    jLabel7.setText("?");

    jLabel8.setText("?");

    jLabel9.setText("?gosn");

    jLabel10.setText("?");
    jLabel11.setText("?");

    jLabel12.setText("?");
    jLabel13.setText("?");

    jLabel14.setText("?");
    jLabel15.setText("?");

    jLabel16.setText("");

    TableLayout tableLayout_ptba = new TableLayout();
    double border = 2; // 0 1 2 3 4 5 6
    tableLayout_ptba.setColumn(new double[] { border, 50, 50, 80, -1, 50, 70, border });
    tableLayout_ptba.setRow(new double[] { border, 30, 30, 30, 130, 130, 130, border });
    ptba.setLayout(tableLayout_ptba);

    queryRenderShow.addElement(CollectionHelper.option("", Boolean.TRUE));
    queryRenderShow.addElement(CollectionHelper.option("?", Boolean.FALSE));
    jcombo_queryRenderShow.setModel(queryRenderShow);

    listRenderShow.addElement(CollectionHelper.option("", Boolean.TRUE));
    listRenderShow.addElement(CollectionHelper.option("?", Boolean.FALSE));
    jcombo_listRenderShow.setModel(listRenderShow);

    editRenderShow.addElement(CollectionHelper.option("", Boolean.TRUE));
    editRenderShow.addElement(CollectionHelper.option("?", Boolean.FALSE));
    jcombo_editRenderShow.setModel(editRenderShow);

    CollectionHelper.renderWayOption(queryRenderWay, "query");
    jcombo_queryRenderWay.setModel(queryRenderWay);

    CollectionHelper.renderWayOption(listRenderWay, "list");
    jcombo_listRenderWay.setModel(listRenderWay);

    CollectionHelper.renderWayOption(editRenderWay, "edit");
    jcombo_editRenderWay.setModel(editRenderWay);
    jcombo_editRenderWay.addItemListener(new ItemListener() {

        @SuppressWarnings("unchecked")
        @Override
        public void itemStateChanged(ItemEvent e) {
            if (e.getStateChange() == ItemEvent.SELECTED) { //??   
                Option<Integer> o = (Option<Integer>) e.getItem();
                String s = EditValueGenWayHelper.toEditValueShowWayJson(o.getValue());
                editRenderWayJson.setText(s);
            }
        }
    });

    int row = 1;
    ptba.add(new JLabel(""), MessageFormat.format("1,{0},2,{0}", row));
    ptba.add(columnTitle, MessageFormat.format("3,{0},4,{0}", row));
    ptba.add(btnTableColumnOk, MessageFormat.format("6,{0}", row));
    row++;
    ptba.add(jLabel14, MessageFormat.format("1,{0},2,{0}", row));
    ptba.add(jcombo_editRenderShow, MessageFormat.format("3,{0},4,{0}", row));
    ptba.add(btnListColumnOk, MessageFormat.format("6,{0}", row));
    row++;
    ptba.add(jLabel15, MessageFormat.format("1,{0},2,{0}", row));
    ptba.add(jcombo_editRenderWay, MessageFormat.format("3,{0},4,{0}", row));
    row++;
    ptba.add(new JLabel("?"), MessageFormat.format("1,{0},2,{0}", row));
    editRenderWayJson = new javax.swing.JTextArea(1, 10);
    editRenderWayJson.setLineWrap(true);
    editRenderWayJson.setWrapStyleWord(true);
    javax.swing.JScrollPane erwjj = new javax.swing.JScrollPane(editRenderWayJson);
    ptba.add(erwjj, MessageFormat.format("3,{0},6,{0}", row));
    row++;
    JLabel j1 = new JLabel("?");
    j1.setToolTipText("<html>\n" + "<table border=\"1\">\n" + "<tr>\n" + "   <th>?</th>\n"
            + "   <th>??</th>\n" + "</tr>\n" + "<tr>\n" + "   <td>new</td>\n"
            + "   <td>?,\"input\":, \"time\":??, \"nothing\":??</td>\n"
            + "</tr>\n" + "</table>\n" + "</html>");

    ptba.add(j1, MessageFormat.format("1,{0},2,{0}", row));
    ptba.add(cevfw, MessageFormat.format("3,{0},6,{0}", row));
    row++;
    ptba.add(new JLabel("JS?"), MessageFormat.format("1,{0},2,{0}", row));
    ptba.add(evj, MessageFormat.format("3,{0},6,{0}", row));

    // showGsonAnnotation.setModel(null);

    btnGen.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnGenActionPerformed(evt);
        }
    });

    btnListColumnOk.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnListColumnOkActionPerformed(evt);
        }
    });

    btnTableColumnOk.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnTableColumnOkActionPerformed(evt);
        }
    });

    TableLayout tableLayout_pbba = new TableLayout();
    // double border = 2; //0 1 2 3 4 5 6
    tableLayout_pbba.setColumn(new double[] { border, 50, 50, 80, -1, 50, 70, border });
    tableLayout_pbba.setRow(new double[] { border, 30, 30, 30, 30, 30, 130, border });
    pbba.setLayout(tableLayout_pbba);

    row = 1;
    pbba.add(jLabel16, MessageFormat.format("1,{0},2,{0}", row));
    pbba.add(listTitle, MessageFormat.format("3,{0},4,{0}", row));
    pbba.add(btnListColumnOk, MessageFormat.format("6,{0}", row));

    row++;
    pbba.add(jLabel12, MessageFormat.format("1,{0},2,{0}", row));
    pbba.add(jcombo_listRenderShow, MessageFormat.format("3,{0},4,{0}", row));
    row++;
    pbba.add(jLabel13, MessageFormat.format("1,{0},2,{0}", row));
    pbba.add(jcombo_listRenderWay, MessageFormat.format("3,{0},4,{0}", row));

    row++;
    pbba.add(jLabel10, MessageFormat.format("1,{0},2,{0}", row, row));
    pbba.add(jcombo_queryRenderShow, MessageFormat.format("3,{0},4,{0}", row));
    row++;
    pbba.add(jLabel11, MessageFormat.format("1,{0},2,{0}", row));
    pbba.add(jcombo_queryRenderWay, MessageFormat.format("3,{0},4,{0}", row));
    row++;
    pbba.add(new JLabel(""), MessageFormat.format("1,{0},2,{0}", row));
    pbba.add(cqpc, MessageFormat.format("3,{0},6,{0}", row));

    // TableLayout tableLayout_pba = new TableLayout();
    //// double border = 2; //0 1 2 3 4 5 6
    // tableLayout_pba.setColumn(new double[]{border, 50, 50, 80, -1, 50,
    // 70, border});
    // tableLayout_pba.setRow(new double[]{border,30, 30, 30, 30, 30, 30,
    // 30, 30, 30, 30, border});
    // pba.setLayout(tableLayout_pba);
    //
    // pba.add(jLabel1, "1,1,2,1");
    // pba.add(basePackageName, "3,1,5,1");
    // pba.add(btnGen, "6,1");
    //
    // pba.add(jLabel2, "1,2,2,2");
    // pba.add(jcombo_sqlMapMarkUse, "3,2,4,2");
    //
    // pba.add(jLabel9, "1,3,2,3");
    // pba.add(jcombo_showGsonAnnotation, "3,3,4,3");
    //
    // pba.add(jLabel3, "1,4,2,4");
    // pba.add(saveMethodPrefix, "3,4,4,4");
    //
    // pba.add(jLabel4, "1,5,2,5");
    // pba.add(updateMethodPrefix, "3,5,4,5");
    //
    // pba.add(jLabel5, "1,6,2,6");
    // pba.add(getMethodPrefix, "3,6,4,6");
    //
    // pba.add(jLabel6, "1,7,2,7");
    // pba.add(deleteMethodPrefix, "3,7,4,7");
    //
    // pba.add(jLabel7, "1,8,2,8");
    // pba.add(queryMethodPrefix, "3,8,4,8");
    //
    // pba.add(jLabel8, "1,9,2,9");
    // pba.add(queryPagingMethodPrefix, "3,9,4,9");

    sqlMapMarkUse.addElement(CollectionHelper.option("??", 1));
    sqlMapMarkUse.addElement(CollectionHelper.option("??", 2));
    jcombo_sqlMapMarkUse.setModel(sqlMapMarkUse);

    showGsonAnnotation.addElement(CollectionHelper.option("", Boolean.TRUE));
    showGsonAnnotation.addElement(CollectionHelper.option("?", Boolean.FALSE));
    jcombo_showGsonAnnotation.setModel(showGsonAnnotation);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(p, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE,
                    470, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
            p, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 446,
            Short.MAX_VALUE));

    this.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            afterShow(evt);
        }
    });

    pack();
}

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

/**
 * This method initializes jScrollPane1   
 *    //from   w  w w  . j a v a 2  s  . c o  m
 * @return javax.swing.JScrollPane   
 */
private JScrollPane getJScrollPaneComment() {
    if (jScrollPaneComment == null) {
        jScrollPaneComment = new JScrollPane();
        jScrollPaneComment.setBorder(BorderFactory.createTitledBorder(null, "File Comment",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jScrollPaneComment.setViewportView(getJTextAreaComment());
    }
    return jScrollPaneComment;
}

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

private JPanel getJPanelForDocumentExportInfo() {
    if (jPanelForDocumentExportInfo == null) {
        GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
        gridBagConstraints5.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraints5.gridx = -1;/*from  www .j a va  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, 0, 10, 5); //  margin // top, left, bottom, right
        jPanelForDocumentExportInfo = new JPanel();
        jPanelForDocumentExportInfo.setLayout(new GridBagLayout());
        jPanelForDocumentExportInfo.setBorder(BorderFactory.createTitledBorder(null, "Report Export Location",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jPanelForDocumentExportInfo.add(getJPanelDocumentExportInfo(), gridBagConstraints5);
    }
    return jPanelForDocumentExportInfo;
}

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

/**
 * This method initializes jPanelPjtList   
 *    //  www .j  a  v  a2s.co  m
 * @return javax.swing.JPanel   
 */
private JPanel getJPanelPjtList() {
    if (jPanelPjtList == null) {
        GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
        gridBagConstraints3.gridy = 1;
        gridBagConstraints3.fill = GridBagConstraints.BOTH;
        gridBagConstraints3.gridwidth = 2;
        gridBagConstraints3.weighty = 0.1;
        gridBagConstraints3.insets = new Insets(0, 10, 10, 10);
        gridBagConstraints3.ipadx = 0;
        gridBagConstraints3.weightx = 0.1;
        gridBagConstraints3.gridx = 0;
        GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
        gridBagConstraints2.insets = new Insets(10, 10, 10, 0);
        GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
        gridBagConstraints1.fill = GridBagConstraints.HORIZONTAL;
        gridBagConstraints1.gridy = 0;
        gridBagConstraints1.weightx = 0.1;
        gridBagConstraints1.insets = new Insets(10, 10, 10, 10);
        gridBagConstraints1.ipadx = 0;
        gridBagConstraints1.ipady = 0;
        gridBagConstraints1.gridx = 1;
        jLabelFilter = new JLabel();
        jLabelFilter.setText("Filter :");
        jPanelPjtList = new JPanel();
        jPanelPjtList.setLayout(new GridBagLayout());
        jPanelPjtList.setBorder(BorderFactory.createTitledBorder(null, "Project List",
                TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
        jPanelPjtList.add(jLabelFilter, gridBagConstraints2);
        jPanelPjtList.add(getJTextFieldFilter(), gridBagConstraints1);
        jPanelPjtList.add(getJScrollPanePjtList(), gridBagConstraints3);
    }
    return jPanelPjtList;
}

From source file:com.sec.ose.osi.ui.frm.main.identification.stringmatch.JPanStringMatchMain.java

/**
 * This method initializes this//from ww  w.  ja  va2 s . com
 * 
 * @return void
 */
private void initialize() {
    GridBagConstraints gridBagConstraints12 = new GridBagConstraints();
    gridBagConstraints12.gridx = 0;
    gridBagConstraints12.anchor = GridBagConstraints.WEST;
    gridBagConstraints12.fill = GridBagConstraints.HORIZONTAL;
    gridBagConstraints12.gridwidth = 2;
    gridBagConstraints12.weightx = 0.0;
    gridBagConstraints12.gridy = 1;
    GridBagConstraints gridBagConstraints23 = new GridBagConstraints();
    gridBagConstraints23.fill = GridBagConstraints.BOTH;
    gridBagConstraints23.weighty = 1.0;
    gridBagConstraints23.gridwidth = 1;
    gridBagConstraints23.weightx = 1.0;
    jLabelComponentForOpt1 = new JLabel();
    jLabelComponentForOpt1.setText("(Option) Component :");
    jLabelComponentForOpt1.setFont(new Font("Dialog", Font.PLAIN, 12));
    jLabelLicenseForOpt1 = new JLabel();
    jLabelLicenseForOpt1.setText("License :");
    jLabelLicenseForOpt1.setFont(new Font("Dialog", Font.PLAIN, 12));
    jLabelRepresentativeLicenseForOpt2 = new JLabel();
    jLabelRepresentativeLicenseForOpt2.setText("Representative License :");
    jLabelRepresentativeLicenseForOpt2.setFont(new Font("Dialog", Font.PLAIN, 12));
    jLabelNoticeForOpt1 = new JLabel();
    jLabelNoticeForOpt1.setText(
            "Note) If you don't choose a component, it will be identified by \"DECLARED_STRING_MATCH_LICENSE_\" + \"License Name\".");
    jLabelNoticeForOpt1.setFont(new Font("Dialog", Font.PLAIN, 12));
    this.setSize(570, 480);
    this.setLayout(new GridBagLayout());
    this.setBorder(BorderFactory.createTitledBorder(null, "Identification Information",
            TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
            new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));

    // matched code view & license match info table
    this.add(getJSplitPaneCodeAndTable(), gridBagConstraints23);

    // option
    this.add(getJScrollPanelOptions(), gridBagConstraints12);
}