ähm - was ist so schwer dran:Math55 hat gesagt.:jaja, ich dachte halt, da gibts was einfacheres. wie in perl.
public class Test extends JFrame {
public Test() {
super( "f" );
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
getContentPane().setLayout( new FlowLayout() );
getContentPane().add( new JLabel( "Das Feld: " ) );
JTextField f = new JTextField(20);
getContentPane().add( f );
pack();
}
public static void main(String[] args) {
new Test().setVisible( true );
}
}