Java Code Examples for javax.swing.JTextArea#setRows()

The following examples show how to use javax.swing.JTextArea#setRows() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProfilerJDBCPanel.java    From visualvm with GNU General Public License v2.0 6 votes vote down vote up
private static TextAreaComponent createTextArea(int rows) {
    final JTextArea rootsArea = new JTextArea();
    rootsArea.setFont(new Font("Monospaced", Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
    TextAreaComponent rootsAreaScrollPane = new TextAreaComponent(rootsArea,
            JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
            JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED) {
        public Dimension getMinimumSize() {
            return getPreferredSize();
        }
        public void setEnabled(boolean enabled) {
            super.setEnabled(enabled);
            rootsArea.setEnabled(enabled);
        }
    };
    rootsAreaScrollPane.setBorder(BorderFactory.createLineBorder(Color.GRAY));
    JTextArea referenceArea = new JTextArea("X"); // NOI18N
    referenceArea.setFont(rootsArea.getFont());
    referenceArea.setRows(rows);
    Insets insets = rootsAreaScrollPane.getInsets();
    rootsAreaScrollPane.setPreferredSize(new Dimension(1, referenceArea.getPreferredSize().height + 
            (insets != null ? insets.top + insets.bottom : 0)));
    return rootsAreaScrollPane;
}
 
Example 2
Source File: ProfilerCPUPanel.java    From visualvm with GNU General Public License v2.0 6 votes vote down vote up
private static TextAreaComponent createTextArea(int rows) {
    final JTextArea rootsArea = new JTextArea();
    rootsArea.setFont(new Font("Monospaced", Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
    TextAreaComponent rootsAreaScrollPane = new TextAreaComponent(rootsArea,
            JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
            JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED) {
        public Dimension getMinimumSize() {
            return getPreferredSize();
        }
        public void setEnabled(boolean enabled) {
            super.setEnabled(enabled);
            rootsArea.setEnabled(enabled);
        }
    };
    rootsAreaScrollPane.setBorder(BorderFactory.createLineBorder(Color.GRAY));
    JTextArea referenceArea = new JTextArea("X"); // NOI18N
    referenceArea.setFont(rootsArea.getFont());
    referenceArea.setRows(rows);
    Insets insets = rootsAreaScrollPane.getInsets();
    rootsAreaScrollPane.setPreferredSize(new Dimension(1, referenceArea.getPreferredSize().height + 
            (insets != null ? insets.top + insets.bottom : 0)));
    return rootsAreaScrollPane;
}
 
Example 3
Source File: TextViewOOM.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static void createAndShowGUI() {
    frame = new JFrame();
    final JScrollPane jScrollPane1 = new JScrollPane();
    ta = new JTextArea();

    ta.setEditable(false);
    ta.setColumns(20);
    ta.setRows(5);
    jScrollPane1.setViewportView(ta);
    frame.add(ta);

    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example 4
Source File: BetaFeaturesListener.java    From rapidminer-studio with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void windowClosed(WindowEvent e) {
	boolean betaActiveNow = Boolean
			.parseBoolean(ParameterService.getParameterValue(RapidMiner.PROPERTY_RAPIDMINER_UPDATE_BETA_FEATURES));
	if (!betaActiveBefore && betaActiveNow) {
		JTextArea textArea = new JTextArea();
		textArea.setColumns(60);
		textArea.setRows(15);
		textArea.setLineWrap(true);
		textArea.setWrapStyleWord(true);
		textArea.setEditable(false);
		textArea.setText(loadBetaEULA());
		textArea.setBorder(null);
		textArea.setCaretPosition(0);

		JScrollPane scrollPane = new ExtendedJScrollPane(textArea);
		scrollPane.setBorder(BorderFactory.createLineBorder(Colors.TEXTFIELD_BORDER));

		ButtonDialog dialog = new ButtonDialogBuilder("beta_features_eula")
				.setOwner(ApplicationFrame.getApplicationFrame())
				.setButtons(DefaultButtons.OK_BUTTON, DefaultButtons.CANCEL_BUTTON)
				.setModalityType(ModalityType.APPLICATION_MODAL).setContent(scrollPane, ButtonDialog.DEFAULT_SIZE)
				.build();
		dialog.setVisible(true);
		if (!dialog.wasConfirmed()) {
			ParameterService.setParameterValue(RapidMiner.PROPERTY_RAPIDMINER_UPDATE_BETA_FEATURES,
					String.valueOf(false));
			ParameterService.saveParameters();
			ActionStatisticsCollector.INSTANCE.log(ActionStatisticsCollector.TYPE_BETA_FEATURES,
					ActionStatisticsCollector.VALUE_BETA_FEATURES_ACTIVATION, "cancelled");
		}
	}
}
 
Example 5
Source File: ModulesInstaller.java    From visualvm with GNU General Public License v2.0 5 votes vote down vote up
private JComponent getErrorNotifyPanel (Exception x) {
    JTextArea area = new JTextArea ();
    area.setWrapStyleWord (true);
    area.setLineWrap (true);
    area.setEditable (false);
    area.setRows (15);
    area.setColumns (40);
    area.setOpaque (false);
    area.setText (getBundle ("InstallerMissingModules_ErrorPanel", x.getLocalizedMessage (), x));
    return area;
}
 
Example 6
Source File: ParametersPanel.java    From hortonmachine with GNU General Public License v3.0 5 votes vote down vote up
private void handleTextArea( FieldData inputField, int row, int col, CellConstraints cc ) {
    String hint = extractSingleGuiHint(HMConstants.MULTILINE_UI_HINT, inputField.guiHints);
    String rowsStr = hint.replaceFirst(HMConstants.MULTILINE_UI_HINT, "");
    int areaRows = Integer.parseInt(rowsStr);

    JTextArea textArea = new JTextArea();
    textArea.setRows(areaRows);
    this.add(textArea, cc.xy(col, row));
    fieldName2ValueHolderMap.put(inputField.fieldName, textArea);
    textArea.setText(inputField.fieldValue);
}
 
Example 7
Source File: GuiMain.java    From google-sites-liberation with Apache License 2.0 5 votes vote down vote up
private void initProgressFrame() {
  progressFrame = new JFrame("Progress");
  JPanel mainPanel = new JPanel();
  mainPanel.setLayout(new BorderLayout());
  progressBar = new JProgressBar();
  progressBar.setMinimum(0);
  progressBar.setMaximum(100);
  progressBar.setPreferredSize(new Dimension(500, 25));
  JPanel progressPanel = new JPanel();
  progressPanel.add(progressBar);
  progressPanel.setBorder(new EmptyBorder(10, 0, 0, 0));
  mainPanel.add(progressPanel, BorderLayout.NORTH);
  textArea = new JTextArea();
  textArea.setRows(20);
  textArea.setEditable(false);
  JScrollPane scrollPane = new JScrollPane(textArea);
  scrollPane.setBorder(new EmptyBorder(10, 10, 10, 10));
  mainPanel.add(scrollPane, BorderLayout.CENTER);
  doneButton = new JButton("Done");
  doneButton.setPreferredSize(new Dimension(495, 25));
  doneButton.setEnabled(false);
  doneButton.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
      doneButton.setEnabled(false);
      progressFrame.setVisible(false);
      optionsFrame.setVisible(true);
    }
  });
  JPanel donePanel = new JPanel();
  donePanel.setLayout(new BorderLayout());
  donePanel.add(doneButton, BorderLayout.CENTER);
  donePanel.setBorder(new EmptyBorder(0, 10, 10, 10));
  mainPanel.add(donePanel, BorderLayout.SOUTH);
  progressFrame.getContentPane().add(mainPanel);
  progressFrame.pack();
  progressFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
 
Example 8
Source File: TextViewOOM.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void createAndShowGUI() {
    frame = new JFrame();
    final JScrollPane jScrollPane1 = new JScrollPane();
    ta = new JTextArea();

    ta.setEditable(false);
    ta.setColumns(20);
    ta.setRows(5);
    jScrollPane1.setViewportView(ta);
    frame.add(ta);

    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example 9
Source File: TextViewOOM.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void createAndShowGUI() {
    frame = new JFrame();
    final JScrollPane jScrollPane1 = new JScrollPane();
    ta = new JTextArea();

    ta.setEditable(false);
    ta.setColumns(20);
    ta.setRows(5);
    jScrollPane1.setViewportView(ta);
    frame.add(ta);

    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example 10
Source File: ModulesInstaller.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private JComponent getErrorNotifyPanel (Exception x) {
    JTextArea area = new JTextArea ();
    area.setWrapStyleWord (true);
    area.setLineWrap (true);
    area.setEditable (false);
    area.setRows (15);
    area.setColumns (40);
    area.setOpaque (false);
    area.setText (getBundle ("InstallerMissingModules_ErrorPanel", x.getLocalizedMessage (), x));
    return area;
}
 
Example 11
Source File: QuickSearchComboBar.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
protected JTextComponent createCommandField() {
    JTextArea res = new DynamicWidthTA();
    res.setRows(1);
    res.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 1));
    // disable default Swing's Ctrl+Shift+O binding to enable our global action
    InputMap curIm = res.getInputMap(JComponent.WHEN_FOCUSED);
    while (curIm != null) {
        curIm.remove(KeyStroke.getKeyStroke(
                KeyEvent.VK_O, KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK));
        curIm = curIm.getParent();
    }
    return res;
}
 
Example 12
Source File: VendorOptionInfoPanel.java    From sldeditor with GNU General Public License v3.0 5 votes vote down vote up
/** Creates the UI. */
private void createUI() {
    setLayout(new BorderLayout());

    JScrollPane scrollPane = new JScrollPane();
    add(scrollPane, BorderLayout.CENTER);

    vendorOptionTable = new JTable();
    scrollPane.setViewportView(vendorOptionTable);
    vendorOptionTable.setModel(model);
    vendorOptionTable
            .getColumnModel()
            .getColumn(0)
            .setCellRenderer(new VendorOptionInfoCellRenderer(model));
    vendorOptionTable
            .getColumnModel()
            .getColumn(1)
            .setCellRenderer(new VendorOptionInfoCellRenderer(model));
    vendorOptionTable
            .getSelectionModel()
            .addListSelectionListener(
                    new ListSelectionListener() {

                        @Override
                        public void valueChanged(ListSelectionEvent e) {
                            displayDescription(vendorOptionTable.getSelectedRow());
                        }
                    });

    descriptionArea = new JTextArea();
    descriptionArea.setEditable(false);
    descriptionArea.setRows(5);
    descriptionArea.setLineWrap(true);
    descriptionArea.setWrapStyleWord(true);
    descriptionArea.setFont(vendorOptionTable.getFont());
    JScrollPane descriptionAreaScrollPane = new JScrollPane(descriptionArea);
    add(descriptionAreaScrollPane, BorderLayout.EAST);
    descriptionAreaScrollPane.setPreferredSize(new Dimension(200, 100));
}
 
Example 13
Source File: TextViewOOM.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static void createAndShowGUI() {
    frame = new JFrame();
    final JScrollPane jScrollPane1 = new JScrollPane();
    ta = new JTextArea();

    ta.setEditable(false);
    ta.setColumns(20);
    ta.setRows(5);
    jScrollPane1.setViewportView(ta);
    frame.add(ta);

    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example 14
Source File: TextViewOOM.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static void createAndShowGUI() {
    frame = new JFrame();
    final JScrollPane jScrollPane1 = new JScrollPane();
    ta = new JTextArea();

    ta.setEditable(false);
    ta.setColumns(20);
    ta.setRows(5);
    jScrollPane1.setViewportView(ta);
    frame.add(ta);

    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}
 
Example 15
Source File: TextAreaParameterComponent.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
public TextAreaParameterComponent( final ParameterDefinitionEntry entry, final ParameterContext parameterContext,
    final ParameterUpdateContext updateContext ) {
  this.updateContext = updateContext;

  final String formatString = entry.getTranslatedParameterAttribute( ParameterAttributeNames.Core.NAMESPACE,
    ParameterAttributeNames.Core.DATA_FORMAT, parameterContext );

  final String timeZoneSpec =
      entry.getParameterAttribute( ParameterAttributeNames.Core.NAMESPACE, ParameterAttributeNames.Core.TIMEZONE,
          parameterContext );
  final Locale locale = parameterContext.getResourceBundleFactory().getLocale();
  final TimeZone timeZone =
      TextComponentEditHandler.createTimeZone( timeZoneSpec, parameterContext.getResourceBundleFactory()
          .getTimeZone() );

  textArea = new JTextArea();

  format = TextComponentEditHandler.createFormat( formatString, locale, timeZone, entry.getValueType() );
  handler = new TextComponentEditHandler( entry.getValueType(), entry.getName(), textArea, updateContext, format );

  textArea.getDocument().addDocumentListener( handler );
  textArea.setColumns( 60 );
  textArea.setRows( 10 );

  setViewportView( textArea );

  parameterName = entry.getName();
  updateContext.addChangeListener( new TextUpdateHandler() );
}
 
Example 16
Source File: ModuleInstallerSupport.java    From netbeans with Apache License 2.0 4 votes vote down vote up
private static JPanel problemPanel(String header, String message) {
    JPanel panel = new JPanel();
    JLabel jLabel1 = new javax.swing.JLabel();
    JScrollPane jScrollPane1 = new javax.swing.JScrollPane();
    JTextArea jTextArea1 = new javax.swing.JTextArea();

    jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getStyle() | java.awt.Font.BOLD));
    jLabel1.setText(header);

    jTextArea1.setColumns(20);
    jTextArea1.setEditable(false);
    jTextArea1.setLineWrap(true);
    jTextArea1.setWrapStyleWord(true);
    jTextArea1.setRows(5);
    jTextArea1.setText(message);
    jTextArea1.setOpaque(false);
    jScrollPane1.setViewportView(jTextArea1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(panel);
    panel.setLayout(layout);
    layout.setHorizontalGroup(
        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 478, Short.MAX_VALUE)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(jLabel1)
                    .addGap(107, 107, 107)))
            .addContainerGap())
    );
    layout.setVerticalGroup(
        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jLabel1)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE)
            .addGap(82, 82, 82))
    );
    return panel;
}
 
Example 17
Source File: ProcessInfoDialog.java    From nmonvisualizer with Apache License 2.0 4 votes vote down vote up
public ProcessInfoDialog(NMONVisualizerGui gui) {
    super(gui);
    setResizable(true);

    setLayout(new BorderLayout());
    setIconImage(PROCESS_ICON.getImage());

    processName = new JLabel();
    processName.setFont(Styles.TITLE);
    processName.setHorizontalAlignment(SwingConstants.CENTER);

    processTime = new JLabel();
    processTime.setFont(Styles.BOLD);
    processTime.setHorizontalAlignment(SwingConstants.CENTER);

    JPanel header = new JPanel();
    header.setLayout(new GridLayout(2, 1));
    header.setBorder(Styles.TITLE_BORDER);
    header.add(processName);
    header.add(processTime);

    add(header, BorderLayout.PAGE_START);

    commandLine = new JTextArea();
    commandLine.setColumns(50);
    commandLine.setRows(15);
    commandLine.setEditable(false);

    JScrollPane scrollPane = new JScrollPane(commandLine);
    scrollPane.setBorder(Styles.DOUBLE_LINE_BORDER);
    add(scrollPane, BorderLayout.CENTER);

    followTree = new JCheckBox("Link with Tree?");
    followTree.setFont(Styles.LABEL);
    followTree.setHorizontalAlignment(SwingConstants.TRAILING);
    followTree.setHorizontalTextPosition(SwingConstants.LEADING);
    followTree.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 10));
    followTree.setSelected(false);

    add(followTree, BorderLayout.PAGE_END);

    tree = null;
}
 
