Latest Comments

Popular / Snippets

R3ido101 commented on a Page, Java IRC bot  -  Feb 24, 2016

What is the best way to make commands? in a new class or just keep it all in one?

nanad commented on a Page, Helicopter Game  -  Nov 05, 2015

how to display "game over" in this code?

 Respond  
Hawkee commented on a Page, Need help with MC mod  -  Jan 26, 2015

I'm not sure everybody know what you're talking about here. Maybe you should say "Minecraft" instead of MC. This site isn't necessarily intended for questions, so this is probably better posted as a Thread.

 Respond  
dcease commented on a Page, Automatic save of JFrame components to preference node  -  Jul 24, 2014

Lmfao, java looks so complicated. And even when you call it easy...

 Respond  
Hawkee commented on a Page, Helicopter Game  -  Feb 26, 2014

I wonder how easily this could be adapted into a Flappy Bird clone. It's pretty much all right there.

Hawkee commented on a Page, Java Hangman Game!  -  Dec 22, 2013

Would be neat if this accessed an online dictionary API for words so they don't need to be input.

Sorasyn commented on a Page, Java Hangman Game!  -  Dec 21, 2013

The UI design looks good for not implementing any sort of static placement code, or structured design classes. UI design is probably the number one thing I absolutely hate about Java. You either have to use some shoddy design class (GridBag, and such), or painstakingly place each component statically in the code. For the most part.

Nice little game.

 Respond  
Sangeetha commented on a Page, Java Snake  -  Oct 30, 2013

Can you please tell me how to run it?

javastudent commented on a Page, Helicopter Game  -  May 01, 2013

just thought i would put this out there that i am in 10th grade basic java making the same game for y final project and it is a lot easier then you are making it i am like half way done in 2 hours and and i am doing it alone, so just because you are in ap does not mean that it has to be this hard and complicated. and BTW to the ones that copied it i hope you fail because if you want to make it anywhere in life do your own work!

Sorasyn commented on a Page, Student Record  -  Feb 28, 2013

What is it supposed to do? I see some GUI components, but nothing to clue me in. Also, I find it to be better to instantiate JLabels (since they provide no real functionality) within the add statement. Unless you plan on adding events to it, it's quicker this way, and saves you a bit of memory. Nice seeing some Java.

Hawkee commented on a Java App, BOUNCE  -  Dec 26, 2012

@supercapacitor Looks like part of it is still compiled for 1.7: mywindowgui/WindowGUI

 Respond  
JamoBox commented on a Java App, FourierAnalysis - MouseMotion  -  Dec 26, 2012

@supercapacitor Or rather, Java 6 is Java 1.6. But yes, that is correct.

 Respond  
supercapacitor commented on a Java App, FourierAnalysis - MouseMotion  -  Dec 24, 2012

For some reason the demo doesn't work so you have to download and open in order to run the application.

Java 1.6 is Java 6 right?

supercapacitor commented on a Java App, BOUNCE  -  Dec 24, 2012
Hawkee commented on a Java App, FourierAnalysis - MouseMotion  -  Dec 24, 2012

Apps aren't really meant to contain code. They're mainly for linking to a completed project.

 Respond  
BlueThen commented on a Java App, FourierAnalysis - MouseMotion  -  Dec 24, 2012

Hi. I believe you can use [ code]


 tags on your code to keep it clean and indented.
 Respond  
Hawkee commented on a Java App, BOUNCE  -  Dec 24, 2012

Looks like you compiled it for Java 1.7, but I only have 1.6 available on this machine. It is always best to compile Java apps to work with 1.6 unless it is absolutely necessary to use 1.7.

 Respond  
supercapacitor commented on a Java App, BOUNCE  -  Dec 24, 2012

Check out version 1.4!

 Respond  
Hawkee commented on a Page, Animated button  -  Dec 20, 2012

I'm going to be changing that soon to make it easier to post multiple code blocks within a single snippet post.

 Respond  
Aion- commented on a Page, Animated button  -  Dec 20, 2012

Oh, I didn't know. Thanks for the info!

Hawkee commented on a Page, Animated button  -  Dec 20, 2012

You can enclose your example in


 blocks to make it look nicer.
 Respond  
berend commented on a Page, Java CookieUtils - Read cookie  -  Dec 14, 2012

yep, I'll post some more soon as long the company agrees

 Respond  
Hawkee commented on a Page, Java CookieUtils - Read cookie  -  Dec 14, 2012

Always great to see more Java code on the site.

 Respond  
Aion- commented on a Page, IP addresses converter  -  Nov 25, 2012

Updated.

  • Renamed class name (Utility -> IPv4);
  • Renamed method ipToLong(String) as toLong(String);
  • Renamed method longToIp(long) as toString(long);
  • Added the throws tag to both methods to indicate an exception will be thrown if the given argument is invalid;
  • Changed description.
 Respond  
Hawkee commented on a Page, Helicopter Game  -  Nov 04, 2012

Since you didn't write the MP3 bit its probably best just to exclude it.

 Respond  
Aion- commented on a Page, Shorthand  -  Oct 25, 2012

Updated. It now uses the official metric prefixes specified by SI.

http://en.wikipedia.org/wiki/Metric_prefix#List_of_prefixes

 Respond  
Aion- commented on a Page, IRCConnection  -  Oct 10, 2012

Good luck with that!

 Respond  
Sorasyn commented on a Page, IRCConnection  -  Oct 09, 2012

Yeah, that's just the connection. You've inspired me to do a rebuild of an IRC client I made almost a year ago from the ground up. :)

Just got done rebuilding the Socket architecture to fully support multiple server connections as the bottom layer. Just working on the UI now, which has to change since it's current UI can't support multiple servers very well, if at all. If I can manage to finish that up, all that'll need to be done is the tying up of a few loose ends.

 Respond  
Aion- commented on a Page, IRCConnection  -  Oct 09, 2012

I thought this was normal: whenever I get to "Found your hostname", it seems to freeze for about 10 seconds and then proceeds. It also happens on mIRC. I believed it was caused by the server trying to find my identd so I disabled it, but this was in vain.

 Respond  
Sorasyn commented on a Page, IRCConnection  -  Oct 08, 2012

Seems a little long winded to just initiate, read, and write. I do suppose some of that is parsing the strings and processing of data though. May be able to hard code in some catch algorithms to automatically reply to Ping calls so the connection doesn't have to rely on outside support to maintain the connection.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.