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

Effect on components differs between Win32/Solaris by setEnable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Enabling (by setEnable) container which containes disabled components
      doesn't effect such components and the label of those components still remains
      grayed out on SOlaris but Windows.
      On Windows enabling container results to change looking of components, those
      looks like enabled but disabled in fact.

      import java.awt.*;
      import java.applet.*;

      public class Flush2 extends Applet {
              Choice choice1;

              public void init() {
            Button b = new Button("B") ;
                      add (choice1 = new Choice ());
            add (b) ;
                      choice1.addItem (" black ");
            b.setEnabled(true) ;
            choice1.setEnabled(true) ;
            this.setEnabled(false) ;
              }

              public boolean handleEvent(Event evt) {
            if (evt.id == Event.ACTION_EVENT && evt.target instanceof Button) {
               System.out.println("action!") ;
            }
            return true ;
              }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tprinzinsunw Timothy Prinzing (Inactive)
                Reporter:
                sishidasunw Shoji Ishida (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: