samples/componentinjection/anagram-modular/src-gui/org/apidesign/anagram/gui/Anagrams.java
changeset 219 3fb53f65db57
parent 218 fc45e7b76ee8
child 220 877c6654f10e
     1.1 --- a/samples/componentinjection/anagram-modular/src-gui/org/apidesign/anagram/gui/Anagrams.java	Sat Jun 14 10:06:53 2008 +0200
     1.2 +++ b/samples/componentinjection/anagram-modular/src-gui/org/apidesign/anagram/gui/Anagrams.java	Sat Jun 14 10:06:54 2008 +0200
     1.3 @@ -18,13 +18,19 @@
     1.4      /** Creates new form Anagrams */
     1.5      public Anagrams() {
     1.6          initComponents();        
     1.7 -        initWord();
     1.8          getRootPane().setDefaultButton(guessButton);
     1.9      }
    1.10      
    1.11      protected abstract WordLibrary getWordLibrary();
    1.12      protected abstract Scrambler getScrambler();
    1.13      
    1.14 +    
    1.15 +    @Override
    1.16 +    public void addNotify() {
    1.17 +        super.addNotify();
    1.18 +        initWord();
    1.19 +    }
    1.20 +    
    1.21      /** This method is called from within the constructor to
    1.22       * initialize the form.
    1.23       * WARNING: Do NOT modify this code. The content of this method is