Re: Fullscreen Display

Hi,

to get a fullscreen view of a VisAD application try the following attempt:

-- snipp --
    ...
    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension d = tk.getScreenSize();
    JFame f = new JFrame( "title" );

    f.setUndecorated( true );  /* Hide menu bars and border */

    f.getContentPane().add( display.getComponent() );
    f.pack();
    f.setSize( d );
    f.setVisible( true );
    ...
-- snap ---

Another attemp is described on
http://www.j3d.org/faq/running.html#fullscreen.
It's using the Window object which got innately no menu bars and border but
this attempt got a major performance lag on SGI/Irix in combination with
VisAD (or Java3D... I'am not sure if it's Java3D or VisAD issue). On a
Windows OS this attempt works fine too - or my computer is fast enough. :-)
If you got a JFrame anyway, you should try first the JFrame method
setUndecorated(true).

Hope that will help.

Reagard,
Finn



  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: