cutjack
asked on
trying to access 2 classes with the one JButton
I'm creating GUI's using java and trying to call 2 separate classes using the one JButton, but the last class i instantiate in the JButton code is the only one the runs,
Is there any way to run the 2 classes with the one JButton Action..
Is there any way to run the 2 classes with the one JButton Action..
post the problem code please
ASKER
private void conButActionPerformed(java .awt.event .ActionEve nt evt) {
Connect con = new Connect();
monitor m = new monitor();
m.monFolder();
con.Responder();
}
Connect con = new Connect();
monitor m = new monitor();
m.monFolder();
con.Responder();
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Really should not be a problem with that code...
What is monFolder() trying to do?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
monFolder monitors incoming messages to an Inbox
add a print line to that method and see what happens (monFolder)
Ghost
Ghost
make sure the line is the first line of the method