Results 1 to 3 of 3
Thread: Detecting a lost X connection
- 03-09-2011, 06:21 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
Detecting a lost X connection
Hi,
I am using linux computers and on one computer I am setting my DISPLAY to COMP1 and then starting a Java Gui program on COMP2. The problem is that when I disconnect the network cord or log out of COMP1 the Java program continues running fine on COMP2 without any indication that the display is no longer accessable. This is a problem because that Gui had a "master gui" status and since the process still thinks everything is fine it doesn't give up that "master gui" status so that it can be available for other guis.
Is there some way that I can detect if the connection (I think it might be the X connection) from the java process to the display is no longer available? If I can detect that then I can just have that process exit and free up the "master gui" status.
- 03-09-2011, 06:29 PM #2
Senior Member
- Join Date
- Feb 2011
- Posts
- 118
- Rep Power
- 0
Try using the java.awt.GraphicsEnvironment to query the graphics devices and configurations.
- 03-09-2011, 07:54 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
detecting folder listing
By antiC in forum New To JavaReplies: 1Last Post: 02-17-2011, 12:13 AM -
detecting location of ipaddress
By tej in forum NetworkingReplies: 5Last Post: 05-08-2009, 02:37 PM -
Detecting software installed in PC
By Lukalo in forum Advanced JavaReplies: 3Last Post: 02-13-2009, 03:04 AM -
detecting flooding attack
By prashant in forum NetworkingReplies: 1Last Post: 12-27-2008, 08:44 PM -
Detecting browser with JSP scriptlet
By Java Tip in forum Java TipReplies: 0Last Post: 12-24-2007, 10:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks