PNG Icons: generic paths for Linux and Win
Hi,
I have this piece of code, that is very specific to my computer, and i;d like to make it as generica as possible so it can run both on a LinuxBox and a windows machine.
I plan to put the icons in a folder called [images] and would like to have the icons taken from there.
thank you!
-uday
protectedstatic ImageIcon createImageIcon(boolean connected){
if (connected){
returnnew ImageIcon("C:/uday/HIS_Phase1/Workspaces/Workspace/HIS/images/start.png","Running");
}else{
returnnew ImageIcon("C:/uday/HIS_Phase1/Workspaces/Workspace/HIS/images/no_start.png","Running");
}
}

