t3.setText(valueOf(z));
setText() requires a
String argument.
what is valueOf(..)?
is it your own method?
perhaps it should be
String.valueOf(..)
next problem
JPanel p;
...
getContentPane().add(p);
somewhere, in between the declaration and its use, you will need
p = new JPanel(); //and set the layout if not FlowLayout
next problem
class variables
JButton b1,b2,b3,b4,b5;
local variables (to the constructor)
JButton b1 = new JButton("+");
JButton b2 = new JButton("-");
JButton b3 = new JButton("*");
JButton b4 = new JButton("/");
JButton b5 = new JButton("quit");
these will cause you problems in actionPerformed
change them to
b1 = new JButton("+");
b2 = new JButton("-");
b3 = new JButton("*");
b4 = new JButton("/");
b5 = new JButton("quit");
[EDIT] - same for the JTextFields, and the JLabels
[ April 15, 2006: Message edited by: Michael Dunn ]