View Java GUI inside .NET Form / Visual Studio editor? -


my goal write visual studio plugin (a vspackage) java application. wondering if possible view jpanels 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:

  • detailed solution achieving goal, or,
  • insights/ideas of approach should be, or,
  • thorough explanation why impossible achieve.

  • ( ) way of warrior

    1. load jvm extension (use jvm.dll).
    2. implement own applet container. appletviewer.
    3. 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.
    4. load applet.

    ( ) way of master

    1. use npapi/npruntime, browsers do.
    2. load npjp2.dll java plug-in.
    3. load applet.

    (x) solution adopted was:

    1. run vs plugin part written in java (like applet) jvm in process (the standard java).
    2. get hwnd using findwindow (win32 api).
    3. 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