
I am trying to create Swing GUI in netbeans. But when I run it, it does not work as I designed it. Somehow horizontally & vertically it's a little bit bigger than I designed. shown in image the bottom one is running & the top one is the design.
I have tried manually changing the size of jFrame & jPanel but not helping.
I am a total noob and I don't know where the problem is.