> What i need to say is, check what OS i'm running on.
> If i'm running on windows set the Look & Feel to
> windows, if MAC then MAC and so on ? If i use
> System.getProperty("Os.Name") then i have to specify
> the OS's name which i don't want to do...
I said getProperty not setProperty, with a g .... and the property name is case sensitif, so stick to "os.name", not "Os.Name".
Anyway, If you need this info for the LookAndFeel (info that was not present in your first post) then you should rather have a look at javax.swing.UIManager.getSystemLookAndFeelClassName()
If you want to set the L&F to match the L&F of the operating system your program is running on, then you don't need to find out what the operating system is at all, you need this:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {}