Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package week03gui;
- /**
- *
- * @author na8363c
- */
- import java.awt.FlowLayout;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.KeyEvent;
- import java.awt.event.KeyListener;
- import javax.swing.JFrame;
- import javax.swing.JPanel;
- public class Week03GUI extends JFrame implements ActionListener, KeyListener {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Week03GUI prg = new Week03GUI();
- JPanel wndw = new JPanel(new FlowLayout());
- }
- public Week03GUI() {
- model();
- view();
- controller();
- }
- @Override
- public void actionPerformed(ActionEvent e) {
- System.out.println("${method_name} not coded yet."); //To change body of generated methods, choose Tools | Templates.
- }
- @Override
- public void keyTyped(KeyEvent e) {
- System.out.println("${method_name} not coded yet."); //To change body of generated methods, choose Tools | Templates.
- }
- @Override
- public void keyPressed(KeyEvent e) {
- System.out.println("${method_name} not coded yet."); //To change body of generated methods, choose Tools | Templates.
- }
- @Override
- public void keyReleased(KeyEvent e) {
- System.out.println("${method_name} not coded yet."); //To change body of generated methods, choose Tools | Templates.
- }
- private void model() {
- System.out.println("${method_name} not coded yet."); //To change body of generated methods, choose Tools | Templates.
- }
- private void view() {
- System.out.println("${method_name} not coded yet."); //To change body of generated methods, choose Tools | Templates.
- }
- private void controller() {
- System.out.println("${method_name} not coded yet.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement