import java.awt.*; // This appears in Core Web Programming from // Prentice Hall Publishers, and may be freely used // or adapted. 1997 Marty Hall, hall@apl.jhu.edu. /** A pseudo-popup-menu to use in Java 1.0, which * doesn't have a real one. It is really a listbox * in a borderless window, with mouse tracking so * it is closed when you move off it. */ public class Popup extends Window { private Component source; private List list; public Popup(Frame source) { super(source); resize(100, 100); this.source = source; } public void display(String[] labels, int x, int y) { list = new List(); for(int i=0; i