Intermediate Java Tutorial - 22 - init for Applets
Top Comments
All Comments (43)
-
For everyone who is also using NetBeans and getting the "no main method" exception:
I just found out that you have to click on "run file" instead of "run main project", then NetBeans will run is as an applet.
-
hey bucky !!!
why is my code not working in the browser ??
it works in eclipse but not in the browser....
-
@sciman001 If you follow MyBringBack he's doing a very good Java Game Development tutorial using Applets.
-
why need to call? super.paint(g);
calling overriding function ?
-
PLEASE MAKE MORE APPLET TUTORIALS!!! :) PLEASE!!!!!!!!!!!!
-
question.. can you call paint methods on g inside an init method? or is that bad convention or something
-
I added a try and catch so if some idiot doesn't put a number...
try{ double n1 = Double.parseDouble(fn); double n2 = Double.parseDouble(sn); sum = n1 + n2; } catch(Exception e){ JOptionPane.showMessageDialog(
null, e + "\nThe applet broke!"); } -
please,make a J2EE tutorial O:)
-
init... what??
-
that was sweet
in-ish-a-lize
or
in-ish - e - ate
great tuts though!
Mrjameslat 1 year ago 12
@bkush49
Applets don't need a Main-method, cause it runs as a Subprogram in your Browser!...
neecole238 1 year ago 10