my goal write visual studio plugin (a vspackage
) java
application. wondering if possible view jpanel
s inside system.windows.forms
instance, or rather microsoft.visualstudio.editor
.
i thinking applet i'm pretty stuck there...
is streaming swing component jpeg , displaying in form applicable idea?
edit:
i appreciate answers more "yes"/"no"/"why this?". made mind working way, ask for:
( ) way of warrior
- load jvm extension (use jvm.dll).
- implement own applet container. appletviewer.
- put applet container inside native form. hard, there ways applet container hwnd (in java swing how win32 window handle (hwnd) reference window?), not sure simple setparent can trick.
- load applet.
( ) way of master
- use npapi/npruntime, browsers do.
- load npjp2.dll java plug-in.
- load applet.
(x) solution adopted was:
- run vs plugin part written in java (like applet) jvm in process (the standard java).
- get
hwnd
usingfindwindow
(win32 api). - use
setparent
(win32 api) ,movewindow
(win32 api), dock window , resize it.
i name "the easiest way", running java in process give more stability, "way works". fear using window process, thread process windows messages in java interfere in visual studio. see, there nothing fear.
:-)
Comments
Post a Comment