Compiling Problem

Discussion in 'Java' started by nivek, Dec 2, 2007.

  1. nivek

    nivek New Member

    Joined:
    Dec 2, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi, I am trying to compile this clases:


    Code:
    import java.util.ArrayList;
    import java.awt.*;
    
    class Test {
    	public static void main(String[] args){
    		System.out.println("Prueba");
    		MyWindow win1 = new MyWindow ("ventana");
    	}
    }
    
    Code:
    
    import java.awt.*;
    import java.awt.event.*;
    class MyWindow extends Frame implements WindowListener {
    	public MyWindow () {
    		super();
    		}
    	public MyWindow (String title) {
    		super(title);
    		setSize(500,500);
    		addWindowListener(this);
    	}
    	public void windowActivated (WindowEvent e) {;}
    	public void windowClosed (WindowEvent e) {;}
    	public void windowClosing (WindowEvent e) {;System.exit(0);}
    	public void windowDeactivated (WindowEvent e) {;}
    	public void windowDeiconified (WindowEvent e) {;}
    	public void windowIconified (WindowEvent e) {;}
    	public void windowOpened (WindowEvent e) {;}
    }
    
    
    This is the error:

    [​IMG]

    Thanks!
     
  2. nivek

    nivek New Member

    Joined:
    Dec 2, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Someone??
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice