-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6
-
Fix Understood
-
x86, sparc
-
solaris_2.5.1, solaris_10
If the foreground color of CDE is white, label string of button on Plugin cannot be shown. It seems the label was shown as white on the white background.
1. Login CDE.
2. Set foreground color white.
For example, "Style Manager" - "Color" - Golden
3. Compile the sample code
4. Launch mozilla and load the sample html file.
------ awt.java ------
import java.awt.*;
import java.applet.Applet;
public class awt extends Applet {
public static String label = new String("Test String");
public static void main(String argv[]){
Frame mainFrame = new Frame(awt.label);
awt a = new awt();
addComponents((Container)a);
mainFrame.add(a);
mainFrame.pack();
mainFrame.setVisible(true);
}
public void init(){
add(new Button("test test test"));
showStatus("Test String");
}
public void destroy() {
removeAll();
}
}
----------------------
------ awt.html ------
<html>
<body>
<applet code="awt.class" height=300 width=300>
</applet>
</body>
</html>
----------------------
This problem doesn't occur with the "Default" color setting of Solaris,
but some other CDE platforms, such as IBM AIX, have a different default color. Unfortunately, AIX's default color meets the condition of the problem.
1. Login CDE.
2. Set foreground color white.
For example, "Style Manager" - "Color" - Golden
3. Compile the sample code
4. Launch mozilla and load the sample html file.
------ awt.java ------
import java.awt.*;
import java.applet.Applet;
public class awt extends Applet {
public static String label = new String("Test String");
public static void main(String argv[]){
Frame mainFrame = new Frame(awt.label);
awt a = new awt();
addComponents((Container)a);
mainFrame.add(a);
mainFrame.pack();
mainFrame.setVisible(true);
}
public void init(){
add(new Button("test test test"));
showStatus("Test String");
}
public void destroy() {
removeAll();
}
}
----------------------
------ awt.html ------
<html>
<body>
<applet code="awt.class" height=300 width=300>
</applet>
</body>
</html>
----------------------
This problem doesn't occur with the "Default" color setting of Solaris,
but some other CDE platforms, such as IBM AIX, have a different default color. Unfortunately, AIX's default color meets the condition of the problem.