Two JPanels in JFrame , One under other
问题 I've got two panels in my frame, and I would like to set them one under other, and this first should have size like 9/10*screen frame, and this second 1/10. I've tried with GridLayout (2 rows and one column) but I can't set them specific size. How should I do that? ok maybe I will write some my code: I am writing game - pacman, and in the first panel there is a whole game, and in this second I would like to display player info(like score, name etc.) This first I would like to set on 80%