hi frnds,
I m new in swing programming, frnds i wrote a sample progam which is shown below.. it shows me the frame but inside that i m not able to view the two jtextfileds and the button...
its two imp for me now.. could u plz help the and tell me where i m wrong...
plz reply me asap...
public class CopyFilesUI extends JFrame{
private JTextField sourceFile = new JTextField ("Source file name");
private JTextField destinationFile = new JTextField ("Destination file name");
private JButton button = new JButton ("Backup");
public CopyFilesUI ()
{
this.getContentPane().setLayout(null);
sourceFile.setBounds( 50 , 50 , 50 , 50);
sourceFile.setVisible(true);
destinationFile.setBounds(150 , 150 , 50 , 50);
sourceFile.setVisible(true);
button.setBounds(250 , 250 , 250 , 250);
sourceFile.setVisible(true);
this.setTitle("Copy files");
this.setVisible(true);
this.setBounds(0 , 0 , 700 , 700);
this.set
}
public static void main(
String[] args) {
CopyFilesUI copyFiles = new CopyFilesUI ();
copyFiles.setEnabled(true);
}
}
thanx for ur co-opearation..