Hello,
I have done a code to handle the moues click event, but unfortunately the code does not work and it is always waiting for the mouse click event.
Here is my code, any advice.
Code:
class myclass {
...
for (i =0 ; I <files.length ; I + +)
{
...
while ( ! Continue ) ; / / Blocks until I response
}
...
private void CreerIHM()
{
...
bnt = new JButton("OK") ;
bnt.setEnabled(false) ;
bnt.addActionListener( new ActionListener()
{
Public void actionPerformed(ActionEvent e)
{
...
Continue = true ;
...
}
}) ;
...
}
Bookmarks