Intermediate Java Tutorial - 22 - init for Applets

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
26,605
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 28, 2010

Thanks for watching and don't forget to subscribe!

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • in-ish-a-lize

    or

    in-ish - e - ate

    great tuts though!

  • @bkush49

    Applets don't need a Main-method, cause it runs as a Subprogram in your Browser!...

see all

All Comments (43)

Sign In or Sign Up now to post a comment!
  • 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

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more