my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes How to get window handle in Swing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to get window handle in Swing?" Watch "How to get window handle in Swing?" New topic
Author

How to get window handle in Swing?

Andrzej Borucki
Ranch Hand

Joined: Aug 24, 2013
Posts: 49
I want write JNI dll where will called CreateWindow with parent
Probably Swing controls don't have any handles, but JFrame must have.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

Not publicly available. However, for what you want to do you probably don't to use any JNI code. You can just use a JDialog, that should give you the same functionality.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Andrzej Borucki
Ranch Hand

Joined: Aug 24, 2013
Posts: 49
I want create Scintilla component. Scintila for Java - Jintilla, uses SWT. For this is only SWT enabled?
 
Don't get me started about those stupid light bulbs.
 
subject: How to get window handle in Swing?
 
Similar Threads
can I use JFC Swing?
Passed 87%, some thoughts....
Session handling, web vs swing
Handle Resizing of Containers
Clarification --> Import statement