List of usage examples for javax.swing BorderFactory createTitledBorder
public static TitledBorder createTitledBorder(Border border)
From source file:instance.gui.InstanceGUI.java
private void createSystemInfoPanel() { systemInfoPanel = new JPanel(); systemInfoPanel.setBorder(BorderFactory.createTitledBorder("System Info")); systemInfoPanel.setLayout(new BoxLayout(systemInfoPanel, BoxLayout.Y_AXIS)); cpuInfoLbl = new JLabel("CPU: "); cpuInfoLbl.setBorder(BorderFactory.createEtchedBorder()); memoryLbl = new JLabel("Memory: "); memoryLbl.setBorder(BorderFactory.createEtchedBorder()); bandwidthInfoLbl = new JLabel("Bandwidth: "); bandwidthInfoLbl.setBorder(BorderFactory.createEtchedBorder()); costLabel = new JLabel("Cost: $ 0.0"); costLabel.setBorder(BorderFactory.createEtchedBorder()); simultaneousLabel = new JLabel("Simultaneous Downloads: "); simultaneousLabel.setBorder(BorderFactory.createEtchedBorder()); systemInfoPanel.add(cpuInfoLbl);//from w w w . j a v a 2 s. c o m systemInfoPanel.add(memoryLbl); systemInfoPanel.add(bandwidthInfoLbl); systemInfoPanel.add(costLabel); systemInfoPanel.add(simultaneousLabel); infoTab.add(systemInfoPanel); }
From source file:ca.phon.plugins.praat.export.TextGridExportWizard.java
private WizardStep setupRecordsStep() { final WizardStep retVal = new WizardStep(); final DialogHeader header = new DialogHeader("Generate TextGrids", "Select records."); // add record filter panel recordFilterPanel = new RecordFilterPanel(getProject(), session); recordFilterPanel.setBorder(BorderFactory.createTitledBorder("Select records")); final JScrollPane scroller = new JScrollPane(recordFilterPanel); retVal.setLayout(new BorderLayout()); retVal.add(scroller, BorderLayout.CENTER); retVal.add(header, BorderLayout.NORTH); return retVal; }
From source file:uk.co.petertribble.solview.explorer.CpuInfoPanel.java
private void addAggregateAccessory(KstatAggregate ksa) { kap = new AggregateCpuPanel(ksa, 1, jkstat); JPanel jp = new JPanel(new BorderLayout()); jp.add(kap);/*from w w w . j a v a2 s .co m*/ jp.setBorder(BorderFactory.createTitledBorder("Aggregate CPU activity")); jvp.add(jp); kbc = new KstatAggregateAreaChart(jkstat, ksa, mystats, true); kbc.setColors(mycolors); jvp.add(new ChartPanel(kbc.getChart())); }
From source file:BoxAlignmentDemo.java
protected JPanel createYAlignmentExample(boolean doItRight) { JPanel pane = new JPanel(); String title;// w ww.j a v a 2s .c o m JComponent component1 = new JPanel(); Dimension size = new Dimension(100, 50); component1.setMaximumSize(size); component1.setPreferredSize(size); component1.setMinimumSize(size); TitledBorder border = new TitledBorder(new LineBorder(Color.black), "A JPanel", TitledBorder.CENTER, TitledBorder.BELOW_TOP); border.setTitleColor(Color.black); component1.setBorder(border); JComponent component2 = new JPanel(); size = new Dimension(100, 50); component2.setMaximumSize(size); component2.setPreferredSize(size); component2.setMinimumSize(size); border = new TitledBorder(new LineBorder(Color.black), "A JPanel", TitledBorder.CENTER, TitledBorder.BELOW_TOP); border.setTitleColor(Color.black); component2.setBorder(border); if (doItRight) { title = "Matched"; } else { component1.setAlignmentY(TOP_ALIGNMENT); title = "Mismatched"; } pane.setBorder(BorderFactory.createTitledBorder(title)); pane.setLayout(new BoxLayout(pane, BoxLayout.X_AXIS)); pane.add(component1); pane.add(component2); return pane; }
From source file:com.intel.stl.ui.monitor.view.PSPortsDetailsPanel.java
/** * Description:/*from w ww . ja va 2 s . c o m*/ * * @param name */ protected void initComponent() { setLayout(new GridBagLayout()); setOpaque(false); setBorder(BorderFactory.createTitledBorder((Border) null)); GridBagConstraints gc = new GridBagConstraints(); gc.fill = GridBagConstraints.BOTH; gc.weightx = 1; gc.gridwidth = GridBagConstraints.REMAINDER; JPanel titlePanel = createTitlePanel(); add(titlePanel, gc); gc.gridwidth = 1; JPanel deviceTypePanel = createDeviceTypePanel(); add(deviceTypePanel, gc); gc.gridwidth = GridBagConstraints.REMAINDER; JPanel flowTypePanel = createFlowTypePanel(); add(flowTypePanel, gc); gc.weighty = 1; gc.fill = GridBagConstraints.BOTH; add(Box.createGlue(), gc); }
From source file:ConfigFiles.java
public ConfigFiles(Dimension screensize) { // initializeFileBrowser(); paths = new JPanel(); paths.setBackground(Color.WHITE); //paths.setBorder(BorderFactory.createTitledBorder("Paths")); paths.setLayout(null);//www . j av a 2s. c o m paths.setPreferredSize(new Dimension(930, 1144)); paths.setSize(new Dimension(930, 1144)); paths.setMinimumSize(new Dimension(930, 1144)); paths.setMaximumSize(new Dimension(930, 1144)); //paths.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)); setLayout(null); ttcpath = new JTextField(); addPanel("TestCase Source Path", "Master directory with the test cases that can" + " be run by the framework", ttcpath, RunnerRepository.TESTSUITEPATH, 10, true, null); tMasterXML = new JTextField(); tUsers = new JTextField(); addPanel("Projects Path", "Location of projects XML files", tUsers, RunnerRepository.REMOTEUSERSDIRECTORY, 83, true, null); tSuites = new JTextField(); addPanel("Predefined Suites Path", "Location of predefined suites", tSuites, RunnerRepository.PREDEFINEDSUITES, 156, true, null); testconfigpath = new JTextField(); addPanel("Test Configuration Path", "Test Configuration path", testconfigpath, RunnerRepository.TESTCONFIGPATH, 303, true, null); tepid = new JTextField(); addPanel("EP name File", "Location of the file that contains" + " the Ep name list", tepid, RunnerRepository.REMOTEEPIDDIR, 595, true, null); tlog = new JTextField(); addPanel("Logs Path", "Location of the directory that stores the most recent log files." + " The files are re-used each Run.", tlog, RunnerRepository.LOGSPATH, 667, true, null); tsecondarylog = new JTextField(); JPanel p = addPanel("Secondary Logs Path", "Location of the directory that archives copies of the most recent log files, with" + " original file names appended with <.epoch time>", tsecondarylog, RunnerRepository.SECONDARYLOGSPATH, 930, true, null); logsenabled.setSelected(Boolean.parseBoolean(RunnerRepository.PATHENABLED)); logsenabled.setBackground(Color.WHITE); p.add(logsenabled); JPanel p7 = new JPanel(); p7.setBackground(Color.WHITE); TitledBorder border7 = BorderFactory.createTitledBorder("Log Files"); border7.setTitleFont(new Font("Arial", Font.PLAIN, 14)); border7.setBorder(BorderFactory.createLineBorder(new Color(150, 150, 150), 1)); p7.setBorder(border7); p7.setLayout(new BoxLayout(p7, BoxLayout.Y_AXIS)); p7.setBounds(80, 740, 800, 190); paths.add(p7); JTextArea log2 = new JTextArea("All the log files that will be monitored"); log2.setWrapStyleWord(true); log2.setLineWrap(true); log2.setEditable(false); log2.setCursor(null); log2.setOpaque(false); log2.setFocusable(false); log2.setBorder(null); log2.setFont(new Font("Arial", Font.PLAIN, 12)); log2.setBackground(getBackground()); log2.setMaximumSize(new Dimension(170, 25)); log2.setPreferredSize(new Dimension(170, 25)); JPanel p71 = new JPanel(); p71.setBackground(Color.WHITE); p71.setLayout(new GridLayout()); p71.setMaximumSize(new Dimension(700, 13)); p71.setPreferredSize(new Dimension(700, 13)); p71.add(log2); JPanel p72 = new JPanel(); p72.setBackground(Color.WHITE); p72.setLayout(new BoxLayout(p72, BoxLayout.Y_AXIS)); trunning = new JTextField(); p72.add(addField(trunning, "Running: ", 0)); tdebug = new JTextField(); p72.add(addField(tdebug, "Debug: ", 1)); tsummary = new JTextField(); p72.add(addField(tsummary, "Summary: ", 2)); tinfo = new JTextField(); p72.add(addField(tinfo, "Info: ", 3)); tcli = new JTextField(); p72.add(addField(tcli, "Cli: ", 4)); p7.add(p71); p7.add(p72); libpath = new JTextField(); addPanel("Library path", "Secondary user library path", libpath, RunnerRepository.REMOTELIBRARY, 229, true, null); JPanel p8 = new JPanel(); p8.setBackground(Color.WHITE); TitledBorder border8 = BorderFactory.createTitledBorder("File"); border8.setTitleFont(new Font("Arial", Font.PLAIN, 14)); border8.setBorder(BorderFactory.createLineBorder(new Color(150, 150, 150), 1)); p8.setBorder(border8); p8.setLayout(null); p8.setBounds(80, 1076, 800, 50); if (PermissionValidator.canChangeFWM()) { paths.add(p8); } JButton save = new JButton("Save"); save.setToolTipText("Save and automatically load config"); save.setBounds(490, 20, 70, 20); save.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ev) { saveXML(false, "fwmconfig"); loadConfig("fwmconfig.xml"); } }); p8.add(save); // if(!PermissionValidator.canChangeFWM()){ // save.setEnabled(false); // } JButton saveas = new JButton("Save as"); saveas.setBounds(570, 20, 90, 20); saveas.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ev) { String filename = CustomDialog.showInputDialog(JOptionPane.QUESTION_MESSAGE, JOptionPane.OK_CANCEL_OPTION, ConfigFiles.this, "File Name", "Please enter file name"); if (!filename.equals("NULL")) { saveXML(false, filename); } } }); p8.add(saveas); final JButton loadXML = new JButton("Load Config"); loadXML.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ev) { try { String[] configs = RunnerRepository .getRemoteFolderContent(RunnerRepository.USERHOME + "/twister/config/"); JComboBox combo = new JComboBox(configs); int resp = (Integer) CustomDialog.showDialog(combo, JOptionPane.INFORMATION_MESSAGE, JOptionPane.OK_CANCEL_OPTION, ConfigFiles.this, "Config", null); final String config; if (resp == JOptionPane.OK_OPTION) config = combo.getSelectedItem().toString(); else config = null; if (config != null) { new Thread() { public void run() { setEnabledTabs(false); JFrame progress = new JFrame(); progress.setAlwaysOnTop(true); progress.setLocation((int) loadXML.getLocationOnScreen().getX(), (int) loadXML.getLocationOnScreen().getY()); progress.setUndecorated(true); JProgressBar bar = new JProgressBar(); bar.setIndeterminate(true); progress.add(bar); progress.pack(); progress.setVisible(true); loadConfig(config); progress.dispose(); setEnabledTabs(true); } }.start(); } } catch (Exception e) { e.printStackTrace(); } } }); loadXML.setBounds(670, 20, 120, 20); p8.add(loadXML); // if(!PermissionValidator.canChangeFWM()){ // loadXML.setEnabled(false); // } tdbfile = new JTextField(); addPanel("Database XML path", "File location for database configuration", tdbfile, RunnerRepository.REMOTEDATABASECONFIGPATH + RunnerRepository.REMOTEDATABASECONFIGFILE, 375, true, null); temailfile = new JTextField(); // emailpanel = (JPanel) addPanel("Email XML path", "File location for email configuration", temailfile, RunnerRepository.REMOTEEMAILCONFIGPATH + RunnerRepository.REMOTEEMAILCONFIGFILE, 448, true, null) .getParent(); //paths.remove(emailpanel); // emailpanel.setBounds(360,440,350,100); // RunnerRepository.window.mainpanel.p4.getEmails().add(emailpanel); tglobalsfile = new JTextField(); addPanel("Globals XML file", "File location for globals parameters", tglobalsfile, RunnerRepository.GLOBALSREMOTEFILE, 521, true, null); tceport = new JTextField(); addPanel("Central Engine Port", "Central Engine port", tceport, RunnerRepository.getCentralEnginePort(), 1003, false, null); // traPort = new JTextField(); // addPanel("Resource Allocator Port","Resource Allocator Port", // traPort,RunnerRepository.getResourceAllocatorPort(),808,false,null); // thttpPort = new JTextField(); // addPanel("HTTP Server Port","HTTP Server Port",thttpPort, // RunnerRepository.getHTTPServerPort(),740,false,null); //paths.add(loadXML); if (!PermissionValidator.canChangeFWM()) { ttcpath.setEnabled(false); tMasterXML.setEnabled(false); tUsers.setEnabled(false); tepid.setEnabled(false); tSuites.setEnabled(false); tlog.setEnabled(false); trunning.setEnabled(false); tdebug.setEnabled(false); tsummary.setEnabled(false); tinfo.setEnabled(false); tcli.setEnabled(false); tdbfile.setEnabled(false); temailfile.setEnabled(false); tceport.setEnabled(false); libpath.setEnabled(false); tsecondarylog.setEnabled(false); testconfigpath.setEnabled(false); tglobalsfile.setEnabled(false); logsenabled.setEnabled(false); } }
From source file:com.choicemaker.cm.modelmaker.gui.panels.HoldVsAccuracyPlotPanel.java
JPanel getPanel(JTable table, String title) { JScrollPane pane = new JScrollPane(); pane.getViewport().add(table);/*from w ww.ja v a 2 s.c o m*/ pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5, 10, 5, 5), BorderFactory.createLoweredBevelBorder())); JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(BorderFactory.createTitledBorder(title)); panel.add(pane, BorderLayout.CENTER); return panel; }
From source file:com.intel.stl.ui.main.view.StaDetailsPanel.java
/** * Description://from w w w .ja v a2 s .c om * * @param sourceName */ protected void initComponent() { setLayout(new BorderLayout(0, 10)); setOpaque(false); setBorder(BorderFactory.createTitledBorder((Border) null)); JPanel titlePanel = new JPanel(new BorderLayout(5, 1)); titlePanel.setOpaque(false); numberLabel = ComponentFactory.getH1Label(STLConstants.K0039_NOT_AVAILABLE.getValue(), Font.PLAIN); numberLabel.setHorizontalAlignment(JLabel.RIGHT); titlePanel.add(numberLabel, BorderLayout.CENTER); nameLabel = ComponentFactory.getH3Label("", Font.PLAIN); nameLabel.setHorizontalAlignment(JLabel.LEFT); nameLabel.setVerticalAlignment(JLabel.BOTTOM); titlePanel.add(nameLabel, BorderLayout.EAST); add(titlePanel, BorderLayout.NORTH); JPanel mainPanel = new JPanel(); mainPanel.setOpaque(false); mainPanel.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2)); GridBagLayout gridBag = new GridBagLayout(); mainPanel.setLayout(gridBag); GridBagConstraints gc = new GridBagConstraints(); gc.insets = new Insets(2, 2, 2, 2); gc.fill = GridBagConstraints.HORIZONTAL; gc.weightx = 1; gc.gridwidth = 1; gc.weighty = 0; failedChartPanel = new ChartPanel(null); failedChartPanel.setPreferredSize(new Dimension(60, 20)); mainPanel.add(failedChartPanel, gc); gc.fill = GridBagConstraints.BOTH; gc.weightx = 0; failedNumberLabel = ComponentFactory.getH2Label(STLConstants.K0039_NOT_AVAILABLE.getValue(), Font.BOLD); failedNumberLabel.setForeground(UIConstants.INTEL_DARK_RED); failedNumberLabel.setHorizontalAlignment(JLabel.CENTER); mainPanel.add(failedNumberLabel, gc); gc.gridwidth = GridBagConstraints.REMAINDER; failedNameLabel = ComponentFactory.getH5Label(STLConstants.K0020_FAILED.getValue(), Font.PLAIN); failedNameLabel.setVerticalAlignment(JLabel.BOTTOM); mainPanel.add(failedNameLabel, gc); gc.fill = GridBagConstraints.HORIZONTAL; gc.weightx = 1; gc.gridwidth = 1; skippedChartPanel = new ChartPanel(null); skippedChartPanel.setPreferredSize(new Dimension(60, 20)); mainPanel.add(skippedChartPanel, gc); gc.fill = GridBagConstraints.BOTH; gc.weightx = 0; skippedNumberLabel = ComponentFactory.getH2Label(STLConstants.K0039_NOT_AVAILABLE.getValue(), Font.BOLD); skippedNumberLabel.setForeground(UIConstants.INTEL_DARK_ORANGE); skippedNumberLabel.setHorizontalAlignment(JLabel.CENTER); mainPanel.add(skippedNumberLabel, gc); gc.gridwidth = GridBagConstraints.REMAINDER; skippedNameLabel = ComponentFactory.getH5Label(STLConstants.K0021_SKIPPED.getValue(), Font.PLAIN); skippedNameLabel.setVerticalAlignment(JLabel.BOTTOM); mainPanel.add(skippedNameLabel, gc); gc.weighty = 0; gc.fill = GridBagConstraints.NONE; gc.insets = new Insets(8, 2, 2, 2); gc.weightx = 1; gc.gridwidth = 1; gc.gridheight = types.length; typeChartPanel = new ChartPanel(null); typeChartPanel.setPreferredSize(new Dimension(80, 60)); mainPanel.add(typeChartPanel, gc); typeNumberLabels = new JLabel[types.length]; typeNameLabels = new JLabel[types.length]; gc.fill = GridBagConstraints.BOTH; gc.gridheight = 1; gc.insets = new Insets(12, 2, 2, 2); for (int i = 0; i < types.length; i++) { if (i == 1) { gc.insets = new Insets(2, 2, 2, 2); } gc.weightx = 0; gc.gridwidth = 1; typeNumberLabels[i] = createNumberLabel(); mainPanel.add(typeNumberLabels[i], gc); gc.gridwidth = GridBagConstraints.REMAINDER; typeNameLabels[i] = createNameLabel(types[i].getName()); mainPanel.add(typeNameLabels[i], gc); } gc.fill = GridBagConstraints.BOTH; mainPanel.add(Box.createGlue(), gc); add(mainPanel, BorderLayout.CENTER); }
From source file:davmail.ui.SettingsFrame.java
protected JPanel getSettingsPanel() { JPanel settingsPanel = new JPanel(new GridLayout(6, 2)); settingsPanel.setBorder(BorderFactory.createTitledBorder(BundleMessage.format("UI_GATEWAY"))); urlField = new JTextField(Settings.getProperty("davmail.url"), 17); popPortField = new JTextField(Settings.getProperty("davmail.popPort"), 4); popPortCheckBox = new JCheckBox(); popNoSSLCheckBox = new JCheckBox(BundleMessage.format("UI_NO_SSL"), Settings.getBooleanProperty("davmail.ssl.nosecurepop")); popPortCheckBox.setSelected(Settings.getProperty("davmail.popPort") != null && Settings.getProperty("davmail.popPort").length() > 0); popPortField.setEnabled(popPortCheckBox.isSelected()); popNoSSLCheckBox.setEnabled(popPortCheckBox.isSelected() && isSslEnabled()); popPortCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { popPortField.setEnabled(popPortCheckBox.isSelected()); popNoSSLCheckBox.setEnabled(popPortCheckBox.isSelected() && isSslEnabled()); }/*from w w w. j a v a2s .c om*/ }); imapPortField = new JTextField(Settings.getProperty("davmail.imapPort"), 4); imapPortCheckBox = new JCheckBox(); imapNoSSLCheckBox = new JCheckBox(BundleMessage.format("UI_NO_SSL"), Settings.getBooleanProperty("davmail.ssl.nosecureimap")); imapPortCheckBox.setSelected(Settings.getProperty("davmail.imapPort") != null && Settings.getProperty("davmail.imapPort").length() > 0); imapPortField.setEnabled(imapPortCheckBox.isSelected()); imapNoSSLCheckBox.setEnabled(imapPortCheckBox.isSelected() && isSslEnabled()); imapPortCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { imapPortField.setEnabled(imapPortCheckBox.isSelected()); imapNoSSLCheckBox.setEnabled(imapPortCheckBox.isSelected() && isSslEnabled()); } }); smtpPortField = new JTextField(Settings.getProperty("davmail.smtpPort"), 4); smtpPortCheckBox = new JCheckBox(); smtpNoSSLCheckBox = new JCheckBox(BundleMessage.format("UI_NO_SSL"), Settings.getBooleanProperty("davmail.ssl.nosecuresmtp")); smtpPortCheckBox.setSelected(Settings.getProperty("davmail.smtpPort") != null && Settings.getProperty("davmail.smtpPort").length() > 0); smtpPortField.setEnabled(smtpPortCheckBox.isSelected()); smtpNoSSLCheckBox.setEnabled(smtpPortCheckBox.isSelected() && isSslEnabled()); smtpPortCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { smtpPortField.setEnabled(smtpPortCheckBox.isSelected()); smtpNoSSLCheckBox.setEnabled(smtpPortCheckBox.isSelected() && isSslEnabled()); } }); caldavPortField = new JTextField(Settings.getProperty("davmail.caldavPort"), 4); caldavPortCheckBox = new JCheckBox(); caldavNoSSLCheckBox = new JCheckBox(BundleMessage.format("UI_NO_SSL"), Settings.getBooleanProperty("davmail.ssl.nosecurecaldav")); caldavPortCheckBox.setSelected(Settings.getProperty("davmail.caldavPort") != null && Settings.getProperty("davmail.caldavPort").length() > 0); caldavPortField.setEnabled(caldavPortCheckBox.isSelected()); caldavNoSSLCheckBox.setEnabled(caldavPortCheckBox.isSelected() && isSslEnabled()); caldavPortCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { caldavPortField.setEnabled(caldavPortCheckBox.isSelected()); caldavNoSSLCheckBox.setEnabled(caldavPortCheckBox.isSelected() && isSslEnabled()); } }); ldapPortField = new JTextField(Settings.getProperty("davmail.ldapPort"), 4); ldapPortCheckBox = new JCheckBox(); ldapNoSSLCheckBox = new JCheckBox(BundleMessage.format("UI_NO_SSL"), Settings.getBooleanProperty("davmail.ssl.nosecureldap")); ldapPortCheckBox.setSelected(Settings.getProperty("davmail.ldapPort") != null && Settings.getProperty("davmail.ldapPort").length() > 0); ldapPortField.setEnabled(ldapPortCheckBox.isSelected()); ldapNoSSLCheckBox.setEnabled(ldapPortCheckBox.isSelected() && isSslEnabled()); ldapPortCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { ldapPortField.setEnabled(ldapPortCheckBox.isSelected()); ldapNoSSLCheckBox.setEnabled(ldapPortCheckBox.isSelected() && isSslEnabled()); } }); addSettingComponent(settingsPanel, BundleMessage.format("UI_OWA_URL"), urlField, BundleMessage.format("UI_OWA_URL_HELP")); addPortSettingComponent(settingsPanel, BundleMessage.format("UI_POP_PORT"), popPortField, popPortCheckBox, popNoSSLCheckBox, BundleMessage.format("UI_POP_PORT_HELP")); addPortSettingComponent(settingsPanel, BundleMessage.format("UI_IMAP_PORT"), imapPortField, imapPortCheckBox, imapNoSSLCheckBox, BundleMessage.format("UI_IMAP_PORT_HELP")); addPortSettingComponent(settingsPanel, BundleMessage.format("UI_SMTP_PORT"), smtpPortField, smtpPortCheckBox, smtpNoSSLCheckBox, BundleMessage.format("UI_SMTP_PORT_HELP")); addPortSettingComponent(settingsPanel, BundleMessage.format("UI_CALDAV_PORT"), caldavPortField, caldavPortCheckBox, caldavNoSSLCheckBox, BundleMessage.format("UI_CALDAV_PORT_HELP")); addPortSettingComponent(settingsPanel, BundleMessage.format("UI_LDAP_PORT"), ldapPortField, ldapPortCheckBox, ldapNoSSLCheckBox, BundleMessage.format("UI_LDAP_PORT_HELP")); return settingsPanel; }
From source file:brainflow.app.presentation.controls.FileObjectGroupSelector.java
private JideSplitPane createSplitPane() { JPanel treePanel = new JPanel(); treePanel.setLayout(new BorderLayout()); treePanel.setMinimumSize(new Dimension(300, 100)); treePanel.add(new JScrollPane(explorer.getComponent()), BorderLayout.CENTER); splitPane = new JideSplitPane(JideSplitPane.HORIZONTAL_SPLIT); splitPane.setProportionalLayout(true); treePanel.setBorder(BorderFactory.createTitledBorder("File System")); splitPane.add(treePanel, JideBoxLayout.FLEXIBLE); JScrollPane jsp = new JScrollPane(fileList); jsp.setBorder(BorderFactory.createTitledBorder("Filter Selection")); splitPane.add(jsp, JideBoxLayout.VARY); splitPane.setProportions(new double[] { .55 }); return splitPane; }