|
-
August 23rd, 2009, 07:01 AM
#1
send TextField input to object methods, HELP!
hey,
I'm stuck with a project that I have to deliver in 2 days.
i'll try to explain my problem as good as I can.
my project is about formula 1 system.
so, I have a SysF1 class that contains many methods (i.e. addRace(String raceid)).
now I've been asked to make gui for this program.
so I made a MainFrame window, and Internal Frames for each method (i.e. internal frame called addRace and inside that window I have label with TextField for entering race ID).
now my problem is: how do I send info entered by user in internal frame textField (like race id) to the method addRace(String raceId) in the SysF1 class?
let's say i'm creating in MainClass object like: SysF1 sys=new SysF1();
how I can send info from internal frame's textField to sys.addRace(raceId)?
hope my problem is clear enough...
many thanks for helpers!
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
|
Click Here to Expand Forum to Full Width
|