find color for end user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aleplgr
    New Member
    • Aug 2007
    • 19

    find color for end user

    Hi! I defined this background color for a JTable and it works fine:
    Color Pigment;
    Pigment = new Color (242, 232, 232);
    It's gray as I tested it in here :
    http://www.shodor.org/stella2java/rgbint.html
    and as can be seen for the proporcions of red, green and blue. And looks gray (exactlly the gray I'm looking for) when I run the application in my PC and others.

    But when my end user tested it in it's own PC it is brown, how could be that?
    I could ask the end-user to enter here
    http://www.shodor.org/stella2java/rgbint.html
    and find the rgb combination for him to find the gray but what else could I do?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by aleplgr
    Hi! I defined this background color for a JTable and it works fine:
    Color Pigment;
    Pigment = new Color (242, 232, 232);
    It's gray as I tested it in here :
    http://www.shodor.org/stella2java/rgbint.html
    and as can be seen for the proporcions of red, green and blue. And looks gray (exactlly the gray I'm looking for) when I run the application in my PC and others.

    But when my end user tested it in it's own PC it is brown, how could be that?
    I could ask the end-user to enter here
    http://www.shodor.org/stella2java/rgbint.html
    and find the rgb combination for him to find the gray but what else could I do?
    Either your user is colorblind or he has a broken monitor. Maybe you can make
    all colors user configurable?

    kind regards,

    Jos

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      His monitor could be out of whack -- monitors do need to be calibrated. Also, what are his monitor color display settings? 32 bit, 16 bit, 256 colors? If you are writing a Swing application, for sh*ts and giggles you could use a JColorChooser to allow a user to choose their own colors on the fly.

      ps. Your color (242, 232, 232) looks a little peachy to me. If you want a neutral gray have all three values the same.

      Comment

      Working...