Results 1 to 4 of 4
  1. #1
    niba10 is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default Swing JTextArea + JScrollPane question?

    Hi Im develop some program and I have a JTextArea in JScrollPane and its works fine but I want to give the all thing the component (JTextArea + JScrollPane) a border but I can only give the JTextArea or the JScrollPane
    I didnt put them in a panel and now it will be complicated to add a panel
    so I ask you guys if there is a way to add a border to the component
    JTextArea + JScrollPane wich I dont know how to call it..

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    What exactly did you add the scrollpane to? Also, since the text area is inside of the scrollpane, I'd imagine adding a border on the scrollpane should be fine. Others may be able to help you more if this answer isn't quite what you are looking for.

  3. #3
    niba10 is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default

    ok i fixed it by your advice thx

  4. #4
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    You are welcome, glad to have helped you. Please mark your thread solved with the thread tools at the top.

Similar Threads

  1. Question about JScrollPane
    By hei1233212000 in forum New To Java
    Replies: 4
    Last Post: 12-10-2010, 12:36 PM
  2. Swing - Changing text in JTextArea from void
    By Lawllerskates in forum New To Java
    Replies: 4
    Last Post: 02-18-2010, 06:37 PM
  3. JTextArea with JScrollPane
    By AndrewM16921 in forum AWT / Swing
    Replies: 8
    Last Post: 10-30-2009, 01:06 AM
  4. How to use JTextArea with JScrollPane?
    By Splat in forum New To Java
    Replies: 5
    Last Post: 10-19-2009, 04:50 AM
  5. How to add JTextArea in JTable - Swing
    By phungho2000 in forum AWT / Swing
    Replies: 5
    Last Post: 12-17-2008, 10:18 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
  •