I have the following statement and it's giving me a Null pointer exception:
Icon settingIcon =
GUIUtilities.loadIcon(
context.getProperty( "sys.setting.icon.small" ));
I'm trying to debug it, but I'd like to know what the directory structure is like at the moment it's trying to find the property. Is it possible to find out where the compiler is searching through at the moment of the error?
Right now, I'm falling back to using (with default.png being at the root folder: /Users/bigbitecode/Documents/workspace/sys client_a/):
Icon saveIcon = new ImageIcon("default.png");
Some helpful information:
- I have loaded the property successfully with the following info: at the file path: /Users/bigbitecode/Documents/workspace/sys client_a/sys-client/gui.prop
#sys menu bar icon copa.setting.icon.small=icon/16x16/setting.png
The file I'm trying to get is located at: /Users/bigbitecode/Documents/workspace/sys client_a/sys-client/resources/icon/16x16/settings.png
The pathfile of the current code I have is at: /Users/bigbitecode/Documents/workspace/sys client_a/sys-client/src/sysClient/data/gui/sysClient.java