Added: 2 years ago
From: thenewboston
Views: 26,288
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

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....

  • why need to call? super.paint(g);

    calling overriding function ?

  • PLEASE MAKE MORE APPLET TUTORIALS!!! :) PLEASE!!!!!!!!!!!!

  • @sciman001 If you follow MyBringBack he's doing a very good Java Game Development tutorial using Applets.

  • 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

  • Comment removed

  • You can copy lines quickly in Eclipse by clicking in the line and pressing Ctrl+Alt+Down arrow.

    Thanks for another concise tutorial Bucky.

  • wtf? I did directly : sum = Double.parseDouble(fn) + same(sn); Rezult: 32 + 1,5 = 64.0.

  • @catchthatchucky that's nice but, your code is harder to read though. Bucky's is clearer and easier to understand. Remember, we're learning.

  • in-ish-a-lize

    or

    in-ish - e - ate

    great tuts though!

  • why didn't you just convert the JOptionPane directly to double?? LOL

  • Every time i go to run the program in the command prompt, it keep saying that i need

    main in my public class line. Please somebody send me a message telling me why.

  • @crazyeagle567 Its because you dont have the main function. try making a main function.

    public static void main(String[] args){

    dosomthing();

    }

  • @crazyeagle567 you need to run it as an applet. If you're using eclipse, you could press the down arrow next to the run button and select "run as applet" or the LONG way: compile your program, create the html file and insert the .class there and open with your browser.

  • Simply: Thank you!

  • Does JOptionPane.showInputDialog only work with String variables ?

    Why not just start out with doubles so we would not need to convert?

  • @cwieand Because the input in a JOptionPane is obviously a String - not a double.

  • How can this run without a main method? I thought all java programs needed a main method somewhere to be able to execute

  • @bkush49

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

  • Thank you so so much! You are the king of tutorials :] Nice explanations.

  • Thanks bucky, finally finished the remaining videos. These are great, keep em coming! CANT WAIT FOR MOAR!

  • want moaaaaaaaaar ROAR

  • REAAAAAAAAAAAALY nice java tutorials...i hope you are planning to make some more intermediate and/or game development ;)

  • Hey ! Bucky, Please tell me What is the method to clear the screen.

  • @ gordo4444A lot of people DO care, so you lose there. :) Also, if you don't care about programming, don't bother watching the video. It's really simple. God, people like you are dumbasses.

  • @hello987654321001

    he was replying to that spammer that say "first"

  • bucky,

    can you teach us how to .jar the files? and make interfaces :)

  • i lovezoe

  • to let who know? u never said a him before...sorry we all dnt know whats going on in that head of yours. wait, maybe b/c the world doesnt revovle around u so u should specify a subject in a sentence

  • Honestly gordo's right.

  • im always 1

  • Nobody gives a fuck

  • if u dont care y reply?

  • To let him know nobody gives a fuck? That was a stupid question, now wasn't it?

  • You speak for yourself.

  • Apparently I speak for 3 other people...

  • Apparently, I speak for everyone else: greater than three people I do believe... :)

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