Example 18
Source File: SwingAppLibDownloader.java    From netbeans with Apache License 2.0 4 votes vote down vote up
private static JPanel problemPanel(String header, String message) {
    JPanel panel = new JPanel();
    JLabel jLabel1 = new javax.swing.JLabel();
    JScrollPane jScrollPane1 = new javax.swing.JScrollPane();
    JTextArea jTextArea1 = new javax.swing.JTextArea();

    jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getStyle() | java.awt.Font.BOLD));
    jLabel1.setText(header);

    jTextArea1.setColumns(20);
    jTextArea1.setEditable(false);
    jTextArea1.setLineWrap(true);
    jTextArea1.setWrapStyleWord(true);
    jTextArea1.setRows(5);
    jTextArea1.setText(message);
    jTextArea1.setOpaque(false);
    jScrollPane1.setViewportView(jTextArea1);

    javax.swing.GroupLayout layout = new GroupLayout(panel);
    panel.setLayout(layout);
    layout.setHorizontalGroup(
        layout.createParallelGroup(GroupLayout.Alignment.LEADING)
        .addGroup(layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane1, GroupLayout.DEFAULT_SIZE, 478, Short.MAX_VALUE)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(jLabel1)
                    .addGap(107, 107, 107)))
            .addContainerGap())
    );
    layout.setVerticalGroup(
        layout.createParallelGroup(GroupLayout.Alignment.LEADING)
        .addGroup(layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jLabel1)
            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jScrollPane1, GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE)
            .addGap(82, 82, 82))
    );
    return panel;
}
 
