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

Provide ability to disable top-level windows

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      Applications need to be able to disable top-level windows, so these windows don't receive input events, don't change z-order, etc. Some native platforms also provide visual effects for such windows, e.g. flash windows' titlebar, when a disabled window is clicked.

      On Windows, corresponding native API is ::EnableWindow(HWND, BOOL). On Mac OS X, it can be simulated using -[NSWindow canBecomeKeyWindow:] and -[NSWindow canBecomeMainWindow:].

      AWT/Swing has this API: java.awt.Window.setEnabled(boolean).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            art Artem Ananiev (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Imported: