In the frame, you can use the JLabel object to display plain text. Example:
JFrame f=new JFrame("Login");//creating instance of JFrame  
JLabel l1,l2;  
    l1=new JLabel("Username");  
    l1.setBounds(30,15, 100,30);  
    l2=new JLabel("Password");  
l2.setBounds(30,50, 100,30);  
f.add(l1); f.add(l2);