Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java Language
Expertise: Beginner
Jul 27, 1998

Java and Dual Monitor Unix Workstations

Question:
I have a question regarding use of dual monitor Unix workstations to display Java screens. Specifically, can I display the mainscreen on one monitor and the popup on another monitor?

Answer:
Within a Java application you cannot make windows appear on multiple screens without writing platform-specific native code. From the command line on a Unix system running the X Window system, you can make your Java application appear on a different screen by setting your DISPLAY environment variable to reference the appropriate screen. Your first screen should be hostname:0.0, your second should be hostname:0.1, and so on.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date