• Post Reply Bookmark Topic Watch Topic
  • New Topic

Embedding X application  RSS feed

 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i want to invoke certain X application from a java program.
when i did using runtime.exec(), but this application appears to
be stand alone..
help me how to embed the X application into java programs..
expecting ur response...
regards,
stp
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "JAWT" AWT Native interface is a semi-standard part of Sun's own JVMs that lets you get ahold of native window handles, and you may therefore be able to use it to do what you want. Here's a nice article on JAWT, and here's Sun's own documentation.
 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for response..
Actually I want to invoke KDE applications such as Kwrite,etc.,
under linux in Java...This application to be embedded within my
java program...

waiting for response..
thanks and regards,
stp
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummmm, yeah. So you get the native window handle, and you get the KDE application's window handle, and (I believe!) you can make the application's window a child of the JAWT window. It's tense stuff, and you'd have to know a lot about X, but it's doable.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!