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

Characters on button aren't displayed on plugin with some CDE color

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      x86, sparc
    • OS:
      solaris_2.5.1, solaris_10

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              dav Andrei Dmitriev (Inactive)
              Reporter:
              elarsen Erik Larsen (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: