Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

JDialog how to [newbie]

Ok,
I'm a newbie in java and I just had my first contact with visual java programming, so I set up to build my hello world application.
As IDE I am using NetBeans, and I have a button that I want to launch a message window when pressed. From what I heard... the right component for that would be JDialog, but I cand instantiate the component.
I tried using a sintax like this:

jDialog dialog = new jDialog()

But it didn't worked... if someone have any idea of how should I do that, please tell me.. any new ideas are apreciated.. as long as I'm still at the beginning :)

Thanks !
[633 byte] By [bedeabza] at [2007-11-11 6:53:57]
# 1 Re: JDialog how to [newbie]
Here's the tutorial from Sun on how to create custom dialogs:
http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html
It has some example code as well.

Good luck.
prometheuzz at 2007-11-11 22:40:06 >