Re: Dialog event

masukomi <[email protected]> Tue, 24 Aug 2004 18:38:45 -0400
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
You're applying the listener to the wrong thing. You need to apply it 
to the dialog not the swing engine that creates the dialog.

create a JDialog object in your class with an ID that matches the 
dialog in your XML. Then after you've called .render(...) add the 
listener to the JDialog.



-Kate Rhodes
Open source consultant & Java developer
http://www.masukomi.org
On Aug 24, 2004, at 10:52 AM, Háber János wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> I want to create a dialog with the event handler is the creator 
> component.
> example:
>             SwingEngine engine = new SwingEngine(this);
>             engine.setActionListener(loginPanel,this);
>             engine.render(theme_path + "login.xml").setVisible(true);
>
> If I do anything the object actionPerformed is not called. (If I set 
> the
> action listener after render it's run when the dialog is closed)
>
> ohh and the dialog is modal.
>
> anybody can help me?
>
> Cow
> - --
> Háber János             mailto:[email protected]
> ICQ Uin:73963523        http://boci.eminens.hu
>
> Fingerprint: EC31 2ABB 041F DA6C AE7C 6B45 7962 5707 C033 1A33
> Public Key: http://boci.eminens.hu/boci.asc
> Key Identifier: 0xC0331A33
> Key Server: wwwkeys.eu.pgp.net
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iD8DBQFBK1YqeWJXB8AzGjMRApRxAJ9kHh0CTyNKoKweBRUiNNZ+dqF2lQCaAy9F
> yk1yHqU4nBv3IDbxblUUhh0=
> =JnJX
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Forum mailing list
> [email protected]
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>