DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 6 of 6

Thread: Bank Program

  1. #1
    Join Date
    Jun 2003
    Posts
    3

    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?

  2. #2
    Join Date
    Mar 2003
    Posts
    834

    Unhappy

    Have you done *any* graphics programming before?
    ArchAngel.
    O:-)

  3. #3
    Join Date
    Jun 2003
    Posts
    3
    no but i have the gui interface done, ArchAngel are u a DR member?

  4. #4
    Join Date
    Mar 2003
    Posts
    834
    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:-)

  5. #5
    Join Date
    Jun 2003
    Posts
    3
    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?

  6. #6
    Join Date
    Mar 2003
    Posts
    834
    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:-)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links