Oct 9, 2012

Simple JMF Media Player

JMF Media PlayerThis is simple Java Media Player using JMF library. It opens a MPEG file file from directory and plays it. JMF comes with visual component and media controls that can be embedded into into the AWT or Swing components. we need to implement the ControllerListener interface for handling asynchronous events generated by the media Controllers. The controllerUpdate(ControllerEvent event) method is called when an event is generated by a Controller that the listener to it registered.

Oct 5, 2012

Data Encryption in Java Part 2

DES Cryptography
This is another Data Encryption example in Java, but it featured DES encryption algorithm which is academically popular and has been in use for quite some time. DES uses 56-bits key size and also uses a key to customize the transformation, so that decryption can only be performed by those who know the particular key used for the encryption. Every 8th bit of the selected key is discarded, that is, positions 8, 16, 24, 32, 40, 48, 56, 64 are removed from the 64 bit key leaving behind only the 56 bit key.

Oct 3, 2012

How to Create System Tray Icon in Java

System Tray Icon
In this tutorial, I will show you how to create a System Tray Icon in Java. Operating Systems normally provides a  place(program) for icons display, either for the programs that runs in background, such as services, or programs that continue to run while the window is closed. For example, if your computer supports advanced power management (APM), a Battery Meter icon may be displayed on the taskbar. In Windows its called a Status Area, others called it System Tray.