T
Ted
Hello all--
I've written a Java App that utilizes a frame component (rather than an
applet) as my container. The frame is created in one class and I add a
panel created in another class to it.
I.e.:
-public class Dice creates a JFrame to which I add a DicePanel.
-public class DicePanel is an extension of the JPanel class, and
includes all of my listeners, etc.
I know you'd launch a normal Java app (by normal, I mean w/o any
components) by typing into an MS-DOS prompt "java [classfile]", but
when I do this w/ my Dice class, it doesn't work. The project compiles
and runs correctly in the IDE (Netbeans 3.6), but not through DOS.
Anyone know how to do this?
FYI, my end-goal is to create an MS-DOS shortcut to run the
application.
Thanks a lot.
I've written a Java App that utilizes a frame component (rather than an
applet) as my container. The frame is created in one class and I add a
panel created in another class to it.
I.e.:
-public class Dice creates a JFrame to which I add a DicePanel.
-public class DicePanel is an extension of the JPanel class, and
includes all of my listeners, etc.
I know you'd launch a normal Java app (by normal, I mean w/o any
components) by typing into an MS-DOS prompt "java [classfile]", but
when I do this w/ my Dice class, it doesn't work. The project compiles
and runs correctly in the IDE (Netbeans 3.6), but not through DOS.
Anyone know how to do this?
FYI, my end-goal is to create an MS-DOS shortcut to run the
application.
Thanks a lot.