Ticket #19759

Fullscreen mode does not hide taskbar

Open Date: 2009-11-30 20:28 Last Update: 2010-03-06 00:00

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
7
Severity:
5 - Medium
Resolution:
Fixed
File:
None

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
  • Milestone Update from jvm0.4.7 to (None)
2009-12-02 22:20 Updated by: freebeans
  • Owner Update from (None) to freebeans
  • Resolution Update from None to Accepted
2009-12-03 23:50 Updated by: freebeans
  • Resolution Update from Accepted to Works For Me
Comment

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
Comment

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
  • Resolution Update from Works For Me to Duplicate
Comment

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
  • Resolution Update from Duplicate to Accepted
2009-12-27 00:45 Updated by: freebeans
  • Milestone Update from (None) to jvm0.4.8
  • Resolution Update from Accepted to Fixed
Comment

Fixed.

2010-03-06 00:00 Updated by: freebeans
  • Ticket Close date is changed to 2010-03-06 00:00
  • Status Update from Open to Closed

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login