Trying to compile program using Swing.
I am trying to compile a SWING program (i.e. JFrame, JButton etc). Program does not have main method.
Obviously when I compile, I get
Exception in thread "main" java.lang.NoSuchMethodError: main.
Isnt it allowable to have a Swing pgm without a main method ?
Am I missing something obvious? Do I need to move a Swing jar file somewhere? Using J2SDK1.4.0 on WindowsME. Java is installed OK, because I can compile and execute other basic programs..

