DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page Opening Java Window/file
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Mar 2008
Default Opening Java Window/file - 04-14-2008, 01:27 PM

Newbie question here.
I'm using Netbeans and I added a new file to my project and made it a JDialog. Then I added a mouseclick event to an object on another file - a Jpanel. How do I get that mouseclick to launch my JDialog? I tried JDialog.show and it gives me an error.
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Mar 2008
Default 04-16-2008, 10:45 AM

My dialog file is called ApptDialog and the dialog is also called ApptDialog.

Here's the code I tried for calling the dialog:
Code:
private void dayDateAreaMouseClicked(java.awt.event.MouseEvent evt) {                                         
            ApptDialog jd = new ApptDialog();
                    jd.setVisible(true);
        }
I tried
Code:
import .ApptDialog;
to get my calling file to see the dialog code.

The compile error I get is "cannot find symbol" referring to ApptDialog.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
eclipse window preference help using rcp lchandra Eclipse 0 01-12-2009 03:32 PM
Programmatically maximize/restore a view in Eclipse and Eclipse WIndow khewuwei Eclipse 0 11-27-2008 08:32 PM
Pop up window joesusai Eclipse 0 07-09-2008 08:52 AM
pop up window on button click? sharin Eclipse 0 06-17-2008 07:52 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com