My goal is to write a Visual Studio plugin (a VSPackage
) for my Java
application. I was wondering if it was possible to view some JPanel
s inside a System.Windows.Forms
instance, or rather as an Microsoft.VisualStudio.Editor
.
I was thinking an applet but I'm pretty much stuck there...
Is streaming a Swing component as JPEG and displaying it in a Form an applicable idea?
EDIT:
I would really appreciate answers that are more then a "yes"/"no"/"why would you do this?". I made my mind about working this way, so I ask for:
HWND
using FindWindow
(Win32 API).SetParent
(Win32 API) and MoveWindow
(Win32 API), to dock the window and resize it.I could name it the "the easiest way", but running Java in another process will give you more stability, so this is the "way that works". My only fear about using a window from another process, was the thread that process Windows messages in Java could interfere in Visual Studio. But from what I see, there is nothing to fear.
:-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With