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.diff
        13 kB
        Wenguang Liu
      2. DesktopApplicationContext.java
        32 kB
        Wenguang Liu

        Activity

        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.
        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.
        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...
        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.
        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.
        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!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development