List of usage examples for com.intellij.openapi.ui TextFieldWithBrowseButton TextFieldWithBrowseButton
public TextFieldWithBrowseButton()
From source file:io.ballerina.plugins.idea.runconfig.ui.BallerinaRemoteSettingsEditor.java
License:Open Source License
private void createUIComponents() { myWorkingDirectoryField = new LabeledComponent<>(); myWorkingDirectoryField.setComponent(new TextFieldWithBrowseButton()); myParamsField = new LabeledComponent<>(); myParamsField.setComponent(new RawCommandLineEditor()); myModulesComboBox = new LabeledComponent<>(); myModulesComboBox.setComponent(new ModulesComboBox()); myHost = new LabeledComponent<>(); myHostField = new EditorTextField(); myHostField.setPreferredWidth(300);//from w w w .j av a2 s . c om myHost.setComponent(myHostField); myPort = new LabeledComponent<>(); myPortField = new EditorTextField(); myPortField.setPreferredWidth(100); myPort.setComponent(myPortField); }
From source file:io.ballerina.plugins.idea.runconfig.ui.BallerinaTestSettingsEditor.java
License:Open Source License
private void createUIComponents() { myFileField = new LabeledComponent<>(); myFileField.setComponent(new TextFieldWithBrowseButton()); myPackageField = new LabeledComponent<>(); myPackageField.setComponent(new BallerinaPackageFieldCompletionProvider( () -> myModulesComboBox.getComponent().getSelectedModule()).createEditor(myProject)); myWorkingDirectoryField = new LabeledComponent<>(); myWorkingDirectoryField.setComponent(new TextFieldWithBrowseButton()); myParamsField = new LabeledComponent<>(); myParamsField.setComponent(new RawCommandLineEditor()); myModulesComboBox = new LabeledComponent<>(); myModulesComboBox.setComponent(new ModulesComboBox()); }
From source file:net.groboclown.idea.p4ic.ui.connection.AuthTicketConnectionPanel.java
License:Apache License
/** * Method generated by IntelliJ IDEA GUI Designer * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! * * @noinspection ALL/* www . j a va 2s . co m*/ */ private void $$$setupUI$$$() { myRootPanel = new JPanel(); myRootPanel.setLayout(new BorderLayout(0, 0)); final JPanel panel1 = new JPanel(); panel1.setLayout(new GridLayoutManager(4, 2, new Insets(0, 0, 0, 0), -1, -1)); myRootPanel.add(panel1, BorderLayout.CENTER); panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black), ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("configuration.connection.auth-ticket"))); final JLabel label1 = new JLabel(); this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle").getString("configuration.port")); panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label2 = new JLabel(); this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle").getString("configuration.username")); panel1.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label3 = new JLabel(); this.$$$loadLabelText$$$(label3, ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("configuration.auth-ticket")); panel1.add(label3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); myAuthTicket = new TextFieldWithBrowseButton(); myAuthTicket.setFocusable(true); myAuthTicket.setToolTipText(ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("configuration.p4config.chooser")); panel1.add(myAuthTicket, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); myTrustFingerprintLabel = new JLabel(); myTrustFingerprintLabel.setEnabled(false); this.$$$loadLabelText$$$(myTrustFingerprintLabel, ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("configuration.connection.trust-fingerprint")); panel1.add(myTrustFingerprintLabel, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); myUsername = new JTextField(); myUsername.setToolTipText(ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("configuration.username.tooltip")); panel1.add(myUsername, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false)); myPort = new JTextField(); myPort.setToolTipText(ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("configuration.port.tooltip")); panel1.add(myPort, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false)); myTrustFingerprint = new JTextField(); myTrustFingerprint.setEditable(false); myTrustFingerprint.setEnabled(false); myTrustFingerprint.setText(""); myTrustFingerprint.setToolTipText(ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("configuration.fingerprint.tooltip")); panel1.add(myTrustFingerprint, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false)); label1.setLabelFor(myPort); label2.setLabelFor(myUsername); label3.setLabelFor(myAuthTicket); myTrustFingerprintLabel.setLabelFor(myTrustFingerprint); }
From source file:net.groboclown.idea.p4ic.ui.connection.P4ConfigConnectionPanel.java
License:Apache License
/** * Method generated by IntelliJ IDEA GUI Designer * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! * * @noinspection ALL/* w w w. j a v a2 s. co m*/ */ private void $$$setupUI$$$() { myRootPanel = new JPanel(); myRootPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); final JPanel panel1 = new JPanel(); panel1.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1)); myRootPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); panel1.setBorder( BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black), ResourceBundle .getBundle("net/groboclown/idea/p4ic/P4Bundle").getString("configuration.p4config.panel"))); final JLabel label1 = new JLabel(); this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle").getString("configuration.p4config")); panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); myP4ConfigFile = new TextFieldWithBrowseButton(); myP4ConfigFile.setText(ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("config.file.location.tooltip")); myP4ConfigFile.setToolTipText(ResourceBundle.getBundle("net/groboclown/idea/p4ic/P4Bundle") .getString("configuration.p4config.chooser")); panel1.add(myP4ConfigFile, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); myFileMessage = new JLabel(); myFileMessage.setText(""); panel1.add(myFileMessage, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); label1.setLabelFor(myP4ConfigFile); }
From source file:org.apache.camel.idea.preference.CamelPreferencePage.java
License:Apache License
@Nullable @Override//from w ww .java 2 s . c o m public JComponent createComponent() { realTimeEndpointValidationCatalogCheckBox = new JBCheckBox( "Real time validation of Camel endpoints in editor"); realTimeSimpleValidationCatalogCheckBox = new JBCheckBox( "Real time validation of Camel simple language in editor"); highlightCustomOptionsCheckBox = new JBCheckBox("Highlight custom endpoint options as warnings in editor"); downloadCatalogCheckBox = new JBCheckBox("Allow downloading camel-catalog over the internet"); scanThirdPartyComponentsCatalogCheckBox = new JBCheckBox( "Scan classpath for third party Camel components using modern component packaging"); scanThirdPartyLegacyComponentsCatalogCheckBox = new JBCheckBox( "Scan classpath for third party Camel components using legacy component packaging"); camelIconInGutterCheckBox = new JBCheckBox("Show Camel icon in gutter"); camelIconsComboBox = new ComboBox<>(new String[] { "Camel Icon", "Camel Badge Icon", "Custom Icon" }); customIconButton = new TextFieldWithBrowseButton(); customIconButton.addBrowseFolderListener("Choose Custom Camel Icon", "The icon should be a 16x16 png file", null, FileChooserDescriptorFactory.createSingleFileDescriptor("png")); camelIconsComboBox.setRenderer(new CamelChosenIconCellRender(customIconButton)); camelIconsComboBox.addItemListener((l) -> { // only enable custom if selected in the drop down customIconButton.setEnabled("Custom Icon".equals(l.getItem())); }); // use mig layout which is like a spread-sheet with 2 columns, which we can span if we only have one element JPanel panel = new JPanel(new MigLayout("fillx,wrap 2", "[left]rel[grow,fill]")); panel.setOpaque(false); panel.add(realTimeEndpointValidationCatalogCheckBox, "span 2"); panel.add(realTimeSimpleValidationCatalogCheckBox, "span 2"); panel.add(highlightCustomOptionsCheckBox, "span 2"); panel.add(downloadCatalogCheckBox, "span 2"); panel.add(scanThirdPartyComponentsCatalogCheckBox, "span 2"); panel.add(scanThirdPartyLegacyComponentsCatalogCheckBox, "span 2"); panel.add(camelIconInGutterCheckBox, "span 2"); panel.add(new JLabel("Camel icon")); panel.add(camelIconsComboBox); panel.add(new JLabel("Custom icon file path")); panel.add(customIconButton); JPanel result = new JPanel(new BorderLayout()); result.add(panel, BorderLayout.NORTH); JPanel propertyTablePanel = new JPanel(new VerticalLayout(1)); propertyTablePanel.add(createPropertyIgnoreTable(), -1); propertyTablePanel.add(createExcludePropertyFilesTable(), -1); result.add(propertyTablePanel, -1); reset(); return result; }
From source file:org.argus.cit.intellij.android.newProject.ConfigureArgusProjectStep.java
License:Open Source License
/** * Method generated by IntelliJ IDEA GUI Designer * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! * * @noinspection ALL/*from w w w .ja v a 2 s. c o m*/ */ private void $$$setupUI$$$() { myPanel = new JPanel(); myPanel.setLayout(new GridLayoutManager(5, 2, new Insets(0, 5, 0, 0), -1, -1)); final JLabel label1 = new JLabel(); label1.setText("Project location:"); myPanel.add(label1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label2 = new JLabel(); label2.setText("Apk Path:"); label2.setDisplayedMnemonic('A'); label2.setDisplayedMnemonicIndex(0); myPanel.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer1 = new Spacer(); myPanel.add(spacer1, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); myProjectLocation = new TextFieldWithBrowseButton(); myProjectLocation.setEditable(false); myPanel.add(myProjectLocation, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false)); myAppPath = new TextFieldWithBrowseButton(); myAppPath.setEditable(false); myPanel.add(myAppPath, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false)); final JLabel label3 = new JLabel(); label3.setText("Apk Name:"); label3.setDisplayedMnemonic('A'); label3.setDisplayedMnemonicIndex(0); myPanel.add(label3, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label4 = new JLabel(); label4.setText("Package Name:"); label4.setDisplayedMnemonic('P'); label4.setDisplayedMnemonicIndex(0); myPanel.add(label4, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); appName = new JLabel(); appName.setText("NewApp"); myPanel.add(appName, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); packageName = new JLabel(); packageName.setText("com.example"); myPanel.add(packageName, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); }
From source file:org.codebrewer.idea.jetty.JettyDataEditor.java
License:Apache License
public JettyDataEditor() { panel = new JPanel(); jettyHomeField = new TextFieldWithBrowseButton(); jettyVersionLabel = new JLabel(); jettyConfigurationFileTable = new ServerConfigurationFileTable(); build();/*from ww w. j av a2 s . c o m*/ }
From source file:org.codehaus.cargo.intellijidea.CargoConfigurationEditor.java
License:Apache License
/** * Method generated by IntelliJ IDEA GUI Designer * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! *//*from ww w . j a v a 2 s. c om*/ private void $$$setupUI$$$() { panel = new JPanel(); panel.setLayout(new GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1)); final JLabel label1 = new JLabel(); label1.setText("Configuration directory:"); label1.setToolTipText("Directory to which the container configuration will be written. Must be writable."); panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); configDir = new TextFieldWithBrowseButton(); panel.add(configDir, new GridConstraints(0, 1, 1, 2, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null)); servletPanel = new JPanel(); servletPanel.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1)); panel.add(servletPanel, new GridConstraints(2, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null)); servletPanel.setBorder( BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Servlet properties")); portLabel = new JLabel(); portLabel.setText("Port:"); portLabel.setToolTipText("Servlet container port"); servletPanel.add(portLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); usersLabel = new JLabel(); usersLabel.setText("Users:"); usersLabel.setToolTipText("name1:pwd1:role11,...,role1N|name2:pwd2:role21,...,role2N|..."); servletPanel.add(usersLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); portTextField = new JTextField(); servletPanel.add(portTextField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null)); usersTextField = new JTextField(); servletPanel.add(usersTextField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null)); generalPanel = new JPanel(); generalPanel.setLayout(new GridLayoutManager(3, 2, new Insets(0, 0, 0, 0), -1, -1)); panel.add(generalPanel, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null)); generalPanel.setBorder( BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "General properties")); hostnameLabel = new JLabel(); hostnameLabel.setText("Hostname:"); hostnameLabel.setToolTipText("Container hostname"); generalPanel.add(hostnameLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); hostnameTextField = new JTextField(); hostnameTextField.setText("localhost"); generalPanel.add(hostnameTextField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null)); jvmArgsLabel = new JLabel(); jvmArgsLabel.setText("JVM arguments:"); jvmArgsLabel.setToolTipText("JVM arguments that will be passed to the container"); generalPanel.add(jvmArgsLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); jvmArgsTextField = new JTextField(); generalPanel.add(jvmArgsTextField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null)); loggingLabel = new JLabel(); loggingLabel.setText("Logging:"); generalPanel.add(loggingLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); loggingComboBox = new JComboBox(); generalPanel.add(loggingComboBox, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); final Spacer spacer1 = new Spacer(); panel.add(spacer1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null)); }
From source file:org.codehaus.cargo.intellijidea.CargoContainerEditor.java
License:Apache License
/** * Method generated by IntelliJ IDEA GUI Designer * >>> IMPORTANT!! <<< * DO NOT edit this method OR call it in your code! */// w ww .ja v a2s.c o m private void $$$setupUI$$$() { panel = new JPanel(); panel.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1)); final Spacer spacer1 = new Spacer(); panel.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null)); final JLabel label1 = new JLabel(); label1.setText("Home directory:"); label1.setToolTipText("The container's home directory"); panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); homeDir = new TextFieldWithBrowseButton(); panel.add(homeDir, new GridConstraints(0, 1, 1, 2, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, -1), null)); }
From source file:org.codinjutsu.tools.mongo.runner.MongoRunConfigurationEditor.java
License:Apache License
private void createUIComponents() { shellWorkingDirField = new TextFieldWithBrowseButton(); shellWorkingDirField.addBrowseFolderListener("Mongo shell working directory", "", null, new FileChooserDescriptor(false, true, false, false, false, false)); shellWorkingDirField.setName("shellWorkingDirField"); }