Hello.
I've been writing a simple swing application. The main JFrame window has a BorderLayout:
I've added a JPanel to my top level JFrame container:
where "pannelloBtn" is my JPanel.
The JPanel code for "pannelloBtn" is located in a custom class that extends JPanel. In the constructor I've added the following code:
Now I have a problem: when I run the application the JPanel's width is resized to zero, even if I've specified a minimun width of 400.
I can't solve it: any help is more than welcome. Thank you very much!