Button1_actionPerformed(ActionEvevnt e) { jTextField1.setText("BlaBla"); jTextField2.setText(jTextField1.getText()); }
JButton myButton = new JButton();myButton.addActionListener( new ActionListener()public void actionPerformed( ActionEvent ae ) { String tf1Msg = textFieldOne.getText(); //Und hier der spannende debug Teil ;-) System.out.println( "textFieldOneMessage: " + tf1Msg ); textFieldTwo.setText( tf1Msg );})};