packageMyshopping;importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;publicclasswww2extendsJComponentimplementsActionListener{publicStringnum;publicStringtheMess...
package Myshopping;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class www2 extends JComponent implements ActionListener
{
public String num;
public String theMessage;
JButton theButton1;
JButton theButton2;
JButton theButton3;
JButton theButton4;
JButton theButton5;
JButton theButton6;
JButton theButton7;
JButton theButton8;
JButton theButton9;
public www2(String message)
{
theMessage=num;
Button();
theButton1.addActionListener(this);
theButton2.addActionListener(this);
theButton3.addActionListener(this);
theBut