-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.1.4, 1.1.8
-
x86
-
windows_nt
Name: joT67522 Date: 11/11/97
[similar to 4037195(?)]
import java.awt.*;
import java.awt.event.*;
public class testPopup extends Frame
{
private PopupMenu popup;
private List list;
public static void main(String args[])
{
testPopup thisApp = new testPopup();
}
public testPopup()
{
super("testing popups for lists");
setBounds(100, 100, 300, 300);
popup = new PopupMenu("this wont be displayed");
popup.add(new MenuItem("ho dee do dee do"));
popup.add(new MenuItem("funna chunna"));
popup.add(new MenuItem("popopopopopopopop"));
popup.add(new MenuItem("doodoodoodoodoodood"));
list = new List();
list.add(popup);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
});
list.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent e)
{
popup.show(list, e.getX(), e.getY());
}
});
add("Center", list);
setVisible(true);
}
}
(Review ID: 19375)
======================================================================