Article View: borland.public.jbuilder.java.swing
Article #9707JOptionPane
From: Keith Underwood
Date: Sun, 06 Feb 2000 00:00
Date: Sun, 06 Feb 2000 00:00
15 lines
1350 bytes
1350 bytes
I want to create a dialog box that will pop up a message box with a warning to the user. Every example I see creates the JOptionPane extending appplet. I want this message box to pop up from a frame. Do I need to create a new class file or can I add the class to my existing Frame class file. I need to have the constructor pass the frame, message and title Or can I just initialize a JOptionPane as "JOptionPane dialog = new JOptionPane Can anyone give me a reasonable amount of code to get me started. Frame = MainFrame, message = "Bad Number", dialog type = Warning. Keith
Technical Details
Message-ID:
<389DCCA2.D5210404@gte.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,64245a890ae25d3c,start X-Google-Attributes: gid111d45,public From: Keith Underwood <keithu@gte.net> Subject: JOptionPane Date: 2000/02/06 Message-ID: <389DCCA2.D5210404@gte.net> X-Deja-AN: 582356942 Distribution: world Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@gte.net X-Trace: /wzbxY5C1Lx9m3t1ik0LR4O/IM1hNL3Jd43SJcvqA273rhLSmSwOvnyaRS9s4KxCHOQsWnMpKYos!9HnUomrparkKXNjVepQTRPLqNe1grUpExN1wAa9V4PsOZYLr MIME-Version: 1.0 NNTP-Posting-Date: Sun, 06 Feb 2000 19:40:57 GMT Newsgroups: borland.public.jbuilder.java.swing