Communication between two JPanels

前端 未结 2 952
醉梦人生
醉梦人生 2021-01-18 09:03

I have this \"main\" panel (let\'s call it AAA) with BorderLayout, and two panels (BBB and CCC) in it:

public class AAA extends JPanel {         


        
2条回答
  •  难免孤独
    2021-01-18 09:29

    I managed to do this. I simply passed the Center panel as a parameter in the North panel's constructor. It works perfectly. Thank you all for the answers :)

提交回复
热议问题