Link to home
Start Free TrialLog in
Avatar of cutjack
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..
Avatar of 91mustang
91mustang

post the problem code please
Avatar of cutjack

ASKER

private void conButActionPerformed(java.awt.event.ActionEvent evt) {
        Connect con = new Connect();
        monitor m = new monitor();                
        m.monFolder();
        con.Responder();      
       
    }
SOLUTION
Avatar of copyPasteGhost
copyPasteGhost
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Really should not be a problem with that code...
What is monFolder()  trying to do?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cutjack

ASKER

monFolder monitors incoming messages to an Inbox
add a print line to that method and see what happens (monFolder)
Ghost
make sure the line is the first line of the method