It all makes sense. You just made a bunch of spelling and case errors:
AddSub.java:25: cannot find symbol
symbol : variable Intiger
location: class AddSub
label = new JLabel("Pushes: "+ Intiger.toString(num));
^
It says specifically that it cannot find the symbol:
Intiger. Neither can I. I assume you mean
Integer.
AddSub.java:31: cannot find symbol
symbol : variable add
location: class AddSub
cp.add(add);
^
It says it cannot find
add. I bet it could find
Add.
AddSub.java:32: cannot find symbol
symbol : variable sub
location: class AddSub
cp.add(sub);
^
Can't find
sub; can find
Sub.
AddSub.java:35: width is not public in java.awt.Component; cannot be accessed from outside package
setSize(width,height);
^
AddSub.java:35: height is not public in java.awt.Component; cannot be accessed from outside package
setSize(width,height);
^
Another case issue. Your height and width variables are called
Height and
Width. Since your class extends JApplet and the compiler couldn't find your variables since you used the wrong names, it assumed you were trying to access JApplet's variables named
height and
width, both of which are not public so you cannot access them directly.
AddSub.java:44: cannot find symbol
symbol : variable Intiger
location: class AddSub.AddButtonListener
label.setText("Pushes:" + Intiger.toString(num));
^
AddSub.java:55: cannot find symbol
symbol : variable Intiger
location: class AddSub.SubButtonListener
label.setText("Pushes:" + Intiger.toString(num));
Integer, not
Intiger.
Spelling and Case -- its a bitch.