Oh sorry. Well here is constructor for left panel:
setLayout(null);
ii = new ImageIcon("green arrow.png");
label1 = new JLabel(ii);
JLabel label2 = new JLabel(ii);
label1.addMouseListener(new MouseList());
label2.addMouseListener(new MouseList());
label1.setBounds(50, 75, 70, 70);
label2.setBounds(50, 425, 70, 70);
add(label1);
add(label2);
And this is main class, that extends JFrame:
setLayout(new BorderLayout());
getContentPane().add(new LeftPointerPanel, BorderLayout.WEST);
getContentPane().add(new PaintPanel(), BorderLayout.CENTER);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(1024, 768);
setVisible(true);
For some strange reasons, if i set LeftPointerPanel to BorderLayut.CENTER, it show up even with null layout!