[java] Frame

Started by
8 comments, last by Dennis 23 years, 2 months ago
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?
Advertisement
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.
Thanks!
But a window needs an owner; either a frame, dialog, or another window.

Has anyone found a way to have a fullscreen java app with no title bar or border? Like in most full screen games (baldur''s gate ii etc).
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.
This works fine on windows (although sometimes the taskbar pokes through), but it doesn''t work properly under MacOS (pre X) as apples implementation of java does not seem to let you make a window that covers the entire screen. You end with space between the window edges and desktop edges.

Oh well another case of: write once, debug everywhere.
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.
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
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 :)
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

This topic is closed to new replies.

Advertisement