List of usage examples for javax.swing BorderFactory createTitledBorder
public static TitledBorder createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
From source file:com.sec.ose.osi.ui.frm.main.identification.autoidentify.JPanImportSPDX.java
private JPanel getJPanelForOption() { if (jPanelForOption == null) { GridBagConstraints gridBagConstraints = new GridBagConstraints(); gridBagConstraints.fill = GridBagConstraints.HORIZONTAL; gridBagConstraints.gridx = -1;// w w w. j a va2s. c om gridBagConstraints.gridy = -1; gridBagConstraints.gridwidth = 1; gridBagConstraints.anchor = GridBagConstraints.CENTER; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.0; gridBagConstraints.insets = new Insets(0, 0, 0, 15); jPanelForOption = new JPanel(); jPanelForOption.setLayout(new GridBagLayout()); jPanelForOption.setBorder(BorderFactory.createTitledBorder(null, "Identify Option", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51))); jPanelForOption.add(getJPanelOption(), gridBagConstraints); } return jPanelForOption; }
From source file:com.sec.ose.osi.ui.frm.main.manage.dialog.JDlgProjectCreate.java
/** * This method initializes jPanelPjtName * //from www .j av a 2s .c om * @return javax.swing.JPanel */ private JPanel getJPanelPjtName() { if (jPanelPjtName == null) { GridBagConstraints gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.insets = new Insets(10, 10, 0, 0); gridBagConstraints.ipadx = 4; gridBagConstraints.gridy = 0; jLabelNewProjectName = new JLabel(); jLabelNewProjectName.setText("New Project Name :"); GridBagConstraints gridBagConstraints7 = new GridBagConstraints(); gridBagConstraints7.anchor = GridBagConstraints.CENTER; gridBagConstraints7.insets = new Insets(10, 10, 10, 0); gridBagConstraints7.gridwidth = 1; gridBagConstraints7.gridx = 1; gridBagConstraints7.gridy = 1; gridBagConstraints7.weightx = 0.1; gridBagConstraints7.fill = GridBagConstraints.HORIZONTAL; GridBagConstraints gridBagConstraints6 = new GridBagConstraints(); gridBagConstraints6.anchor = GridBagConstraints.EAST; gridBagConstraints6.gridx = 0; gridBagConstraints6.gridy = 1; gridBagConstraints6.ipadx = 0; gridBagConstraints6.insets = new Insets(10, 10, 10, 0); GridBagConstraints gridBagConstraints2 = new GridBagConstraints(); gridBagConstraints2.gridx = 2; gridBagConstraints2.insets = new Insets(10, 10, 0, 10); gridBagConstraints2.fill = GridBagConstraints.NONE; gridBagConstraints2.gridy = 0; GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); gridBagConstraints1.fill = GridBagConstraints.BOTH; gridBagConstraints1.gridy = 0; gridBagConstraints1.weightx = 0.1; gridBagConstraints1.gridwidth = 1; gridBagConstraints1.insets = new Insets(10, 10, 0, 0); gridBagConstraints1.gridx = 1; jPanelPjtName = new JPanel(); jPanelPjtName.setLayout(new GridBagLayout()); jPanelPjtName.setPreferredSize(new Dimension(500, 200)); jPanelPjtName.setBorder(BorderFactory.createTitledBorder(null, "Project Name", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51))); jPanelPjtName.add(getJTextFieldNewProjectName(), gridBagConstraints1); jPanelPjtName.add(getJButtonCheck(), gridBagConstraints2); jPanelPjtName.add(getJCheckBoxClonedFrom(), gridBagConstraints6); jPanelPjtName.add(getJComboBoxClonedFrom(), gridBagConstraints7); jPanelPjtName.add(jLabelNewProjectName, gridBagConstraints); } return jPanelPjtName; }
From source file:desmoj.extensions.visualization2d.engine.modelGrafic.StatisticGrafic.java
/** * Build a StatisticGrafic Instance//from w w w . ja v a 2 s . c o m * @param statistic The associated statistic instance * @param viewId Id of view * @param pointExtern Middle point * @param typeAnimation Default animation type. This can changed by popup menu. * For animation types look at StatisticGrafic.ANIMATION_... * @param isIntValue In typeAnimation == StatisticGrafic.ANIMATION_LastValue * value is shown as integer. * @param deltaSize The default size can be incremented/decremented * by deltaSize. Null means no change. * @param infopane Grafic is used for infopane * @throws ModelException */ public StatisticGrafic(Statistic statistic, String viewId, Point pointExtern, int typeAnimation, boolean isIntValue, Dimension deltaSize, boolean infopane) throws ModelException { this.statistic = statistic; if (viewId == null) viewId = "main"; this.viewId = viewId; //System.out.println("StatisticGrafic-Konstructor id: "+this.statistic.getId()); this.pointExtern = pointExtern; this.transform(); this.setCode(); this.setBorder(BorderFactory.createTitledBorder(Grafic.Border_Default, this.code, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, Grafic.FONT_DEFAULT, Grafic.COLOR_BORDER)); this.deltaSize = deltaSize; if (this.deltaSize == null) this.deltaSize = new Dimension(0, 0); this.typeAnimation = typeAnimation; this.isIntValue = isIntValue; JPanel content = new JPanel(); switch (this.typeAnimation) { case StatisticGrafic.ANIMATION_LastValue: content = this.buildLastValuePanel(); break; case StatisticGrafic.ANIMATION_TimeValueDiagram: content = this.buildTimeValueDiagramPanel(); break; case StatisticGrafic.ANIMATION_Histogram: if (statistic.hasHistogramSupport()) content = this.buildHistogramPanel(); else { this.typeAnimation = StatisticGrafic.ANIMATION_TimeValueDiagram; content = this.buildTimeValueDiagramPanel(); } break; } this.setLayout(new GridLayout(1, 1)); this.add(content); this.setOpaque(true); Dimension d = new Dimension(content.getPreferredSize().width + this.deltaSize.width, content.getPreferredSize().height + this.deltaSize.height); this.setBounds(this.pointIntern.x - d.width / 2, this.pointIntern.y - d.height / 2, d.width, d.height); this.update(); // Listener hinzufuegen if (this.statistic.getModel().getCoordinatenListener() != null) { this.addMouseMotionListener(this.statistic.getModel().getCoordinatenListener()); this.addMouseListener(this.statistic.getModel().getCoordinatenListener()); if (!infopane && this.typeAnimation != StatisticGrafic.ANIMATION_LastValue) { content.addMouseMotionListener(this.statistic.getModel().getCoordinatenListener()); content.addMouseListener(this.statistic.getModel().getCoordinatenListener()); } } this.addMouseListener(this); }
From source file:com.sec.ose.osi.ui.frm.main.manage.dialog.JDlgProjectCreate.java
/** * This method initializes jPanelSourceLocation * /* w w w . j a v a2 s . co m*/ * @return javax.swing.JPanel */ private JPanel getJPanelSourceLocation() { if (jPanelSourceLocation == null) { GridBagConstraints gridBagConstraints11 = new GridBagConstraints(); gridBagConstraints11.gridx = 1; gridBagConstraints11.insets = new Insets(10, 10, 10, 10); gridBagConstraints11.gridy = 0; GridBagConstraints gridBagConstraints10 = new GridBagConstraints(); gridBagConstraints10.fill = GridBagConstraints.BOTH; gridBagConstraints10.gridy = 0; gridBagConstraints10.weightx = 1.0; gridBagConstraints10.insets = new Insets(10, 10, 10, 0); gridBagConstraints10.anchor = GridBagConstraints.CENTER; gridBagConstraints10.gridx = 0; jPanelSourceLocation = new JPanel(); jPanelSourceLocation.setLayout(new GridBagLayout()); jPanelSourceLocation.setBorder(BorderFactory.createTitledBorder(null, "Source Location", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51))); jPanelSourceLocation.setPreferredSize(new Dimension(500, 200)); jPanelSourceLocation.add(getJTextFieldSourceLocation(), gridBagConstraints10); jPanelSourceLocation.add(getJButtonBrowse(), gridBagConstraints11); } return jPanelSourceLocation; }
From source file:net.sf.profiler4j.console.ProjectDialog.java
/** * This method initializes defaultOptionsPanel * //from w ww. j ava 2 s.com * @return javax.swing.JPanel */ private JPanel getDefaultOptionsPanel() { if (defaultOptionsPanel == null) { jLabel = new JLabel(); jLabel.setText("Minimum method visibility"); jLabel.setBounds(new java.awt.Rectangle(16, 32, 129, 22)); defaultOptionsPanel = new JPanel(); defaultOptionsPanel.setLayout(null); defaultOptionsPanel.setBorder(BorderFactory.createTitledBorder(null, "Rule Options (applies to all ACCEPT rules)", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Tahoma", Font.PLAIN, 11), new Color(0, 70, 213))); defaultOptionsPanel.setBounds(new java.awt.Rectangle(408, 56, 289, 103)); defaultOptionsPanel.add(jLabel, null); defaultOptionsPanel.add(getAccessComboBox(), null); defaultOptionsPanel.add(getBeanpropsCheckBox(), null); } return defaultOptionsPanel; }
From source file:com.sec.ose.osi.ui.frm.main.report.JPanExportReport.java
private JPanel getJPanelForReportTypeInfo() { if (jPanelForReportTypeInfo == null) { GridBagConstraints gridBagConstraints5 = new GridBagConstraints(); gridBagConstraints5.fill = GridBagConstraints.HORIZONTAL; gridBagConstraints5.gridx = -1;/*ww w. j a v a 2 s . co m*/ gridBagConstraints5.gridy = -1; gridBagConstraints5.gridwidth = 1; gridBagConstraints5.anchor = GridBagConstraints.CENTER; gridBagConstraints5.weightx = 1.0; gridBagConstraints5.weighty = 0.0; gridBagConstraints5.insets = new Insets(0, 10, 5, 150); // margin // top, left, bottom, right jPanelForReportTypeInfo = new JPanel(); jPanelForReportTypeInfo.setLayout(new GridBagLayout()); jPanelForReportTypeInfo.setBorder(BorderFactory.createTitledBorder(null, "Report Type", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51))); jPanelForReportTypeInfo.add(getJPanelReportTypeInfo(), gridBagConstraints5); } return jPanelForReportTypeInfo; }
From source file:com.sec.ose.osi.ui.frm.main.identification.codematch.JPanCodeMatchMain.java
/** * This method initializes this//from www . j av a2s. c o m * * @return void */ private void initialize() { GridBagConstraints gridBagConstraints15 = new GridBagConstraints(); gridBagConstraints15.gridx = 1; gridBagConstraints15.fill = GridBagConstraints.HORIZONTAL; gridBagConstraints15.gridy = 0; GridBagConstraints gridBagConstraints = new GridBagConstraints(); gridBagConstraints.fill = GridBagConstraints.BOTH; gridBagConstraints.gridy = 7; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.gridx = 1; 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)); 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))); this.add(getJSplitPane(), gridBagConstraints); this.add(getJScrollLabel(), gridBagConstraints15); getJPanMatchedSourceViewLeft().addScrollAdjustmentObserver(getJPanMatchedSourceViewRight()); getJPanMatchedSourceViewRight().addScrollAdjustmentObserver(getJPanMatchedSourceViewLeft()); }
From source file:org.biojava.bio.view.MotifAnalyzer.java
private JPanel getInputTab() { inputTab = new JPanel(new GridLayout(1, 1)); ////////////////// {//from ww w.j a v a 2 s . c o m JPanel generalPar = new JPanel(); inputTab.add(generalPar); GroupLayout inputTabLayout = new GroupLayout((JComponent) generalPar); generalPar.setLayout(inputTabLayout); generalPar.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black), "General Parameters", 0, 0, new Font(Font.DIALOG, Font.BOLD, 16), Color.black)); generalPar.setPreferredSize(new java.awt.Dimension(787, 291)); inputTabLayout.setHorizontalGroup(inputTabLayout.createSequentialGroup().addContainerGap(12, 12) .addGroup(inputTabLayout.createParallelGroup() .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getCheckReverse(), GroupLayout.PREFERRED_SIZE, 198, GroupLayout.PREFERRED_SIZE) .addGap(250)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getMultipleDataSets(), GroupLayout.PREFERRED_SIZE, 193, GroupLayout.PREFERRED_SIZE) .addGap(255)) .addGroup(inputTabLayout.createSequentialGroup() .addGroup(inputTabLayout.createParallelGroup() .addComponent(getJLabel1(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 187, GroupLayout.PREFERRED_SIZE) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getJLabel8(), GroupLayout.PREFERRED_SIZE, 113, GroupLayout.PREFERRED_SIZE) .addGap(74)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getJLabel7(), GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE) .addGap(107)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getJLabel2(), GroupLayout.PREFERRED_SIZE, 128, GroupLayout.PREFERRED_SIZE) .addGap(59)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getJLabel3(), GroupLayout.PREFERRED_SIZE, 148, GroupLayout.PREFERRED_SIZE) .addGap(39)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getJLabel4(), GroupLayout.PREFERRED_SIZE, 137, GroupLayout.PREFERRED_SIZE) .addGap(50)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getJLabel6(), GroupLayout.PREFERRED_SIZE, 126, GroupLayout.PREFERRED_SIZE) .addGap(61)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getJLabel5(), GroupLayout.PREFERRED_SIZE, 108, GroupLayout.PREFERRED_SIZE) .addGap(79)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getJLabel9(), GroupLayout.PREFERRED_SIZE, 155, GroupLayout.PREFERRED_SIZE) .addGap(32))) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(inputTabLayout.createParallelGroup().addGroup( GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getMinPoints(), GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE) .addGap(134)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getClusteringEpsilon(), GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE) .addGap(134)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout .createSequentialGroup() .addComponent(getNumOfMotifs(), GroupLayout.PREFERRED_SIZE, 69, GroupLayout.PREFERRED_SIZE) .addGap(187)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout .createSequentialGroup() .addComponent(getNumOfTrials(), GroupLayout.PREFERRED_SIZE, 69, GroupLayout.PREFERRED_SIZE) .addGap(187)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout .createSequentialGroup() .addComponent(getMotifWidth(), GroupLayout.PREFERRED_SIZE, 69, GroupLayout.PREFERRED_SIZE) .addGap(187)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout.createSequentialGroup() .addComponent(getDatasetTypeComboBox(), GroupLayout.PREFERRED_SIZE, 145, GroupLayout.PREFERRED_SIZE) .addGap(111)) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout .createSequentialGroup() .addComponent(getDatasetComboBox(), GroupLayout.PREFERRED_SIZE, 145, GroupLayout.PREFERRED_SIZE) .addGap(111)) .addComponent(getSpeciesType(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 256, GroupLayout.PREFERRED_SIZE) .addGroup(GroupLayout.Alignment.LEADING, inputTabLayout .createSequentialGroup() .addComponent(getNumOfClusters(), GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE) .addGap(134))))) .addContainerGap(317, 317)); inputTabLayout.setVerticalGroup(inputTabLayout.createSequentialGroup().addContainerGap() .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getNumOfMotifs(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel1(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getSpeciesType(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel2(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 17, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getNumOfTrials(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel3(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getMotifWidth(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel4(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 16, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getDatasetTypeComboBox(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel6(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getDatasetComboBox(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel5(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)) .addGap(20) .addComponent(getMultipleDataSets(), GroupLayout.PREFERRED_SIZE, 21, GroupLayout.PREFERRED_SIZE) .addGap(19) .addComponent(getCheckReverse(), GroupLayout.PREFERRED_SIZE, 21, GroupLayout.PREFERRED_SIZE) .addGap(16) .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getClusteringEpsilon(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel7(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getMinPoints(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel8(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(inputTabLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(getNumOfClusters(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE) .addComponent(getJLabel9(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)) .addContainerGap(65, 65)); } return inputTab; }
From source file:com.sec.ose.osi.ui.frm.main.identification.stringmatch.JPanStringMatchMain.java
/** * This method initializes jScrollPane1 * // ww w . j a v a 2 s. c o m * @return javax.swing.JScrollPane */ private JScrollPane getJScrollPaneSourceCode() { if (jScrollPaneSourceCode == null) { jScrollPaneSourceCode = new JScrollPane(); jScrollPaneSourceCode.setBorder(BorderFactory.createTitledBorder(null, "Source Code", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51))); jScrollPaneSourceCode.getVerticalScrollBar().setUnitIncrement(ConstantValue.CODE_SCROLL_SIZE); JPanel SourceCodePanel = new JPanel(); SourceCodePanel.setLayout(new BorderLayout()); SourceCodePanel.add(getJTextPaneSourceCodeNum(), BorderLayout.WEST); SourceCodePanel.add(getJTextPaneSourceCode(), BorderLayout.CENTER); jScrollPaneSourceCode.setViewportView(SourceCodePanel); } return jScrollPaneSourceCode; }
From source file:com.sec.ose.osi.ui.frm.login.JPanLogin.java
/** * This method initializes jPanel1 /*w w w. j ava 2s. c o m*/ * * @return javax.swing.JPanel */ private JPanel getJPanelForUserInfo() { if (jPanelForUserInfo == null) { GridBagConstraints gridBagConstraints5 = new GridBagConstraints(); gridBagConstraints5.fill = GridBagConstraints.HORIZONTAL; gridBagConstraints5.gridx = -1; gridBagConstraints5.gridy = -1; gridBagConstraints5.gridwidth = 1; gridBagConstraints5.anchor = GridBagConstraints.CENTER; gridBagConstraints5.weightx = 1.0; gridBagConstraints5.weighty = 0.0; //gridBagConstraints5.insets = new Insets(10, 10, 0, 20); jPanelForUserInfo = new JPanel(); jPanelForUserInfo.setLayout(new GridBagLayout()); jPanelForUserInfo.setBorder(BorderFactory.createTitledBorder(null, "User Info", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51))); jPanelForUserInfo.add(getJPanelUserInfo(), gridBagConstraints5); } return jPanelForUserInfo; }