|
-
Nov 28th, 2001, 09:06 PM
#1
Thread Starter
Hyperactive Member
full screen in java
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.
"There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein
If you are programming in Java use www.NetBeans.org
-
Nov 29th, 2001, 04:10 PM
#2
Addicted Member
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
-
Nov 29th, 2001, 06:38 PM
#3
Thread Starter
Hyperactive Member
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?
"There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein
If you are programming in Java use www.NetBeans.org
-
Nov 29th, 2001, 07:08 PM
#4
Dazed Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|