Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-781

Unable to get an initially maximized HostFrame in DesktopApplicationContext due to bug in Java 6 under ubuntu/linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0.3
    • wtk
    • None
    • Ubuntu 11.04 (2.6.38-10-generic), java-6-sun-1.6.0.26

    Description

      When using --maximized=true when starting a desktop application with DesktopApplicationContext.main(class, args) under the environment described. It works under Windows 7.

      Chris Bartlet found out that there is a Java bug for this issue (setExtendedState in DesktopApplicationContext) and suggested a workaround (calling it twice, once before and once after if not already in that state) before Java 7 is established. It seems it will not be fixed for Java 6 by sun (oracle).

      Mail conversation excerpt included below:

      ---8<--------8<-----------8<--------------8<----------8<------------8<------------8<-----------8<-----------
      Java bug 6365898 - fixed in Java 7
      http://download.java.net/jdk7/changes/jdk7-b14.html

      This looks like it should be the right URL, but it is not bringing anything up
      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6365898

      Google has it cached though
      http://www.google.com/search?q=site%3Abugs.sun.com+6365898

      If the workaround is as simple as it seems to be, then I think it
      would be worth including along with a reference to the bug and a TODO
      to remove it once Java 7 is more established, or if Pivot later
      requires Java 7.
      ---8<--------8<-----------8<--------------8<----------8<------------8<------------8<-----------8<-----------

      Attachments

        1. pivot_781.bxml - normal.launch
          1.0 kB
          Sandro Martini
        2. pivot_781.bxml - maximized.launch
          1.0 kB
          Sandro Martini
        3. pivot_781.bxml - full screen.launch
          1.0 kB
          Sandro Martini
        4. pivot_781.bxml.launch
          1.0 kB
          Sandro Martini

        Activity

          People

            smartini Sandro Martini
            dnulnets Tomas Stenlund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: