This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 196108 - Make the close button configurable
Summary: Make the close button configurable
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 15:43 UTC by Ralph Ruijs
Modified: 2011-02-28 15:47 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed patch (2.44 KB, patch)
2011-02-28 15:47 UTC, Ralph Ruijs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2011-02-28 15:43:25 UTC
Currently the MainWindow listens for WindowClosing events and starts the exit procedure as a result. If this was configurable, one could add minimize to tray or kiosk mode to a NetBeans Platform application.
Comment 1 Ralph Ruijs 2011-02-28 15:47:35 UTC
Created attachment 106558 [details]
Proposed patch

This patch adds the system property 'netbeans.winsys.doNothingOnClose' so developers can implement their own behavior for the close button.

As a result, the MainWindow will not always be visible, the dialog displayer needs to check if the main window is visible.