File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Math code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Math code" Watch "Math code" New topic
Author

Math code

Mike Meakin
Ranch Hand

Joined: Dec 30, 2004
Posts: 88
Hi, I just need a quick piece of code, When frame3 appears there is a simple math question of 100 + 100 =. what I need is coding for Jbutton1 (submit answer) so that you can only move onto frame4 if the obvious answer of 200 is enterd into jTextField1. Heres the existing code it needs to fit into:


Richard Anderson
Ranch Hand

Joined: May 20, 2005
Posts: 61
Is this a homework assignment? How about posting some attempted solutions that you tried and we'll provide feedback.


-Rich, SCJP 1.4
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Have you read The Swing Tutorial?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Math code
 
Similar Threads
Errors in Frame
Problem with JTextField
Mortgage Calculator -In Frames
JLabel1.setText error
Trying to get this button to work