Background Color change for JTextFields


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Background Color change for JTextFields

  1. #1
    Join Date
    Feb 2005
    Posts
    10

    Background Color change for JTextFields

    Hello All,

    I have an application which has JFrame with multiple JInternalFrames, and JMenu. In the JMenu, I have JColorChooser.

    I want to set a new background color for all JTextField's in JInternalFrames when a color is choosen by using JColorChooser.

    I could not find any method that overrides background color of JtextFields. Do you know it is possible to do such change?

    Thank you very mucchhh!

  2. #2
    Join Date
    Feb 2005
    Posts
    10
    I think by creating class variable and using this for all frames is the only solution.

    Thanks!

  3. #3
    Join Date
    Mar 2005
    Location
    Sendling, MUC, .de
    Posts
    100
    Definitely not! Plz have a look here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center