Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Java Client Window

Java Client Window

Scheduled Pinned Locked Moved C / C++ / MFC
c++javahelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Justin Hallet
    wrote on last edited by
    #1

    Hi All, I have a simple yet complex problem, has anyone tried or does anyone know how to create a child window that is a java window? My idea is this:- Using JNI start java VM create top level java class (window), passing View HWND in java (window) create Frame with HWND as parent What I mean by this is a java application/class runs inside a MFC application like so:

    .......MFC Main Frame...............
    . ......MFC View.................. .
    . . ......Java Swing Window..... . .
    . . . . . .
    . . . . . .
    . . . . . .
    . . . . . .
    . . ............................ . .
    . . . .
    . ................................ .
    . .
    ....................................

    Thanx in advance...

    S 1 Reply Last reply
    0
    • J Justin Hallet

      Hi All, I have a simple yet complex problem, has anyone tried or does anyone know how to create a child window that is a java window? My idea is this:- Using JNI start java VM create top level java class (window), passing View HWND in java (window) create Frame with HWND as parent What I mean by this is a java application/class runs inside a MFC application like so:

      .......MFC Main Frame...............
      . ......MFC View.................. .
      . . ......Java Swing Window..... . .
      . . . . . .
      . . . . . .
      . . . . . .
      . . . . . .
      . . ............................ . .
      . . . .
      . ................................ .
      . .
      ....................................

      Thanx in advance...

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      The best integration for Java in a WIN32 window application is through applet context. Thus I would reuse the chtmlview and put an html page there with the right applet tag.


      Back to real work : D-22.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups