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

awt.Choice freezes (hangs) the display when used in a Panel in a Panel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.1
    • client-libs
    • beta
    • sparc
    • solaris_7



      Name: skT88420 Date: 01/06/2000


      java version "1.2.1"
      Classic VM (build JDK-1.2.1-A, green threads, sunwjit)


      1. a) compile and run the enclosed
         b) attempt to make a Choice

      2.
      // rrClient.java - awt.Choice freeze bug
      //
      // Ron Theriault: ###@###.### http://www.cs.tamu.edu/staff/ron

      import java.awt.*;

      public class rrClient extends Panel
      {
         // Constructor

         public rrClient ()
            {
            super ();

            Choice monthCh= new Choice ();
            monthCh.addItem ("Jan");
            monthCh.addItem ("Feb");
            monthCh.addItem ("Mar");
            monthCh.addItem ("Apr");

            Panel pr= new Panel ();
            pr.add (monthCh);
            this.add (pr);

            super.setEnabled (false);
            }


         public void init ()
            { super.setEnabled (true); }

         //////////////////////////////////////////////////////////////////////

         public static void main (String [] argv)
         {
         Frame FR= new Frame ("Choice Freeze Bug");

         rrClient client= new rrClient ();

         FR.add ("Center", client);
         FR.pack ();
         FR.show ();
         client.init ();
         }

      }

      3. none, display freezes
      4. none
      (Review ID: 99675)
      ======================================================================

            ibdsunw Ibd Ibd (Inactive)
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: