posted 17 years ago
JDialog has a Frame argument in the constructor because usually a dialog is launched from another 'application' frame. There are also other constructors, some that take Dialogs, some that take no parameters.
org.jdesktop.layout is a package that contains classes the GUI designer in Netbeans uses to layout components in your GUI - to have the produced GUI run on the command line, you'll need to find the JAR file containing the needed classes and include it in your classpath.
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.