>But I would like to use buttons for the entry digits but have no idea
>how to get the info from the buttons to the evaluatorso it can
>calculate the result
Each button needs an event handler that takes the digit and append it
to the display field value, and redisplays that result.
You might write a program to write the source code for a program in a
pedestrian way, or use an ARRAY of button objects, and generic code to
place the buttons and a common action handler.
For example, take the button number and use the / or % operator to
determine the row/column where it fits.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.