Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] Frame

Started by Dennis Jan 26, 2001 at 7:40 AM 8 replies 800+ views
Original Post
Dennis
Dennis
Is it possible to create a frame (AWT) without a border? I mean a frame with no title bar, system menu, minimize and maximize buttons?
Jim_Ross
Jim_Ross
no.


but you can make a java.awt.Window which is essentialy a frame without a frame (border, title, buttons) around it. You can use these for splash screens and whatnot.
Dennis
Dennis
Thanks!
JasonB
JasonB
You create a non visible frame which is passed to the constructor of the Window. Then resize the window to take up the whole screen.
JasonB
JasonB
I know what you mean regarding Macs. I used to have a nightmare of a time (a couple of years ago), when I was doing some applet work, going from IE to Netscape - getting both of those working on a PC, and then going to a Mac where the whole thing would break again.
GKW
GKW
quote:
Original post by Anonymous Poster

This works fine on windows (although sometimes the taskbar pokes through),


getFocus() usually gets rid of the taskbar.

The fanatic is incorruptible: if he kills for an idea, he can just as well get himself killed for one; in either case, tyrant or martyr, he is a monster.
--EM Cioran

Opere Citato
"... we should have such an empire for liberty as she has never surveyed since the creation ..."Thomas Jefferson
thuned
thuned
yeah, i''m interested in this full screen java thing too. so a window w/ a non-visible parent would make it full screen. how about resolution? if the user has a diff res than 640x480, is there a way? or can a seperate program change it, launch the java app, then change back when done?
life is unfair, take advantage of it.UNMB2 - if the link doesn't work, try clicking it :)
GKW
GKW
Supposedly JRE 1.4 will let you change resolutions when you have a fullscreen window but I don''t know how to do it right now and in a month or so it won''t matter anyway. Hopefully.

The fanatic is incorruptible: if he kills for an idea, he can just as well get himself killed for one; in either case, tyrant or martyr, he is a monster.
--EM Cioran

Opere Citato
"... we should have such an empire for liberty as she has never surveyed since the creation ..."Thomas Jefferson

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.