JAVA help
I'm having some trouble in my java class at school. We are making a calculator program. I have the display and buttons and everything good. The only thing i need help on is getting the numbers up to the text field after i press the button. We arn't worrying about multiplication, addition or anything yet, so i dont think this will be too hard. The numbers just have to appear up in the text field. This is what i have so far.
Code:
import java.applet.*; |
To start out, you're going to need some sort of EventListener to acknowledge when you have cliked a button. I would set that up next.
|
Ok, so I rethought the whole thing and this is what I came up with. Anyone see any problems?
Code:
import java.applet.Applet; |
All times are GMT -6. The time now is 08:36 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.