Problems executing jar file outside of netbeans
I've spent the last couple of days trying to build my java application so that it will run in windows but am getting a different result outside of Netbeans to when I run it inside.
Basically I have a dozen or so class files with 1 main class file that executes my GUI. Inside netbeans it displays fine and all of my functionality works as well but when I build the file and then run it outside of netbeans the GUI is kind of all over the place. I'm 90% sure my manifest file and the build file is all correct, I've gone over it a dozen times.
To be honest, I have 3 main elements but there dimensions seemed to be all screwed up? Any ideas what I can do to fix this easily or should I go in and manually enter all the heights and widths etc??
Insets insets = panel.getInsets();
Dimension size = mainOutput.getPreferredSize();
mainOutput.setBounds(180 + insets.left, 140 + insets.top,
size = userID.getPreferredSize();
userID.setBounds(620 + insets.left, 125 + insets.top,
size = idLabel.getPreferredSize();
idLabel.setBounds(515 + insets.left, 125 + insets.top,