How to create a generic popup window class.
Posted on 2001-06-21
I have a Main class called called MainWindow.java i want to create a inheritence class called PopUpWindow.java.This class should be responsible for firing off a small window in the MainWindow for any three conditions.
These conditions are to be in three classes which are inherited from PoPUpWindow.java, they are
ErrorWindow.java- this class should fire off an error message with a simple OK button to ackknowledge
InfoWindow.java - just a simple message with a OK to acknowledge.
EnterText.java - this is a popup which comes up where the user enters text and pressing OK adds it to a menu for example.
I would appreciate detailed answers from the experts on how to create these classes with code, or pointers to web pages which are specific to what i want. I will initially put this up for 100 points.
thanks in advance