Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Java Tutor

Java Tutor is my platform for teaching about Java 7+ and JavaFX 2.0+, mainly via programming projects.


Playing MP3 Files

If your Java application needs to play an MP3 file, it's out of luck as far as Java's standard class library is concerned. Forget about using java.applet.Applet's public static final AudioClip newAudioClip(URL url) method and the java.applet.AudioClip interface to accomplish this task; you can only play AIFF, AU, MIDI, SND, and WAV files with newAudioClip().

Read more ...
 

Sepia Toning an RGB Image in Java 2D

Sepia toning is the process of converting an image into shades of brown to give the image an antique appearance. Analog photography uses various chemical processes to achieve this effect.

In contrast, a digital algorithm first converts the color of each pixel in an RGB image to grayscale, and then adds suitable offsets to the pixel color's red, green, and blue components.

I've created a SepiaToneDemo application that demonstrates a Java 2D implementation of this algorithm.

Read more ...

 

Welcome to Java Tutor

Hello. I'm Jeff Friesen and I welcome you to Java Tutor, a new blog that I'm writing for JavaWorld. Java Tutor is my platform for teaching about Java 7+ (the standard edition, in terms of language, APIs, architecture, and tools) and JavaFX 2.0+ (which eventually will be integrated into Java standard edition, probably starting with version 8). I teach about these technologies mainly via programming projects (e.g., multiple key press detection).

I welcome your input to this blog, and will write about relevant topics that you suggest.

Read more ...

 
Syndicate content