Followers

Sunday, June 12, 2011

Java Swing Tips

In a java swing application, if you have added some new component at runtime, you can make it appear on the containers just by using the function validate();

Also, it is always better to use the JTextArea component with a JScrollPane.


Tuesday, January 18, 2011

Java classpath setting on UNIX/LINUX

Just a caveat:-

On Windows :-

java -cp path1;path2 abc


On Linux:-

the colon ':' separates the paths instead of the  semicolon ';'

java -cp path1:path2 abc