Results 1 to 4 of 4
  1. #1
    nhmllr's Avatar
    nhmllr is offline Member
    Join Date
    Aug 2011
    Posts
    51
    Rep Power
    0

    Default JButtons lose color afteryou mouse over them

    My JButtons look like the standard metallic "look&feel" but the user mouses over them, they all turn gray. Why would this happen? Thanks

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: JButtons lose color afteryou mouse over them

    Post a SSCCE to demonstrate what's going on.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    nhmllr's Avatar
    nhmllr is offline Member
    Join Date
    Aug 2011
    Posts
    51
    Rep Power
    0

    Default Re: JButtons lose color afteryou mouse over them

    I figured out what the problem was.

    This always occurred after I made a new window that was using a different "look&feel"

    When I set them both to the same "look&feel," the problem went away

  4. #4
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: JButtons lose color afteryou mouse over them

    Good :)
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. Color line in JTextArea after a mouse clik
    By Ridha in forum AWT / Swing
    Replies: 5
    Last Post: 02-18-2013, 06:14 PM
  2. Mouse Listener and JButtons
    By Danieldcc in forum AWT / Swing
    Replies: 12
    Last Post: 01-05-2012, 05:41 PM
  3. Mouse Click changes Color of Rectangle
    By DocIcarus in forum New To Java
    Replies: 1
    Last Post: 11-23-2010, 02:53 PM
  4. change color on mouse click
    By hannerz06 in forum New To Java
    Replies: 3
    Last Post: 03-31-2010, 10:46 PM
  5. change object color on mouse click
    By gotenks05 in forum Java Applets
    Replies: 1
    Last Post: 04-05-2009, 08:14 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
  •