Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

set Display from java

Thread view: 
rdeman@gmail.com - 25 Mar 2006 00:28 GMT
Hello,

Is there a way, from a same JVM, to connect to several X11 displays.
I'd like to develop a kind of deamon in java that is executed once on a
Unix server (from an admin account). This daemon would provide services
at socket level to other programs, written in a different language
(Perl, C++, ...) running on the same server but from different users
(remotely logged in through an X emulation session with different
accounts). Some of those services need to open a UI (writtent in awt or
swing). So this daemon would have to open windows on several displays
(provided by the client program when connecting to the daemon).
So my question is :
1/ is this possible ?
2/ how can I do that ?

Thank you in advance
Rodolphe

I've found an open bug openned on SND
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4670851) but it is
still in progress ...
Knute Johnson - 25 Mar 2006 17:37 GMT
> Hello,
>
[quoted text clipped - 17 lines]
> (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4670851) but it is
> still in progress ...

Have you tried using GraphicsConfiguration?  I've not done multiple
screens in Linux but it works fine in Windows.

Signature

Knute Johnson
email s/nospam/knute/

rdeman@gmail.com - 26 Mar 2006 18:35 GMT
I haven't found a way to set the do this in any of the following
classes: GraphicConfiguration, GraphicDevice nor GraphicEnvironnement.
I would expect a function like XOpenDisplay.

Rodolphe
Thomas Weidenfeller - 27 Mar 2006 08:34 GMT
> Hello,
>
> Is there a way, from a same JVM, to connect to several X11 displays.

It is only three years ago that someone has asked this :-)

http://groups.google.de/group/comp.lang.java.gui/msg/dc3e57c221ae1a50

I don't think the situation has changed. You can't do it in a simple
way. I think it is possible with a lot of senseless hacking. E.g. there
are X11 toolkits implemented in pure Java (e.g.
http://escher.sourceforge.net/). But this is raw X11. There is a lot to
do to implement a GUI with raw X11. You would have to implement some
kind of toolkit on top of it. Otherwise you will get mad.

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

rdeman@gmail.com - 27 Mar 2006 14:56 GMT
Hello Thomas,

I have tested escher and it solves my problem (just to switch from one
display to another within the same JVM) !!
I am just a bit afraid because of the release number : 0.2.2 (Jun
2004).

Anyway, thank you very much for the information

Rodolphe
Thomas Weidenfeller - 27 Mar 2006 15:03 GMT
> I am just a bit afraid because of the release number : 0.2.2 (Jun
> 2004).

Well, you have the source code, you can fix it if it is broken :-)

Seriously, FOS software like to come with that kind of understatement.
Until it is not close to perfection in the eye of the original author,
FOS software often doesn't get a 1.x or greater version number.

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.