Code:
.....
        backLabel.setBounds(40,45, 627, 364);
        backLabel.setOpaque(false);//try inserting this line of code here
        mainpanel.add(mainhead);
......