import java.applet.Applet; 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. /** Illustrates that Panels are opaque. Java 1.1 only. * @see LightPanel */ public class HeavyPanel extends Applet { public void init() { setFont(new Font("TimesRoman", Font.BOLD, 18)); Panel heavy = new Panel(); heavy.add(new Button("Button 1")); heavy.add(new Button("Button 2")); add(heavy); } public void paint(Graphics g) { int width = getSize().width, height = getSize().height; for(int y=5; y