Results 1 to 2 of 2
  1. #1
    Senior Member Avg's Avatar
    Join Date
    Oct 2003
    NY, Long island

    Need help quick, scrollable box in java

    I want to know who to display a string on a scrollable box, my project is due at noon today and I need to do it before then.


  2. #2
    Member Trombe's Avatar
    Join Date
    Mar 2005
    Austin, Texas
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;

    private JTextArea TArea = new JTextArea("String goes Here!");

    add(new JScrollPane(TArea));

    Assuming of course you have JFrame and all that already working...
    Edit: Sorry this ain't before noon; I have found it's a good habit to do homework when you first get it, rather then right before it's due.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts