Package javax.swing

Examples of javax.swing.JTextArea


    con.insets = new Insets( 5, 10, 15, 10 ) ;
    con.fill = GridBagConstraints.BOTH ;
    gbl.setConstraints( listScrollPane, con ) ;
    statusPanel.add( listScrollPane ) ;

    statusInfos = new JTextArea( "", 5, 20 ) ;
    statusInfos.setBorder( BorderFactory.createEtchedBorder() ) ;
    statusInfos.setEditable( false ) ;
    con.gridheight = 1 ;
    gbl.setConstraints( statusInfos, con ) ;
    statusPanel.add( statusInfos ) ;
View Full Code Here


  public static void showQuickErrorDialog(JFrame parent, String title, Exception e) {
    // create and configure a text area - fill it with exception text.
    final JPanel pan = new JPanel(), details = new JPanel();
    final CardLayout crd = new CardLayout();
    pan.setLayout(crd);
    final JTextArea textArea = new JTextArea();
    textArea.setFont(new Font("Sans-Serif", Font.PLAIN, 10));
    textArea.setEditable(false);
    StringWriter writer = new StringWriter();
    e.printStackTrace(new PrintWriter(writer));
    textArea.setText(writer.toString());
    JLabel lab = new JLabel(e.getMessage());
    JButton flip = new JButton(Globals.lang("Details"));

    FormLayout layout = new FormLayout("left:pref", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
View Full Code Here

    private JTextArea _ta;

    FormattedSourcePanel()
    {
      super(new BorderLayout());
      _ta = new JTextArea();
      _ta.setEditable(false);
      add(_ta, BorderLayout.CENTER);
    }
View Full Code Here

    }

    private void createUserInterface()
    {
      _ta = new JTextArea();
      _ta.setEditable(false);
      add(_ta, BorderLayout.CENTER);
    }
View Full Code Here

   * @return javax.swing.JScrollPane 
   */
  private JScrollPane getDetailsScrollPane() {
    if (detailsScrollPane == null) {
     
      detailsValue = new JTextArea();
     
     
      detailsScrollPane = new JScrollPane(detailsValue);
     
    }
View Full Code Here

        //  Construct Components
        topPanel   = new JPanel();
        radioPanel = new JPanel();
        eventPanel = new JPanel();
        eventMonitor = new JTextArea(10,10);
        radioPanel.setLayout( new GridLayout(1,6) );
        eventPanel.setLayout( new BorderLayout() );
        buttongroup = new ButtonGroup();

        //  Set up TextArea
View Full Code Here

        //  Construct Components
        topPanel   = new JPanel();
        radioPanel = new JPanel();
        eventPanel = new JPanel();
        eventMonitor = new JTextArea(10,10);
        radioPanel.setLayout( new GridLayout(1,6) );
        eventPanel.setLayout( new BorderLayout() );
        buttongroup = new ButtonGroup();

        //  Set up TextArea
View Full Code Here

  public void testTextComponents()
  {
    JTextField tf = classUnderTest.getJTextField();
    tf.setText("111111111111");
    testKeyListener(tf);
    JTextArea ta = classUnderTest.getJTextArea(null);
    ta.setText("111111111111");
    testKeyListener(ta);
  }
View Full Code Here

   
    coverSubjectTextField = new JTextField(DEFAULT_COLUMNS);
    coverSubjectLabel = builder.append("", coverSubjectTextField);
    builder.nextLine();
   
    coverCommentTextArea= new JTextArea(3, DEFAULT_COLUMNS);
    coverCommentLabel = builder.append("");
    builder.appendRow("fill:pref:grow"); // second row for text area
    CellConstraints cc = new CellConstraints();
    coverCommentScrollPane = new JScrollPane(coverCommentTextArea);
    builder.add(coverCommentScrollPane,
View Full Code Here

      if (dialog == null) {
        dialog = new AboutDialog();
        dialog.setTitle(i18n.tr("About JHylaFax {0}", getVersion()));
        dialog.setLocationRelativeTo(JHylaFAX.this);
        dialog.addHTMLTab(i18n.tr("General Information"), "about.html", true);
        JTextArea textArea = dialog.addTab(i18n.tr("License"), "LICENSE.jhylafax");
        textArea.setFont(new Font("Monospaced", Font.PLAIN, 10));

        dialog.addHTMLTab(i18n.tr("3rd Party Software"), "LICENSE.other.html", true);
       
        dialog.getTabbedPane().setSelectedIndex(0);
      }
View Full Code Here

TOP

Related Classes of javax.swing.JTextArea

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.