Pivot
  1. Pivot
  2. PIVOT-399

DesktopApplicationContext.setFullScreen(true) issue.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      How can I show a full screen window?

      I wish a window can display as Full Screen Mode when the code

      DesktopApplicationContext.setFullScreen(true);
      window.open(display);

      runs.

      but it always show a normal Window first, then change to full screen mode.

      1. DesktopApplicationContext.java
        32 kB
        Wenguang Liu
      2. DesktopApplicationContext.diff
        13 kB
        Wenguang Liu

        Activity

        Alex XIAO created issue -
        Alex XIAO made changes -
        Field Original Value New Value
        Description How to type codes?

        I wish a window can display as Full Screen Mode when the code

        DesktopApplicationContext.setFullScreen(true);
        window.open(display);

        runs.

        but it always show a normal Window first, then change to maximize size.


        How to type codes?

        I wish a window can display as Full Screen Mode when the code

        DesktopApplicationContext.setFullScreen(true);
        window.open(display);

        runs.

        but it always show a normal Window first, then change to full screen mode.


        Alex XIAO made changes -
        Description How to type codes?

        I wish a window can display as Full Screen Mode when the code

        DesktopApplicationContext.setFullScreen(true);
        window.open(display);

        runs.

        but it always show a normal Window first, then change to full screen mode.


        How can I show a full scream window?

        I wish a window can display as Full Screen Mode when the code

        DesktopApplicationContext.setFullScreen(true);
        window.open(display);

        runs.

        but it always show a normal Window first, then change to full screen mode.


        Hide
        Greg Brown added a comment -

        I'm closing this as it seems more like a question than an issue. I will respond on the user list.

        If there is a related issue, the issue may be re-opend with additional detail about how to reproduce the problem.

        Show
        Greg Brown added a comment - I'm closing this as it seems more like a question than an issue. I will respond on the user list. If there is a related issue, the issue may be re-opend with additional detail about how to reproduce the problem.
        Greg Brown made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Not A Problem [ 8 ]
        Hide
        Greg Brown added a comment -

        This is a valid issue. Even when passing --fullScreen=true to DesktopApplicationContext, the host frame appears briefly before entering full-screen mode.

        Show
        Greg Brown added a comment - This is a valid issue. Even when passing --fullScreen=true to DesktopApplicationContext, the host frame appears briefly before entering full-screen mode.
        Greg Brown made changes -
        Resolution Not A Problem [ 8 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Greg Brown made changes -
        Issue Type Wish [ 5 ] Bug [ 1 ]
        Fix Version/s 1.4.2 [ 12314563 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Description How can I show a full scream window?

        I wish a window can display as Full Screen Mode when the code

        DesktopApplicationContext.setFullScreen(true);
        window.open(display);

        runs.

        but it always show a normal Window first, then change to full screen mode.


        How can I show a full screen window?

        I wish a window can display as Full Screen Mode when the code

        DesktopApplicationContext.setFullScreen(true);
        window.open(display);

        runs.

        but it always show a normal Window first, then change to full screen mode.


        Greg Brown made changes -
        Fix Version/s 1.4.2 [ 12314563 ]
        Sandro Martini made changes -
        Fix Version/s 2.0 [ 12313780 ]
        Hide
        Wenguang Liu added a comment - - edited

        Hello,

        I have managed to solve this bug by allowing to show or hide the whole window (either in full screen mode or in window mode). By default, the window will not appear before calling DesktopApplicationContext.show(); in user's code.

        I am new to this project (and even new to Java). Please forgive me if something is totally wrong in my code...

        Show
        Wenguang Liu added a comment - - edited Hello, I have managed to solve this bug by allowing to show or hide the whole window (either in full screen mode or in window mode). By default, the window will not appear before calling DesktopApplicationContext.show(); in user's code. I am new to this project (and even new to Java). Please forgive me if something is totally wrong in my code...
        Wenguang Liu made changes -
        Attachment DesktopApplicationContext.diff [ 12452277 ]
        Attachment DesktopApplicationContext.java [ 12452276 ]
        Hide
        Greg Brown added a comment -

        Unfortunately, application code can't rely on the existence of a particular application context, so this probably isn't the best solution. But thanks for the submission! You may be onto something, though - maybe another similar approach will work.

        Show
        Greg Brown added a comment - Unfortunately, application code can't rely on the existence of a particular application context, so this probably isn't the best solution. But thanks for the submission! You may be onto something, though - maybe another similar approach will work.
        Wenguang Liu made changes -
        Attachment DesktopApplicationContext.diff [ 12452277 ]
        Wenguang Liu made changes -
        Attachment DesktopApplicationContext.java [ 12452276 ]
        Hide
        Wenguang Liu added a comment -

        I have modified my older submission and I hope this time it's better.

        What's the difference:
        1 - The window will be displayed after the execution of the method startup, so user will have the preferred mode without the flashing window.
        2 - User can show/hide a window (either in fullscreen mode or windowed mode) by calling setVisible(boolean visible), and change its display mode at any time.

        Show
        Wenguang Liu added a comment - I have modified my older submission and I hope this time it's better. What's the difference: 1 - The window will be displayed after the execution of the method startup, so user will have the preferred mode without the flashing window. 2 - User can show/hide a window (either in fullscreen mode or windowed mode) by calling setVisible(boolean visible), and change its display mode at any time.
        Wenguang Liu made changes -
        Attachment DesktopApplicationContext.diff [ 12452287 ]
        Attachment DesktopApplicationContext.java [ 12452288 ]
        Hide
        Greg Brown added a comment -

        I didn't apply this patch specifically, but I did implement a fix based on the same concept. Thanks for your help!

        Show
        Greg Brown added a comment - I didn't apply this patch specifically, but I did implement a fix based on the same concept. Thanks for your help!
        Greg Brown made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        4h 2m 1 Greg Brown 01/Feb/10 13:00
        Closed Closed Reopened Reopened
        1d 23h 57m 1 Greg Brown 03/Feb/10 12:57
        Reopened Reopened Resolved Resolved
        195d 9h 31m 1 Greg Brown 17/Aug/10 23:29

          People

          • Assignee:
            Unassigned
            Reporter:
            Alex XIAO
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development