Sep 29, 2012

Data Encryption in Java Part 1

Blowfish Cipher Cryptography
In this example, I will show you how to encrypt data in Java using Blowfish Cipher algorithm. Blowfish is a keyed, symmetric block cipher, with 64-bit block sized encryption algorithm, with a variable key length from 32 bits up to 448 bits. Blowfish provides a good encryption rate in software. It is meant to be an alternative to DES(Data Encryption Standard) which is the predominantly used algorithm for the data encryption developed at IBM in the early 1970s.

Sep 27, 2012

How to Create your own Splash Screen in Java

Splash Screen
In this program, I will show you how to create your own Non-SDK Splash Screen. If you found the Java Splash Screen APIs hard to implement, this is a good choice for you.
Splash Screen is the short lived window that pops out in the middle of the computer or mobile device before the main program is fully loaded and lunched to the user. It mostly contains the progress of the loading components built in the program or just a logo of the software.

Sep 24, 2012

Auto-Scrolling Texts with Image Background in Java

ImageIO
This is an example of how to program an animated texts, that automatically scrolls up slowly with an image as its background. In this Java program I used threading, the IO and math APIs to bring everything together. First, the texts are loaded into the stream, pull every line of it and then draw it on to the screen. A top and bottom offset is used to nicely cut the starting as well as the ending points of the texts, as they scrolls in a given time interval.

Sep 15, 2012

How To Load And Display Image From File In Java

Java IO
In this Java tutorial, we set to graphically display image from a directory. We first set a file reference to our image directory, in this case we gonna use BufferedImage object to get the decoded buffered image, automatically invoking ImageReader. You can see no ImageInputStream is physically used, this is because the file is wraped in an image input stream as soon as it register the file to the ImageReader object. Null is returned if the registration failed.

Sep 13, 2012

How To Make a Copy of File in Java

In this simple example, a file is loaded into a stream, copy it into a temporary storage called "temp", from which it was emptied bit by bit to a new directory.

Sep 4, 2012

Smart Calculator

Java Math
Calculator is one of the applications that every programmer want to create, it is fun to see how a simple code can make such an awesome arithmetic operations. People write calculator code in different ways, depending on the kind of language you are familiar with, and how easy or otherwise that language can avail you that, as well as how complex the operation would be. Java has a great library for UX and maths, which is great for developing calculator or other educational business/ applications.

Sep 2, 2012

Camera Application Using JMF

Java camera JMF
This a simple Java program that opens the system Webcam and presents the visual data of the camera. It used Java Media Framework library, though has not been updated for a very long, but developers still found it very useful for capture, playback, stream, and transcoding multiple media formats. You need to integrate the JMF plugin into your project in order to use the JMF APIs. You can download the JMF library here at Softpedia.