Wednesday, January 30, 2008

Easily display BufferedImage

In many situations, you may want to display the image from the instance of BufferedImage for debugging purposes.

The obvious way is to create a JPanel and overrides its paint(Graphics g) method. But that consumes time and energy!

The better solution is to instantiate an object of ImageIcon and use its setImage(Image image) method to host the BufferedImage instance in it. After that, you can easily display the image by using JOptionPane.

Saturday, January 5, 2008

No Telnet on Windows Vista ?

How to get Telnet in Windows Vista

Telnet is NOT installed by default on Windows Vista. You need to enable this by going to Control Panel -> Program and Features -> Turn Windows Features on or off and put a tick in front of Telnet Client. After the installation, you can load up Telnet client by typing "telnet" at the command line as you do in earlier versions of Windows.