Results 1 to 5 of 5
  1. #1
    Psyclone is offline Member
    Join Date
    Jan 2010
    Posts
    81
    Rep Power
    0

    Default Text Area Outline

    I'm using the NetBeans 6.8 Swing GUI. I want to display multiple lines of text using text/word wrapping. I created a jTextArea and everything is working fine except for one thing. My TextArea background is the same color as my panel (intentionally). When I remove the border from the TextArea, it still leaves a very thing blue outline of the TextArea that I can't seem to get rid of.

    Does anyone know how to remove the outline? It's not the border property.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    a JTextArea shouldn't even have a border by default. Do you happen to have this JTextArea inside of a JScrollPane?

    As an aside: you would do well for yourself to divorce yourself from the NetBeans GUI builder if you want to learn Swing coding.

  3. #3
    Psyclone is offline Member
    Join Date
    Jan 2010
    Posts
    81
    Rep Power
    0

    Default

    Yeah, it automatically put it inside a jscroll pane. I've already started reading tutorials for building it myself. The NetBeans GUI is actually really annoying, but I did learn a lot just by playing around with it for the past few days.

    I plan on starting to build my GUI from scratch using Swing tomorrow.

    Thanks!

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Psyclone View Post
    Yeah, it automatically put it inside a jscroll pane.
    Then the border you see is from the JScrollPane.

    I've already started reading tutorials for building it myself. The NetBeans GUI is actually really annoying, but I did learn a lot just by playing around with it for the past few days.

    I plan on starting to build my GUI from scratch using Swing tomorrow.

    Thanks!
    excellent. Best of luck.

  5. #5
    zweibieren is offline Senior Member
    Join Date
    Aug 2009
    Location
    Pittsburgh, PA
    Posts
    284
    Rep Power
    5

    Default

    The NetBeans GUI is actually really annoying
    This is not a true statement. It does not do justice to the truth.
    The NetBeans GUI builder is patiently and patently evil.

Similar Threads

  1. Displaying images in a text area
    By idanfast in forum AWT / Swing
    Replies: 1
    Last Post: 11-26-2009, 08:51 PM
  2. text area size problem
    By collin389 in forum AWT / Swing
    Replies: 7
    Last Post: 11-09-2009, 02:15 AM
  3. eol in text area....
    By Nicholas Jordan in forum Networking
    Replies: 0
    Last Post: 09-14-2008, 10:59 PM
  4. Text Area problem
    By mcal in forum New To Java
    Replies: 0
    Last Post: 02-11-2008, 09:42 PM
  5. textfiled and text area to UTF-16?
    By Mr tuition in forum AWT / Swing
    Replies: 0
    Last Post: 12-04-2007, 12:40 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
  •