6206437: Typo in JInternalFrame setDefaultCloseOperation() doc (WindowClosing --> internalFrameClosing)
authorserb
Wed, 06 May 2015 18:30:31 +0300
changeset 30500 9d40ba747a9a
parent 30499 b98715e1e7e6
child 30501 f094f1587388
child 30916 8d4095a7bf7a
6206437: Typo in JInternalFrame setDefaultCloseOperation() doc (WindowClosing --> internalFrameClosing) Reviewed-by: alexsch, azvegint
jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java
--- a/jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java	Wed May 06 17:31:48 2015 +0300
+++ b/jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java	Wed May 06 18:30:31 2015 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -38,7 +38,6 @@
 
 import java.io.ObjectOutputStream;
 import java.io.IOException;
-import java.lang.StringBuilder;
 import java.beans.PropertyChangeListener;
 import sun.awt.AppContext;
 import sun.swing.SwingUtilities2;
@@ -1654,7 +1653,7 @@
      * <dt><code>DO_NOTHING_ON_CLOSE</code>
      * <dd> Do nothing.
      *      This requires the program to handle the operation
-     *      in the <code>windowClosing</code> method
+     *      in the <code>internalFrameClosing</code> method
      *      of a registered <code>InternalFrameListener</code> object.
      * <dt><code>HIDE_ON_CLOSE</code>
      * <dd> Automatically make the internal frame invisible.