Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XLib Library for java ?

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Is there a X-lib library for java ? So that I can talk to the X-server from in my java program ? If so, can anyone give me a link to it or something please ?

thnx a lot

Greetz,
img


NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

"Those who say they understand chess, understand nothing"

-- Robert HUBNER
 
When you say 'X-Server' do you mean the X11 graphics device on Linux/Unix systems ?

If so, Java will talk to any graphics native device if it needs to (using java.awt classes) - but this is generally below the scope of an application programmer . Because Java is meant for platform-independance, there is no standard library for talking to native graphics devices, and if you speciffically need to do so, then maybe Java is the wrong language to be doing it in, and you may be better off with another, more platform specific language ...

There may be one on the web though somewhere ...
 
Thnx for your reply,

yes I mean the X11 on linux,I also know that java uses it, but it does not allow all te functions. e.g. you can not ask the list of all window id's that are displayed on the screen. You can not modify any windows that are not yours either. Wich you can in a c++ program. Guess jni will be my solution.



Greetz,
img


NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

"Those who say they understand chess, understand nothing"

-- Robert HUBNER
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top