Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6921655

additional java.awt.Color constants requested for great justice

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 6u10
    • client-libs
    • 2d
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      Please add the following color constants to java.awt.Color. Suggested RGB hex values are in parentheses.

      TAUPE (48, 3C, 32)
      TRADITIONAL_CHARTREUSE (DF, FF, 00)
      OLIVE_DRAB (6B, 8E, 23)
      PISTACHIO (93, C5, 72)
      MAHOGANY (C0, 40, 00)
      SEPIA (70, 42, 14)
      OCHRE (CC, 77, 22)
      BISTRE (3D, 2B, 1F)
      FIREBRICK (B2, 22 , 22)
      SEASHELL (B2, 22, 22)


        See also http://en.wikipedia.org/wiki/X11_color_names for additional helpful suggestions.


      JUSTIFICATION :
      Lack of these constants is severely limiting my ability to implement a chromatically diverse user interface for the software I am developing. I look forward to your prompt attention to this most serious of bugs.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I would like to be able to use constants to specify a wide range of fascinating and appealing colors.
      ACTUAL -
      I am unable to use constants to specify a wide range of fascinating and appealing colors.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;
      import java.awt.*;

      public class test {

         public static void main (String [] args) {
            JFrame frame = new JFrame ("Taupe!");
            JLabel label = new JLable ("This text should be displayed in taupe.");
            label.setForeground (Color.TAUPE);
            frame.getContentPane ().add (label);
            frame.pack ();
            frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
            frame.setVisible (true);
         }

      }


      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Create my own file of color constants.

            Unassigned Unassigned
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: