Aminpro

Item Boxes etc.

Jan 1st, 2014
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. import java.awt.FlowLayout;
  2. import java.awt.event.ActionListener;
  3. import java.awt.event.ActionEvent;
  4. import javax.swing.JFrame;
  5. import javax.swing.JTextField;
  6. import javax.swing.JPasswordField;
  7. import javax.swing.JOptionPane;
  8.  
  9. public class tuna extends JFrame{
  10.  
  11.     private JTextField item1;
  12.     private JTextField item2;
  13.     private JTextField item3;
  14.     private JPasswordField passwordBox;
  15.    
  16.     public tuna(){
  17.        
  18.         super("Aminpro's");
  19.         setLayout(new FlowLayout());
  20.        
  21.         item1 = new JTextField(10);
  22.         add(item1);
  23.        
  24.         item2 = new JTextField("Please enter here");
  25.         add(item2);
  26.        
  27.         item3 = new JTextField("Uneditable", 20);
  28.         item3.setEditable(false);
  29.         add(item3);
  30.        
  31.         passwordBox = new JPasswordField("Password");
  32.         add(passwordBox);
  33.        
  34.     }
  35.    
  36.    
  37. }
Advertisement
Add Comment
Please, Sign In to add comment