I would upload the testscript, but the forum doesn't allow it. "Error Upload failed. Please ask the administrator to ensure the uploads directory is available".
I will paste it:
CODE
SCRIPT_NAME = "internalFrameListenerTester";
SCRIPT_ON = true;
class BatWindowCloseListener implements InternalFrameListener {
public BatWindowCloseListener() {
clientGUI.printText("generic", SCRIPT_NAME + " CloseListener constructed.\n");
}
public void internalFrameActivated(InternalFrameEvent e) {
clientGUI.printText("generic", SCRIPT_NAME + " window activated.\n");
}
public void internalFrameClosed(InternalFrameEvent e) {
clientGUI.printText("generic", SCRIPT_NAME + " window closed.\n");
}
public void internalFrameClosing(InternalFrameEvent e) {
clientGUI.printText("generic", SCRIPT_NAME + " window closing.\n");
}
public void internalFrameDeiconified(InternalFrameEvent e) { }
public void internalFrameIconified(InternalFrameEvent e) { }
public void internalFrameDeactivated(InternalFrameEvent e) {
clientGUI.printText("generic", SCRIPT_NAME + " window deactivated.\n");
}
public void internalFrameOpened(InternalFrameEvent e) {
clientGUI.printText("generic", SCRIPT_NAME + " window opened.\n");
}
}
void run() {
clientGUI.printText("generic", "Loading: "+ SCRIPT_NAME +"\n");
testWindow = clientGUI.createBatWindow(
"test",
100,100,100,100
);
testWindow.setVisible(true);
testWindow.addInternalFrameListener(new BatWindowCloseListener());
}