From: Virgil W. <vir...@ra...> - 2000-03-17 03:24:38
|
> > Is there anybody outhere, > who wants the full screen support ? > > If so, how do you think we should support this > platform independed ? There's a cheap way to almost get what looks like fullscreen support. You do something like this: import java.applet.*; import java.awt.*; import java.awt.event.*; public class FullScreen { public static void main(String[] args) { final Applet a = new gears(); /*from ronsdemos*/ final Window w = new Window(new Frame()); w.setLayout(new BorderLayout()); w.add("Center",a); a.init(); a.start(); Toolkit tk = Toolkit.getDefaultToolkit(); Dimension screensize = tk.getScreenSize(); w.setBounds(0,0,screensize.width,screensize.height); w.setVisible(true); } } In short, you create a window to hold your canvas (or whatever component you like). Window's don't have borders like frames do, so this almost looks full screen.... (You (Sven) mentioned this in an earlier email I believe.) Everything is cool except of course for that nasty taskbar on windows. (Durn it!) Also, this isn't _really_ full screen mode as an owner of a voodoo2 card will attest. I guess there might be some trick under windows using jview to get the handle to the desktop, treat it as a container and add the canvas to it. This still wouldn't be real fullscreen mode, but at least the taskbar would be hidden under windows. Users would be forced to use jview as well (cough). As for linux, I'm not sure if anyone would actually care about fullscreen mode in the first place. As everyone might have guessed, I'm trying to use gl4java for "user interactive" purposes. Of course games and such work fine in windows, but fullscreen mode is so much more emersive (if you don't believe me, play unreal tournament fullscreen and then in a window)... Shoot, in fact if your using windows set your taskbar to "autohide" and run the gears demo using the above sample code. Then run it in appletviewer or just a frame (and maximize the frame).... Gosh what a psychological different in presentation (IMHO). That's all I'll bug everyone with regarding the fullscreen issue:) If I have to, I can live in a window. I just think it'd be really cool to be able to do fullscreen opengl development in java. Virgil Wall > > Only one GL[Anim]Canvas without any other java awt/swing stuff ? > I do not now, how it could be managed with the awt/swing stuff, > because we can just create a new screen-window for the GL-context, > not other java windows ... ? > > Yours sincerly, Sven > -- > mailto:sgo...@ja... > www : http://www.jausoft.com > voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 > > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/mailman/listinfo/gl4java-usergroup > |