-
Bank Program
hi i am studying java at college and have been asked to create a bank program in java, it has to have a gui interface the same as a cashline machine, so how do i assgn values to each button i.e. 1,2,3,4,5,6,7,8,9,0,cancel, proceed etc. can anyone help?
-
Have you done *any* graphics programming before?
ArchAngel.
O:-)
-
no but i have the gui interface done, ArchAngel are u a DR member?
-
DR member? I've no idea was DR is!
If you've got the GUI done, then what do you mean "assign values to each button"? Are you asking how you associate logic with each button? Are you asking what strategy we would suggest?
ArchAngel.
O:-)
-
no, what i mean is when a button is clicked how do i display its value into a text box but without over writing whats already in the text box?
-
Add an actionListener to each button (or be clever and get them to share). Then add handling code something like:
Code:
myTextBox.setText(myTextBox.getText() + keyValue);
ArchAngel.
O:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks