PMD code sweep, #6 don't add MyWindow twice to MyApplication
[fanfix.git] / README.md
index 1e2b7e9d4f2f1e7abbbf7efe4c9f64a5ceb6dd90..dc976599bf6cffeb4d37a2d48a3d0bc0932d5d77 100644 (file)
--- a/README.md
+++ b/README.md
@@ -73,8 +73,9 @@ class MyApplication extends TApplication {
         addFileMenu();
         addWindowMenu();
 
-        // Add a custom window, see below for its code.
-        addWindow(new MyWindow(this));
+        // Add a custom window, see below for its code.  The TWindow
+        // constructor will add it to this application.
+        new MyWindow(this);
     }
 
     public static void main(String [] args) {