Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package a3ro;
- import java.awt.GraphicsConfiguration;
- import java.awt.GridLayout;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.KeyListener;
- import javax.swing.JFrame;
- public class MainFrame extends JFrame {
- FontShower fs = new FontShower();
- KeyListener ke;
- public MainFrame(){
- init();
- }
- public void init(){
- this.setVisible(true);
- this.setSize(500, 500);
- this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- fs.setFocusable(true);
- this.add(fs);
- }
- public static void main(String [] args){
- new MainFrame();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement