A small modification to JPanel