hi i am a beginner in java language...the below program has should close the window created but it is just minimising,and maximasing the window i am using Edit+ v3.12

import java.awt.*;
import java.awt.Label;
import java.awt.AWTEvent;
import java.awt.event.WindowEvent;

public class HowdyByeWindow extends Frame  
{
	public static void main(String args[])
	{
	 new HowdyByeWindow();
    }
HowdyByeWindow() 
	{
	Label label;
	label=new Label("Howdy!");
	add(label);
	pack();
	show();
	}
public void processWindowEvent(WindowEvent event)
	{
	if(event.getID()== WindowEvent.WINDOW_CLOSING)
	   System.exit(0);
	}

}
commented: thread hijacker, no code tags, zombie master -2