Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Compiling Problem (http://www.go4expert.com/forums/compiling-problem-t7670/)

nivek 2Dec2007 20:39

Compiling Problem
 
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:

http://img119.imageshack.us/img119/5972/errorqd5.jpg

Thanks!

nivek 3Dec2007 00:09

Re: Compiling Problem
 
Someone??


All times are GMT +5.5. The time now is 04:58.