This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I am having trouble attaching listeners to my gui. Here is my my code for the gui
If you run the program you see I have two text field. one for input and one for the output. I am suppose to take the text in the input field and calc using my calculation class.
Can anyone help. I know I did not explain it well. Just tell me what you need to know
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
calc.addActionListener(new ButtonListener());
but this part doesn't look right Scanner sc = new Scanner(System.in).useDelimiter("\\.*"); ... p.parseExpr(sc);
as you are reading from and outputting to the textfields, perhaps it should be output.setText(p.parseExpr(input.getText());
assuming p.parseExpr(..) returns a String,and you would need suitable error handling for an empty input