zur vorherigen Seite   zum Inhaltsverzeichnis   zur nächsten Seite

Antwort:

Siehe unten.

Die setEditable() Methode

Jede Stelle in dem Konstruktor würde funktionieren.

   public Wiederholer( String titel)      // Konstruktor
   {
      super( titel );
      setLayout( new FlowLayout() );
      outText.setEditable( false );

      add( inLabel  ) ;
      add( inText   ) ;
      add( outLabel ) ;
      add( outText  ) ;

      inText.addActionListener( this );
      setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
   }

FRAGE 14:

Auf was verweist this in der Methode addActionListener?