Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (789)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
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 2771 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

Offline trembovetski

Senior Devvie

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 Devvie

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 Devvie

Thick As A Brick

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

is "ducking" a brand of docking?

Offline trembovetski

Senior Devvie

If only I knew what I'm talking about!

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

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  

hadezbladez (2606 views)
2018-11-16 13:46:03

hadezbladez (932 views)
2018-11-16 13:41:33

hadezbladez (2560 views)
2018-11-16 13:35:35

hadezbladez (502 views)
2018-11-16 13:32:03

EgonOlsen (3679 views)
2018-06-10 19:43:48

EgonOlsen (4032 views)
2018-06-10 19:43:44

EgonOlsen (2443 views)
2018-06-10 19:43:20

DesertCoockie (3249 views)
2018-05-13 18:23:11

nelsongames (3295 views)
2018-04-24 18:15:36

nelsongames (4266 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
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!