Built using Netbeans GUI builder on a Mac in Java.
This is what the GUI looks like in Netbeans:

When I click preview, it doesn’t look too bad, but there are small changes:

Lastly, when I run it, it looks like this: – terrible

I assume it’s to do with Java’s ‘Look and Feel’. I’ve tried removing this and the GUI becomes a shambles. So what are my options? As you can see everything lines up in Netbeans, when I run it, everything is a mess.
Any ideas? Spent a day messing around with this and i’m fed up to say the least
Some where in you code, Netbeans would have created a
mainmethod (this will be within the class that Netbeans exeuctes and is probably your master frame – I think that would be theSPPMainGUI)It will look something like this (note that it might be “folded” so you will only see the first comment and the
decsof the second (Look and feel setting code (optional)))Unfold the code block by click on the little + in the margin and replace the
for-loopwithUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());as belowAs afsantos identified the problem, I would appriciate it if you could accept his answer as been correct (and an up-vote me instead ;), nudge, nudge, wink, wink, say no more)