aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Bank account gui using composition BankAccount and CPerson with array of 10 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Bank account gui using composition BankAccount and CPerson with array of 10" Watch "Bank account gui using composition BankAccount and CPerson with array of 10" New topic
Author

Bank account gui using composition BankAccount and CPerson with array of 10

chris olejniczak
Greenhorn

Joined: Nov 04, 2012
Posts: 2
here is everything I have so far I don't know how to implement these two classes with the array of 10 and get them into the gui fields properly. If anyone can help I would appreciate it I tried asking my teacher for help and he really didn't give me a straight answer he talked me in circles.







Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1083
    
  10

You have already built the GUI. What happens when you run it? You need to explain a bit more on what you need.

I also see frequent loops being used, but, you then refer to the array items with hardcoded index. In that case, you don't need the loop.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
L Sankaranarayanan
Greenhorn

Joined: Dec 13, 2012
Posts: 11
Two things you should do
STEP1 .You should instantiate an Account object at the beginning as shown below




STEP 2: Change actionListener method as follows




There is another easy way .We can define our business logic in the BankAccount class by writing a method


 
 
subject: Bank account gui using composition BankAccount and CPerson with array of 10