JDK-5109681 : JDialog.setDefaultCloseOperation() needs to better document its arguments
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-09-30
  • Updated: 2017-05-16
  • Resolved: 2005-08-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b48Fixed
Description
The JavaDoc for JFrame.setDefaultCloseOperation() mentions where its arguments are defined (WindowConstants & JFrame).  The same is not true for JDialog, but should be, otherwise developers must go hunting around for it.

Comments
EVALUATION javax.swing.JDialog api needs clarification. ###@###.### 10/22/04 19:03 GMT ###@###.### 10/22/04 19:11 GMT Agreed. I'll clarify the documentation. Additionally, I'm making a change such that the property is now bound (firing a property change) and the value is checked for validity - if not it will throw an IllegalArgumentException. ###@###.### 2005-07-21 21:51:02 GMT
2004-10-22