JPanel с фоном изображения

Как разместить фон изображения на JPANEL?

JPanel pDraw = new JPanel(new GridLayout(ROWS,COLS,2,2)); 
pDraw.setPreferredSize(new Dimension(600,600)); //size of the JPanel
pDraw.setBackground(Color.RED); //How can I change the background from red color to image?
7
задан Jessy 29 October 2010 в 11:36
поделиться