-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
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)
======================================================================