Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6234439

Ambigious spec for Frame.setExtendedState()

    Details

    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      sparc
    • OS:
      solaris_2.5, solaris_2.6, solaris_9
    • Verification:
      Not verified

      Description

      The current spec for Frame.setExtendedState() states:

         Note that if the state is not supported on a given platform, nothing will
         happen. The application may determine if a specific state is available via
         the java.awt.Toolkit#isFrameStateSupported(int state) method.

      It's unclear what "nothing will happen" mean - in particular, whether
      the value of the state property (as returned by getExtendedState()) will
      also not change if the particular state is unsupported.

      Also, it seems that the @see link to that Toolkit method is incorrect.

      ###@###.### 2005-03-01 18:13:29 GMT

      Additionally, according to Denis, only the negative result of the Toolkit check
      is 100% correct; if isFrameStateSupported() returns true, the window management
      system may still not support the requested state. This should also be made clear
      in the spec.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anthony Anthony Petrov (Inactive)
                Reporter:
                savzan Stanislav Avzan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: