The above is the maximum shortened code possible. Removing further more elements will not display the original error.
OK. Now the problem is about alignment. Once you run the code, you will see the following.
As you can see in there, there elements in the `southPanel` are not aligned well with `centerPanel`. Which means, I expect that `southPanel` JLabels to come into the same line where the `centerPanel` JLabels start. But it ended up in this way. I want the JLabels in `southPanel` to be appeared in the same line where the JLabels of `centerPanel` begins. What I am telling is clearly displayed in the following image. How can I do it? Please help!
PS: I am attaching the "Test Image" as well, so you can test it if you want.
PS: Some suggested me to have everything inside the centerPanel. But the case is, I need 2 panels, because I need to display "titles" in that manner, as getting displayed in "TitledBorder".
PS: I noted performing minus values will do the trick. But most developers says it will make troubles.
Are you better than me? Then please show me my mistakes..