----------------------------------
txtTarih1=new JTextField("##.##.####",8);
txtTarih1.select(0,1);
----------------------------------
i want first 2 characters to be selected in JTextField. but it doesnt work even the JTextField is on the screen with its characters in it.

there is no compiling error