Use alternatives utility to update JDK

At the prompt, type sudo update-alternatives --config java The current available java installs would be displayed Selection    Command ----------------------------------------------- *  1           /usr/lib/jvm/jre-1.6.0-openjdk/bin/java 2           /usr/lib/jvm/jre-1.4.2-gcj/bin/java To get out of the prompt…

Create Custom Widgets using InkScape and NetBeans Visual Library

This blog entry shows one how to create a special widget using InkScape and NetBeans Visual Library. This is part of my effort to create a Java-based implementation of MIT’s Scratch, which is implemented in Squeak Smalltalk.

Step 1 Create JScratch Block Graphics:

First I created the image using Inkscape (steps to follow), import the image to IDE, then create two LayerWidgets, one transparent, and another opaque. Add the image to the background LayerWidget, adn the Swing component to the front LayerWidget. Finally, use the BorderFactory.createEmptyBorder function to limit the size of the swing component at the front layer.

To create the Scratch blocks, I used InkScape, the Open Source SVG editor. Here are the steps I took to create the graphic:

libtool and glibtool

This is the content of a typical autogen.sh (for Linux and Unix systems) script which utilize auto tools such as aclocal, libtool, and automake to generate necessary files for building…

Build OpenCV on Snow Leopard

t took me whole day yesterday to build OpenCV for my Snow Leopard. I still need to add the FFMPEG support but for now, it is turned off. I've followed…