/* Java Applet generated by CGLIB of B-Prolog */ import java.awt.*; import java.applet.Applet; import java.awt.event.*; import java.net.*; import java.net.*; public class scribble extends Applet { boolean repeat = false; public void start(){repeat = true; } public void stop(){repeat = false; } List list_3; Choice choice_4; Checkbox checkbx_5; Checkbox checkbx_6; Checkbox checkbx_7; Button bu_8; Button bu_9; Button bu_10; Button bu_11; public void init(){ setLayout(null); list_3 = new List(); list_3.add("Yellow"); list_3.add("Blue"); list_3.add("Red"); add(list_3); list_3.setSize(65,20); list_3.setLocation(0,20); list_3.setForeground(new Color(-16777216)); choice_4 = new Choice(); add(choice_4); choice_4.add("Yellow"); choice_4.add("Blue"); choice_4.add("Red"); choice_4.setSize(65,20); choice_4.setLocation(0,60); choice_4.setForeground(new Color(-16777216)); checkbx_5 = new Checkbox("Yellow"); add(checkbx_5); checkbx_5.setSize(65,16); checkbx_5.setLocation(0,208); checkbx_5.setForeground(new Color(-16777216)); checkbx_6 = new Checkbox("Blue"); add(checkbx_6); checkbx_6.setSize(65,16); checkbx_6.setLocation(0,244); checkbx_6.setForeground(new Color(-16777216)); checkbx_7 = new Checkbox("Red"); add(checkbx_7); checkbx_7.setSize(65,16); checkbx_7.setLocation(0,280); checkbx_7.setForeground(new Color(-16777216)); bu_8 = new Button("Clean"); add(bu_8); bu_8.setSize(65,16); bu_8.setLocation(0,316); bu_8.setForeground(new Color(-16777216)); bu_8.setFont(new Font("Dialog",0,10)); bu_9 = new Button("Yellow"); add(bu_9); bu_9.setSize(65,16); bu_9.setLocation(0,100); bu_9.setForeground(new Color(-16777216)); bu_9.setFont(new Font("Dialog",0,10)); bu_10 = new Button("Blue"); add(bu_10); bu_10.setSize(65,16); bu_10.setLocation(0,136); bu_10.setForeground(new Color(-16777216)); bu_10.setFont(new Font("Dialog",0,10)); bu_11 = new Button("Red"); add(bu_11); bu_11.setSize(65,16); bu_11.setLocation(0,172); bu_11.setForeground(new Color(-16777216)); bu_11.setFont(new Font("Dialog",0,10)); } public void paint(Graphics g){ g.setColor(new Color(-16777216)); g.drawRect(65,0,385,450); g.setColor(new Color(-16777216)); g.drawRect(65,0,385,450); } }