OperPanel() { setLayout(null); add(tabPanel); Border border_1 = BorderFactory.createEtchedBorder(1); tabPanel.setBorder(border_1); tabPanel.setBounds(5, 5, 630, 630); tabPanel.setLayout(new BorderLayout()); add(modiPanel); Border border_2 = BorderFactory.createEtchedBorder(1); modiPanel.setBorder(border_2); modiPanel.setBounds(640, 5, 310, 630); modiPanel.setLayout(null); }