Click to See Complete Forum and Search --> : full screen in java
CaptainPinko
Nov 28th, 2001, 08:06 PM
how would i take over the whole screen in Java? like so that i could paint on every pixel, for a like a game or something like that where i don't want a window.
Cudabean
Nov 29th, 2001, 03:10 PM
I don't know.
I can say, however, that most likely whatever solution you try will not be platform independent.
However, if you were to write an applet, you probably would be able to get close to what you want by doing the following:
1. Write an applet
2. Write the HTML to display the applet. Specify the size of the applet to be the screen resolution you want to display.
3. Make sure the computer is set to the same screen resolution
4. Bring up browser and set it to the HTML in step two. You should now see the running applet.
5. Shift the browser to full-screen mode.
Of course the drawbacks to the above method are:
1. The end user has to perform steps 3-5
2. Applets can't do quite as much as Java applications due to security constraints.
Cudabean
CaptainPinko
Nov 29th, 2001, 05:38 PM
an idea i had was adding a JPanel to a JFrame and overidign the paint method of the JPanel (by subclassing it) and then maximizing the JFrame, that isn't truly full screen... but close. any ideas\comments anyone?
Dillinger4
Nov 29th, 2001, 06:08 PM
I guess that would be the same as adding a Canvas component
to a frame and setting the JFrame size to the size of the screen.
Some reason when i think of fuul screen mode nothing in Java comes to mind to acomplish this task. It sounds more of like a Windows API call or an Assembly interupt( to set the Video mode)
Ill see if i can find out. You should try asking in the Game forum, maybe they might know.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.