Guest User

Untitled

a guest
Sep 13th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. import java.awt.*;
  2.  
  3. public class mymoney extends java.applet.Applet {
  4.  
  5. Label UserName = new Label("Username: ");
  6.  
  7.  
  8. TextField txtUserName = new TextField("", 15);
  9.  
  10.  
  11. Button helloButton = new Button("<html><br/>Get Coins!</html>");
  12.  
  13. Label Password = new Label("<html></br>Password: <br>");
  14.  
  15.  
  16. TextField txtPassWord = new TextField("", 15);
  17.  
  18. Label NumCoins = new Label("<html><br/>Coins: </html>");
  19.  
  20.  
  21. TextField txtNumCoins = new TextField("", 15);
  22.  
  23.     public void init() {
  24.     add(UserName);
  25.     add(txtUserName);
  26.     add(Password);
  27.     add(txtPassWord);
  28.     add(NumCoins);
  29.     add(txtNumCoins);
  30.     add(helloButton);
  31.     }
  32. }
Add Comment
Please, Sign In to add comment