View Single Post
  #13 (permalink)  
Old 04-16-2008, 03:48 PM
i_berbeu i_berbeu is offline
Member
 
Join Date: Apr 2008
Posts: 9
i_berbeu is on a distinguished road
OK!
The application that has the button is already created and i can't modify it. But i saw its code decompiling with an application called JAD.
Then, it has a class named MyActionListener which catch all events and watches which is the event type.
The code of this class is

private class Osejs$MyActionListener
implements ActionListener
{

public void actionPerformed(ActionEvent _evt)
{
String cmd = _evt.getActionCommand();
if(cmd.equals("New"))
{
if(!isEmersionConnected() && isApplet)
{
Args[0] = cmd;
if(htmlWindow != null)
htmlWindow.call("ejsCommand", Args);
}
if(readOnly)
{
JOptionPane.showMessageDialog(Osejs.access$500(Ose js.this), Osejs.access$600().getString("Osejs.ReadOnly.Messa ge"), Osejs.access$600().getString("Osejs.ReadOnly.Title "), 1);
return;



and continuous. So, i need from the other application, to generete an event that this class can capture and treat it
Reply With Quote