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);
	}

}
jwenting commented: thread hijacker, no code tags, zombie master -2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.