@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.
@ 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.
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
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.
Kennyshirts 1 week ago in playlist Java (Intermediate) Tutorials
hey bucky !!!
why is my code not working in the browser ??
it works in eclipse but not in the browser....
micaelc 1 week ago
why need to call? super.paint(g);
calling overriding function ?
Evanchuan 2 months ago
PLEASE MAKE MORE APPLET TUTORIALS!!! :) PLEASE!!!!!!!!!!!!
sciman001 3 months ago
@sciman001 If you follow MyBringBack he's doing a very good Java Game Development tutorial using Applets.
Shegg77 1 month ago in playlist Intermediate Java Tutorials
question.. can you call paint methods on g inside an init method? or is that bad convention or something
dvzqz87 4 months ago
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!"); }
xero907 4 months ago
please,make a J2EE tutorial O:)
Hbojane 5 months ago
init... what??
SandaruwanMW 6 months ago
that was sweet
singhbaghelshubham 7 months ago
Comment removed
salamat 11 months ago
You can copy lines quickly in Eclipse by clicking in the line and pressing Ctrl+Alt+Down arrow.
Thanks for another concise tutorial Bucky.
jazzninja77 11 months ago
wtf? I did directly : sum = Double.parseDouble(fn) + same(sn); Rezult: 32 + 1,5 = 64.0.
catchthatchucky 1 year ago
@catchthatchucky that's nice but, your code is harder to read though. Bucky's is clearer and easier to understand. Remember, we're learning.
crownlessKingg 7 months ago
in-ish-a-lize
or
in-ish - e - ate
great tuts though!
Mrjameslat 1 year ago 12
why didn't you just convert the JOptionPane directly to double?? LOL
CUCProductions 1 year ago
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 1 year ago
@crazyeagle567 Its because you dont have the main function. try making a main function.
public static void main(String[] args){
dosomthing();
}
MrDuskling 1 year ago
@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.
CUCProductions 1 year ago
Simply: Thank you!
DevKire 1 year ago
Does JOptionPane.showInputDialog only work with String variables ?
Why not just start out with doubles so we would not need to convert?
cwieand 1 year ago
@cwieand Because the input in a JOptionPane is obviously a String - not a double.
VideoKalanag4 1 year ago
How can this run without a main method? I thought all java programs needed a main method somewhere to be able to execute
bkush49 1 year ago
@bkush49
Applets don't need a Main-method, cause it runs as a Subprogram in your Browser!...
neecole238 1 year ago 10
Thank you so so much! You are the king of tutorials :] Nice explanations.
Dig2GoldZ 2 years ago
Thanks bucky, finally finished the remaining videos. These are great, keep em coming! CANT WAIT FOR MOAR!
evan3888 2 years ago
want moaaaaaaaaar ROAR
MrSylarrr 2 years ago
REAAAAAAAAAAAALY nice java tutorials...i hope you are planning to make some more intermediate and/or game development ;)
MrSylarrr 2 years ago
Hey ! Bucky, Please tell me What is the method to clear the screen.
Abdullathifs 2 years ago
@ 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 2 years ago
@hello987654321001
he was replying to that spammer that say "first"
hoyun 2 years ago
bucky,
can you teach us how to .jar the files? and make interfaces :)
1deividas1 2 years ago
i lovezoe
tjinga2u1 2 years ago
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
ENIGMATICxFEAR 2 years ago
Honestly gordo's right.
Necro988 2 years ago
im always 1
ENIGMATICxFEAR 2 years ago
Nobody gives a fuck
gordo4444 2 years ago
if u dont care y reply?
ENIGMATICxFEAR 2 years ago
To let him know nobody gives a fuck? That was a stupid question, now wasn't it?
gordo4444 2 years ago
You speak for yourself.
CoDCopsProductions 2 years ago
Apparently I speak for 3 other people...
gordo4444 2 years ago
Apparently, I speak for everyone else: greater than three people I do believe... :)
CoDCopsProductions 2 years ago