Results 1 to 3 of 3
  1. #1
    ziniestro is offline Member
    Join Date
    May 2007
    Posts
    2
    Rep Power
    0

    Default Jtextarea and scroll

    I want to put a scroll into a textarea
    how can I do this?

  2. #2
    pegitha is offline Member
    Join Date
    Apr 2007
    Location
    Indiana
    Posts
    83
    Rep Power
    0

    Default

    See this thread:
    textarea

  3. #3
    Marty is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default

    Java Code:
     JTextArea text = new JTextArea(); //without parameters
    JTextArea text = new JTextArea(10,40); //rows and columns
    JTextArea text = new JTextArea( "" ); //text in jtextarea
     
    
    
    JScrollPane pScroll = new JScrollPane(text, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);

Similar Threads

  1. code hint scroll bar ?
    By tryit in forum Eclipse
    Replies: 3
    Last Post: 04-28-2008, 07:07 AM
  2. How to add a shortcut key from JTextArea
    By sukatoa in forum Advanced Java
    Replies: 2
    Last Post: 01-28-2008, 08:39 AM
  3. JTextArea
    By saytri in forum New To Java
    Replies: 0
    Last Post: 01-13-2008, 01:07 AM
  4. Scroll thumb on the ScrollPanel
    By SteM in forum AWT / Swing
    Replies: 3
    Last Post: 12-05-2007, 06:35 PM

Posting Permissions

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