You are not logged in.

Search results

Search results 1-2 of 2.

Saturday, February 6th 2010, 12:34pm

Author: NoLars

Sample Application "Calculator" - unary operations

Problem When executing unary operations (operations that take just one parameter) in a situation where no second parameter exists you receive a runtime error java.lang.NumberFormatException: empty String. Details To reproduce the problem, start calculator sample application, then enter a number such as "64". Now try to calculate the press spare root [sqrt]. You will now see runtime error java.lang.NumberFormatException: empty String. No try this: Restart the calculator application. Enter this se...

Thursday, February 4th 2010, 4:55pm

Author: NoLars

Simple MP3 player with threading

Unfortunately getAudioInputStream only plays WAV and PCM files. How to play an MP3, then? Here is one possible solution using theh javalayer library You can get the library here: http://www.javazoom.net/javalayer/javalayer.html 1) Create a simple form like this: [img]http://www.jabaco.org/board/index.php?page=Attachment&attachmentID=181&h=50316b49d4584fe293312feeb0d895ff448d3a57[/img] 2) Press F1 to add a classptah - Press [Add Jar Archive] to import jl1.0.1.jar. - open the tree structure and ch...

WoltLab Burning Board