Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package a3ro;
  2.  
  3. import java.awt.GraphicsConfiguration;
  4.  
  5. import java.awt.GridLayout;
  6.  
  7. import java.awt.event.ActionEvent;
  8. import java.awt.event.ActionListener;
  9.  
  10. import java.awt.event.KeyListener;
  11.  
  12. import javax.swing.JFrame;
  13.  
  14. public class MainFrame extends JFrame {
  15. FontShower fs = new FontShower();
  16. KeyListener ke;
  17.  
  18. public MainFrame(){
  19. init();
  20. }
  21.  
  22. public void init(){
  23. this.setVisible(true);
  24. this.setSize(500, 500);
  25. this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  26. fs.setFocusable(true);
  27. this.add(fs);
  28.  
  29. }
  30.  
  31. public static void main(String [] args){
  32. new MainFrame();
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement