How to add jpanel to a specific cell of GridLayout
问题 in the below code, i created a GridLayot with 3 rows and 3 columns, what i want to do is,,to add jpanel_1 into a specifc cell of the Gridlayout, lets say in the grid cell number (2,3). Code : private void setUpGUI2() { // TODO Auto-generated method stub jFrame_2 = new JFrame("Border Demo"); GridLayout gridLayOut = new GridLayout(3,3); jFrame_2.setLayout(gridLayOut); jPanel_1 = new JPanel(new BorderLayout()); jPanel_2 = new JPanel(new BorderLayout()); jPanel_1.setBorder(BorderFactory