I don't understand the problem. Swing frames and windows are AWT subclasses, so at least these should be as visible as their AWT counterparts.
Tim Gordon <[EMAIL PROTECTED]> wrote:
Swing components are only drawings (lightweight components). This is done for many reasons, efficiency and pluggable look and feel being some.
The best way I know of to get at Java from Win32 is to use J-Integra (see http://www.linar.com/) to expose Java classes as COM objects, although this will not give you access to the Windows Message API, it'll just provide a path from Win32 (Delphi) to Java code. Delphi has excellent COM support, so this may be of some use.
If you're dead set on hacking the interaction between Win32 and Java using Windows message then you'll only be able to do it using AWT components, since they are heavyweight (ie real Win32 components). I wouldn't recommend this - you stand a good chance of getting unexpected behaviour and maybe even crashing the JVM. The J-Integra route would be a much cleaner solution, although admittedly a bit more work.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Laurent
Sent: 06 March 2001 11:47
To: [EMAIL PROTECTED]
Subject: Windows
Hi,
I am wondering if the swing components contains any window.
I mean, if I run a tool like Spy++ or WinSight32 to get all active window handlers,
it seems that it only detects my AWT components. Not the swing ones.
From a Delphi application, I can send Window Messages to my AWT components,
because I can get the window handler.
Are the Swing components only drawings?
Can I send Window Messages by any mean to them??
Kind regards,
Laurent.
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