Example 19
Source File: StringEditor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public Component getCustomEditor () {
    if (customEditor == null) {
        JTextArea textArea = new JTextArea();
        textArea.setWrapStyleWord(true);
        textArea.setLineWrap(true);
        textArea.setColumns(60);
        textArea.setRows(8);
        textArea.getDocument().addDocumentListener(this);
        textArea.getAccessibleContext().setAccessibleName(
                NbBundle.getBundle(StringEditor.class).getString("ACSN_StringEditorTextArea")); //NOI18N
        textArea.getAccessibleContext().setAccessibleDescription(
                NbBundle.getBundle(StringEditor.class).getString("ACSD_StringEditorTextArea")); //NOI18N

        JScrollPane scroll = new JScrollPane();
        scroll.setViewportView(textArea);

        JLabel htmlTipLabel = new JLabel(NbBundle.getMessage(StringEditor.class, "StringEditor.htmlTipLabel.text")); // NOI18N

        JPanel panel = new JPanel();
        GroupLayout layout = new GroupLayout(panel);
        layout.setAutoCreateGaps(true);
        panel.setLayout(layout);
        layout.setHorizontalGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup()
                    .addComponent(scroll)
                    .addComponent(htmlTipLabel))
                .addContainerGap());
        layout.setVerticalGroup(layout.createSequentialGroup()
                .addContainerGap().addComponent(scroll).addComponent(htmlTipLabel));

        customEditor = panel;
        textComp = textArea;
        htmlTipLabel.setVisible(htmlText);
    }

    textComp.setEditable(editable);
    setValueToCustomEditor();

    return customEditor;
}
 
Example 20
Source File: WorkspaceForm.java    From azure-devops-intellij with MIT License 4 votes vote down vote up
/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL
 */
private void $$$setupUI$$$() {
    createUIComponents();
    contentPane = new JPanel();
    contentPane.setLayout(new GridLayoutManager(9, 2, new Insets(0, 0, 0, 0), -1, -1));
    final JLabel label1 = new JLabel();
    this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle("com/microsoft/alm/plugin/idea/ui/tfplugin").getString("WorkspaceDialog.Name"));
    contentPane.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));
    name = new JTextField();
    contentPane.add(name, 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 label2 = new JLabel();
    this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle("com/microsoft/alm/plugin/idea/ui/tfplugin").getString("WorkspaceDialog.Server"));
    contentPane.add(label2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    server = new JLabel();
    server.setText("https://");
    contentPane.add(server, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    final JLabel label3 = new JLabel();
    this.$$$loadLabelText$$$(label3, ResourceBundle.getBundle("com/microsoft/alm/plugin/idea/ui/tfplugin").getString("WorkspaceDialog.Owner"));
    contentPane.add(label3, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    owner = new JLabel();
    owner.setText("domain\\user");
    contentPane.add(owner, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    final JLabel label4 = new JLabel();
    this.$$$loadLabelText$$$(label4, ResourceBundle.getBundle("com/microsoft/alm/plugin/idea/ui/tfplugin").getString("WorkspaceDialog.Computer"));
    contentPane.add(label4, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    computer = new JLabel();
    computer.setText("localhost");
    contentPane.add(computer, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    final JLabel label5 = new JLabel();
    this.$$$loadLabelText$$$(label5, ResourceBundle.getBundle("com/microsoft/alm/plugin/idea/ui/tfplugin").getString("WorkspaceDialog.Comment"));
    contentPane.add(label5, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    final JBScrollPane jBScrollPane1 = new JBScrollPane();
    contentPane.add(jBScrollPane1, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    comment = new JTextArea();
    comment.setLineWrap(true);
    comment.setRows(3);
    comment.setText("");
    jBScrollPane1.setViewportView(comment);
    workingFoldersLabel = new JLabel();
    this.$$$loadLabelText$$$(workingFoldersLabel, ResourceBundle.getBundle("com/microsoft/alm/plugin/idea/ui/tfplugin").getString("WorkspaceDialog.WorkingFolders"));
    contentPane.add(workingFoldersLabel, new GridConstraints(7, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    final Spacer spacer1 = new Spacer();
    contentPane.add(spacer1, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 10), null, 0, false));
    final JLabel label6 = new JLabel();
    this.$$$loadLabelText$$$(label6, ResourceBundle.getBundle("com/microsoft/alm/plugin/idea/ui/tfplugin").getString("WorkspaceDialog.Location"));
    contentPane.add(label6, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    location = new ComboBox();
    location.setEditable(false);
    contentPane.add(location, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    contentPane.add(workingFolderPanel, new GridConstraints(8, 0, 1, 2, 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, 0, false));
    label1.setLabelFor(name);
    label5.setLabelFor(comment);
    label6.setLabelFor(name);
}