Results 1 to 4 of 4
  1. #1
    paranoia25 is offline Member
    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0

    Default Reparent X11 window on a JFrame or a JPanel?

    Hello everyone,

    In order to embed a C/C++ X11 application into another Java application, is it possible to reparent the X11 top level widget in: - a JFrame or a JWindow (catching the X11 window ids of their X11 peers using package sun.awt.x11)? - or a JPanel? I would prefer reparent with a JPanel but I'm not sure it's possible.

    Thanks a lot!

    paranoia25

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Reparent X11 window on a JFrame or a JPanel?

    If I understand what you are trying to do -- perhaps embed a non-Java GUI inside of a Swing GUI, I believe that it would be exceedingly difficult to do, and would require some intricate JNI gymnastics if it were possible at all.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: Reparent X11 window on a JFrame or a JPanel?

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    paranoia25 is offline Member
    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0

    Default Re: Reparent X11 window on a JFrame or a JPanel?

    I know it's possible to reparent a Xwindow on a JFrame. I saw an application which did that.
    But I don't know how it's done. And more important I would like to reparent a xwindow with a JPanel. And I don't know if it's possible.

    PS: About the cross-posting I didn't received any response on stack overflow, this is why I finally post the question answer on the java forum.

Similar Threads

  1. Only one Jframe window will be opened at time
    By Zamioculcas in forum New To Java
    Replies: 4
    Last Post: 05-29-2011, 01:08 PM
  2. Replies: 1
    Last Post: 11-18-2010, 08:17 PM
  3. JFrame(window) not displaying at all
    By mojisolaowoeye in forum AWT / Swing
    Replies: 1
    Last Post: 07-02-2010, 01:03 PM
  4. How do i open JFrame in the same active window
    By Jkiller295 in forum AWT / Swing
    Replies: 35
    Last Post: 06-02-2010, 04:50 PM
  5. Problem resizing JPanel on window resize
    By Nyet in forum AWT / Swing
    Replies: 4
    Last Post: 11-27-2009, 03:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •