Tíquete #19759

Fullscreen mode does not hide taskbar

: 2009-11-30 20:28 Última Atualização: 2010-03-06 00:00

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
7
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum

Details

GraphicsDevice.setFullScreenWindow does not hide the taskbar, which cannot give the application full control on the screen.

According to the following link from Mircosoft: http://msdn.microsoft.com/en-us/library/aa458871.aspx The fullscreen window (no start icon, no taskbar) is supported by Windows Mobile.

Ticket History (3/11 Histories)

2009-11-30 20:28 Updated by: happyhua
  • New Ticket "Fullscreen" created
2009-11-30 20:29 Updated by: happyhua
  • Summary Updated
2009-11-30 20:30 Updated by: happyhua
  • Details Updated
2009-11-30 21:05 Updated by: happyhua
  • Marco Update from jvm0.4.7 to (Nenhum)
2009-12-02 22:20 Updated by: freebeans
  • Dono Update from (Nenhum) to freebeans
  • Resolução Update from Nenhum to Accepted
2009-12-03 23:50 Updated by: freebeans
  • Resolução Update from Accepted to Works For Me
Comentário

I tested fullscreen mode, I think it works correctly:

import java.awt.*;
import java.awt.event.*;

public class FullScreenTest {

    GraphicsDevice device;

    public FullScreenTest(){
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        device = ge.getDefaultScreenDevice();
        GraphicsConfiguration gc = device.getDefaultConfiguration();
            
        try{
            final Frame frame = new Frame(gc);
            frame.setUndecorated(true);
            frame.setSize(100, 100);

            Button button = new Button("Change");
            button.addActionListener(new ActionListener(){
                    public void actionPerformed(ActionEvent e){
                    	Window window = device.getFullScreenWindow();
                        device.setFullScreenWindow((window != null) ? null : frame);
                    }
                });
            MenuBar mb = new MenuBar();
            mb.add(new Menu("Test"));
            frame.setMenuBar(mb);
            frame.add(button);
	    	frame.setVisible(true);
            device.setFullScreenWindow(frame);
        }catch(Exception ex){
        	ex.printStackTrace();
            device.setFullScreenWindow(null);
            System.exit(0);
        }
    }

    public static void main(String[] args){
        FullScreenTest test = new FullScreenTest();
    }
}

Can you post a sample program which can reproduce the problem, please.

2009-12-04 17:46 Updated by: happyhua
Comentário

Thanks, freebeans.

I see now the reason why my fullscreen does not work.

I use the code device.setFullScreenWindow(frame); frame.setVisible(true);

While your code is frame.setVisible(true); device.setFullScreenWindow(frame);

Both work in a Windows XP system, but there is a difference on Windows Mobile system. Anyway, I know how to implement the fullscreen now on Windows Mobile system, thanks again.

2009-12-04 22:08 Updated by: freebeans
  • Resolução Update from Works For Me to Duplicate
Comentário

Thank you.

Now I understood what is a problem. I think this is a bug of Mysaifu JVM. I'll fix it in the future release.
2009-12-08 09:37 Updated by: freebeans
  • Resolução Update from Duplicate to Accepted
2009-12-27 00:45 Updated by: freebeans
  • Marco Update from (Nenhum) to jvm0.4.8
  • Resolução Update from Accepted to Fixed
Comentário

Fixed.

2010-03-06 00:00 Updated by: freebeans
  • Ticket Close date is changed to 2010-03-06 00:00
  • Estado Update from Aberto to Fechado

Attachment File List

No attachments

Editar

Please login to add comment to this ticket » Login