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