Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Multiple Monitor Screens  (Read 1321 times)
0 Members and 1 Guest are viewing this topic.
Offline jayhg99

Senior Newbie




Java games rock!


« Posted 2003-03-25 16:06:57 »

Does anyone know how to make a Swing application to utilize two monitor screens ? I have a laptop which is hooked up with a monitor via ducking stage. But I do not know why the following code could not recognize the existence of the two monitor screens:

GraphicsEnvironment ge =GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
System.out.println("Number of Monitors: "+gs.length);


Number of Monitors: 1


Jay
Offline trembovetski

Senior Member




If only I knew what I'm talking about!


« Reply #1 - Posted 2003-03-26 04:28:28 »

How your monitors are configured? Are they mirrored (show the same picture), or is it just one big virtual screen, such that you can drag windows from one screen to another?

We do have support for multiscreen as of 1.3, I believe, and you seem to be using the correct API to work with it. But I don't think we tested this specific configuration.

What is your OS, video-board, notebook model?
Which jdk version are you using?

Some videoboards with dual-output ports can "fake" the system into thinking that it has only one big screen, so there's no way for any application to find our that it actually has two physical screens. May be your configuration falls into this category somehow.
Offline mill

Junior Member




popcorn freak


« Reply #2 - Posted 2003-03-26 11:29:43 »

trembovetski is probably correct. java doesn't recognize "non-real" monitors, such as TV-OUT. I did a quick test with

a) one monitor hooked up
b) one monitor + one TV
c) one monitor + two TVs.

java only recognized one monitor, which it should. sorry don't have another monitor here att the moment so i can't test more configs.

what is "ducking stage"? are you sure your second monitor qualifies as a monitor (well, you know what i mean)?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jayhg99

Senior Newbie




Java games rock!


« Reply #3 - Posted 2003-03-26 16:32:16 »

Thanks guys.  I use a laptop which is Compaq Evo N600C running NT 4.0. The laptop is connected to an external monitor via a ducking station (sorry, not ducking stage).  A ducking station is a device which  combines all the external connections to a laptop into one. The external monitor is set as primary and the laptop monitor is set as  second.  I do not know what is video board model. I assume that the two monitors are mirrored.    

I’m using jdk1.4  as I understand that starting from jdk1.3 the multiple monitor screens are supported.
Offline zparticle

Senior Member




Thick As A Brick


« Reply #4 - Posted 2003-03-26 17:38:35 »

is "ducking" a brand of docking?

Offline trembovetski

Senior Member




If only I knew what I'm talking about!


« Reply #5 - Posted 2003-03-27 04:23:20 »

Aha!
WindowsNT4.0 doesn't natively support multiscreen, that is, the native windows multiscreen APIs are inexistent on this platform.

Java can do only as good as the underlying platform allows, so as far as Java is concerned, there's only one screen.  

Now, some video board manifacturers do have drivers that sort of implement multiscreen on NT, but all applications will be unaware that there is actually more than one screen, unless they use some private APIs provided by the specific video driver.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (16 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (34 views)
2014-08-16 06:45:27

Tekkerue (32 views)
2014-08-16 06:22:17

Tekkerue (20 views)
2014-08-16 06:20:21

Tekkerue (31 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (44 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!