Package javax.swing

Examples of javax.swing.JTextArea$AccessibleJTextArea


  {
    setLayout(new GridBagLayout());

    final JLabel messageOneLabel = new JLabel("One:");
    final JLabel messageTwoLabel = new JLabel("Two:");
    messageOneField = new JTextArea();
    messageOneField.setWrapStyleWord(true);
    messageOneField.setRows(10);
    messageTwoField = new JTextArea();
    messageTwoField.setRows(10);
    messageTwoField.setWrapStyleWord(true);
    updateAction = new UpdateAction();

    GridBagConstraints gbc = new GridBagConstraints();
View Full Code Here


    add(createSeparatorPanel(), BorderLayout.SOUTH);
  }

  private JComponent createDataArea()
  {
    txDataArea = new JTextArea();
    cbxColumnNamesAsFirstRow = new JCheckBox("First Row contains Column-Names");

    final JLabel lbDataArea = new JLabel("CSV-Data");
    final JLabel lbLoadData = new JLabel("Load Data from File");
    final ActionButton btLoadData = new ActionButton(new LoadCSVDataAction());
View Full Code Here

        gridbag.setConstraints(createLayerButton, c);
        configPanel.add(createLayerButton);
        createLayerButton.setEnabled(false);

        JPanel currentFeatureListPanel = PaletteHelper.createVerticalPanel(" Current Features: ");
        currentFeatureList = new JTextArea(EMPTY_FEATURE_LIST);
        currentFeatureList.setEditable(false);
        JScrollPane featureListScrollPane = new JScrollPane(currentFeatureList);
        featureListScrollPane.setPreferredSize(new Dimension(150, 10));
        currentFeatureListPanel.add(featureListScrollPane);
View Full Code Here

        }
      });

      Font f = new Font("Monospaced", Font.PLAIN, 16);

      terminalArea = new JTextArea(y, x);
      terminalArea.setFont(f);
      terminalArea.setBackground(Color.BLACK);
      terminalArea.setForeground(Color.ORANGE);
      /* This is a hack. We cannot disable the caret,
       * since setting editable to false also changes
View Full Code Here

   */
  public ConfigEditorPanel()
  {
    moduleNameFormat = new MessageFormat("{0} - Version {1}.{2}-{3}"); //$NON-NLS-1$

    moduleNameField = new JTextArea();
    moduleNameField.setName("ModuleNameField"); //$NON-NLS-1$
    moduleNameField.setMinimumSize(new Dimension(100, 10));
    moduleNameField.setEditable(false);
    moduleNameField.setLineWrap(false);
    moduleNameField.setFont(new Font("SansSerif", //$NON-NLS-1$
        Font.BOLD, moduleNameField.getFont().getSize() + 4));

    producerField = new JTextArea();
    producerField.setName("ProducerField"); //$NON-NLS-1$
    producerField.setMinimumSize(new Dimension(100, 10));
    producerField.setEditable(false);
    producerField.setLineWrap(false);
    producerField.setWrapStyleWord(true);
    producerField.setFont(producerField.getFont().deriveFont(Font.ITALIC));
    producerField.setBackground(UIManager.getColor("controlLtHighlight")); //$NON-NLS-1$

    descriptionArea = new JTextArea();
    descriptionArea.setName("DescriptionArea"); //$NON-NLS-1$
    descriptionArea.setMinimumSize(new Dimension(100, 10));
    descriptionArea.setEditable(false);
    descriptionArea.setLineWrap(true);
    descriptionArea.setWrapStyleWord(true);
View Full Code Here

  protected void build()
  {
    final StringWriter writer = new StringWriter();
    writer.write("<html><head><title></title></head><body>"); //$NON-NLS-1$

    final JTextArea mangleInfo = new JTextArea();
    mangleInfo.setText(messages.getString("DefaultModuleEditor.USER_GUIDE", modulePackage)); //$NON-NLS-1$
    mangleInfo.setName("DescriptionArea"); //$NON-NLS-1$
    mangleInfo.setMinimumSize(new Dimension(100, 10));
    mangleInfo.setEditable(false);
    mangleInfo.setLineWrap(true);
    mangleInfo.setWrapStyleWord(true);
    mangleInfo.setOpaque(false);
    contentpane.add(mangleInfo);

    final ConfigDescriptionEntry[] keyNames = getKeyNames();
    if (keyNames == null)
    {
View Full Code Here

    final String font = ConfigEditorBoot.getInstance().getGlobalConfig().getConfigProperty
        (ConfigDescriptionEditor.EDITOR_FONT_KEY, "Monospaced"); //$NON-NLS-1$
    final int fontSize = ParserUtil.parseInt
        (ConfigEditorBoot.getInstance().getGlobalConfig().getConfigProperty
            (ConfigDescriptionEditor.EDITOR_FONT_SIZE_KEY), 12);
    descriptionField = new JTextArea();
    descriptionField.setFont(new Font(font, Font.PLAIN, fontSize));
    descriptionField.setLineWrap(true);
    descriptionField.setWrapStyleWord(true);
    keyNameField = new JTextField();
View Full Code Here

    public static JTextArea createTextArea(String title, String entry,
                                           JComponent parent, int rows, int cols) {
        JPanel pal = PaletteHelper.createHorizontalPanel(null);
        JLabel label = new JLabel(title);
        label.setHorizontalTextPosition(JLabel.RIGHT);
        JTextArea ta = new JTextArea(entry, rows, cols);
        JScrollPane jsp = new JScrollPane(ta);
        label.setLabelFor(jsp);
        pal.add(label);
        pal.add(jsp);
        parent.add(pal);
View Full Code Here

    setTitle("gnupdf Help");
       
    Container helpContent = getContentPane();
   
    helpContent.setLayout(new BorderLayout());
    JTextArea textArea = new JTextArea(20, 40);
    textArea.setLineWrap(true);
    textArea.append(getHelpText());   
    JScrollPane helpScroller = new JScrollPane(textArea);
    helpContent.add(helpScroller);
    setSize(helpScroller.getSize());
    setLocation(new Point(200, 200));
    pack();
    toFront();
    show();
    //helpScroller.getViewport().setViewPosition(new Point(0, 0));
    //textArea.scrollRectToVisible(new Rectangle(0, 0, 2, 2));
    textArea.setCaretPosition(0);
    textArea.setEditable(false);
  }
View Full Code Here

        getContentPane().add(panel);

        setResizable(true);
        getContentPane().setLayout(new GridBagLayout());

        textMessage = new JTextArea();
        textMessage.setEditable(false);
        textMessage.setBackground(panel.getBackground());
        textMessage.setWrapStyleWord(true);
        textMessage.setLineWrap(true);
        textMessage.setMargin(new Insets(5,5,5,5));
View Full Code Here

TOP

Related Classes of javax.swing.JTextArea$AccessibleJTextArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.