//Purpose: This applet simply creates button components import java.awt.*; import java.applet.*; import java.awt.event.*; public class test12b extends Applet{ //Set background to yellow, public void init() { setBackground(Color.yellow); setFont(new Font("Helvetical", Font.BOLD, 12)); setLayout( new FlowLayout()); add(new Button("Clear")); add(new Button("Defaults")); add(new Button("Submit")); } //Paint the current key at the current position public void paint(Graphics g) { //set drawing color g.setColor(Color.red); } }