Results 1 to 7 of 7
  1. #1
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Default How to I remove a background of a jtextfield?

    Hello, I wonder how can I remove the background of a jtf?
    It's just I need a custom one for my online game, I wanna make a custom login form but not sure how to I customize it..
    WARNING I am Russian so it's possible that I wont understand you correctly...

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

    Default Re: How to I remove a background of a jtextfield?

    I'm not sure I understand what you're trying to do. A JTextField doesn't really have a background.

  3. #3
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Default Re: How to I remove a background of a jtextfield?

    It does, that white box with black borders
    WARNING I am Russian so it's possible that I wont understand you correctly...

  4. #4
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Default Re: How to I remove a background of a jtextfield?

    But either way I want to create custom style of the textfield, here is the example:
    http://farm3.static.flickr.com/2153/...028241f812.jpg
    Or:
    http://static.basilmarket.com/screen...een-180150.jpg

    Something like that, I already made the graphics but I am not sure how to make the textfield invisible except for the text
    WARNING I am Russian so it's possible that I wont understand you correctly...

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

  6. #6
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Default Re: How to I remove a background of a jtextfield?

    Almost good but still got those borders xD dang it
    Last edited by Lionlev; 10-21-2012 at 01:24 PM.
    WARNING I am Russian so it's possible that I wont understand you correctly...

  7. #7
    Lionlev is offline Senior Member
    Join Date
    May 2012
    Posts
    172
    Rep Power
    3

    Default Re: How to I remove a background of a jtextfield?

    Ohh fixed it by "setBorders(null);"
    thanks!
    WARNING I am Russian so it's possible that I wont understand you correctly...

Similar Threads

  1. Replies: 1
    Last Post: 04-07-2012, 10:27 PM
  2. Replies: 4
    Last Post: 04-19-2011, 06:09 AM
  3. PDFBOX change text colours and remove background
    By gstkein in forum Advanced Java
    Replies: 1
    Last Post: 11-20-2009, 12:54 PM
  4. Replies: 1
    Last Post: 01-30-2009, 07:44 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
  •