Hi,
I like to call call the "actionPerformed" of the button a FileMaker script in the following code
This does not work!
What am I doing wrong?
Thanks for your help
CODE:
import javax.swing.*;
import java.awt.event.*;
new FensterWegImplementsAll();
class FensterWegImplementsAll extends JFrame implements WindowListener, ActionListener
{
public FensterWegImplementsAll()
{
setLayout(null);
setSize( 400, 400 );
addWindowListener( this );
setVisible( true );
JButton btn_1 = new JButton("TOC");
btn_1.setBounds(10,10,100,25);
btn_1.addActionListener(this);
add(btn_1);
}
public void windowClosing( WindowEvent event ) {
dispose();
}
public void windowClosed( WindowEvent event ) {}
public void windowDeiconified( WindowEvent event ) {}
public void windowIconified( WindowEvent event ) {}
public void windowActivated( WindowEvent event ) {}
public void windowDeactivated( WindowEvent event ) {}
public void windowOpened( WindowEvent event ) {}
public void actionPerformed(ActionEvent event)
{
fmpro.performScript("ScriptMaster","TOC","");
}
}