Custom Java Swing Components

December 5, 2007 – 2:19 pm
In 2006, I was working in a text free, speech enabled software interface in Java. JFC, Swing does not support Sound and we needed custom Swing components. After exploring the MVC architecture and custom swing "how to"s which were quite incomplete and we decided to write our own tutorial for future enthusiasts. Download the tutorial in pdf format.

Sambad , Access to Computers for non-literate people

December 5, 2007 – 2:01 pm
Illiteracy still exists in every part of the world no matter where. Reading disabilities also resides in this developed world  in the form of functional illiteracy . There are still some people who can read the text written in the subways, notice boards, television scrolls, magazine, newspaper.. but cannot comprehend the message.  For the people who can comprehend the messages, the world seems full of information, but for those who cannot its a jungle of strange words, which can be read but cannot be understood.  Sambad is the research project initiated by Prof. Pat Hall, in Madan Puraskaar Pustakalaya. It aims to find the right way of Human Computer Interaction  for people to gather information from the computers around them. Computing has evolved to ubiquitous artifact with advent of technology; computers are every where. Today smart televisions are augmented with computers, your cell phone is a computer, even refrigerators, ovens ...

How to run native commands in Java

December 2, 2007 – 11:52 am
[I am referring to Windows] Step 1 Right Click 'My Computer' & Select Properties Go To 'Advanced' & Select 'Environment Variables' Go To 'System Variables' and add the path to your command in 'Path' Step 2 Make a batch file with necessary commands [Say 'time 12:00'] Save it as c:\\test.bat Step 3 : Lets dirty our hand with Java ... try{ Runtime rt = Runtime.getRuntime() ; // batch file is in C:\ String command = cmd /c c:\\test.bat; System.out.println( command: + command); // executes batch file Process p = rt.exec(command) ; // outputs int System.out.println("output: " + p.getInputStream().read()); // necessary for waiting for the process to execute the commands p.waitFor(); p.destroy() ; }catch(Exception exc){ //handle exception } ...

Kuching City

December 1, 2007 – 10:10 am