Solved

How to create a generic popup window class.

Posted on 2001-06-21
2
346 Views
Last Modified: 2006-11-17
Hi all,

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

flix
0
Comment
Question by:flix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
dbaora earned 100 total points
ID: 6214384
Hi,
you can user the JOptionPanel instead.
It has showMessageDialog() function, shich shows a message dialog, showConfirmDialog funcion and other nice stuff.
You can create your own panel and use it in the JOptionPane Dialog, thus extending its capabilites without having to implement all from the begining.

regards,
dbaora.
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 8950878


No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


--  points to dbaora


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Maven Project: Hibernate Dependencies Conflict 10 95
CSV file parsing thru Java 13 54
Glassfish admin console not working 1 88
ArrayList Adding/settign data 3 38
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question