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

StyleSheet does not load color's defined with rgb

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • client-libs
    • beta
    • generic
    • generic



      Name: yyT116575 Date: 11/28/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


      This is a resubmission of 112852:
      Note the output of the two StyleSheet objects.
      styleSheet1 has a color attribute.
      styleSheet2 does not have a color attribute.
      (this occurs on any attribute that is based on colors)

      import javax.swing.text.*;
      import javax.swing.text.html.*;

      public class TestStyleSheet{

      public TestStyleSheet(){
      StyleSheet styleSheet1 = new StyleSheet();
      StyleSheet styleSheet2 = new StyleSheet();
      styleSheet1.addRule("BODY { color : red }");
      styleSheet2.addRule("BODY { color : rgb(255,0,0) }");
      System.out.println("styleSheet1~~" + styleSheet1.toString() + "~~");
      System.out.println("styleSheet2~~" + styleSheet2.toString() + "~~");
      }

      public static void main(String[] s){
      TestStyleSheet t = new TestStyleSheet();
      }
      }
      (Review ID: 112884)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: