JScrollPane で画像の背景を使用したいのですが、画像を処理するスペースがありません。JScrollPaneでもJTableでもありません。画像では赤と青の色を使用しました: ここにリンクの説明を入力してください
http://www.4shared.com/download/YDzZc6EQ/test3.jpg?tsid=20130606-152249-f0c2375e
jTableUtilisateur.setBackground(Color.BLUE);
jTableUtilisateur.setModel(new DefaultTableModel(data, header)
{
boolean[] canEdit = new boolean [] {
false, false, false, false, false, false, false, false, false, false, false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jTableUtilisateur.setFont(new Font("Century Gothic", 0, 12));
jTableUtilisateur.setForeground(new Color(0, 75, 138));
jTableUtilisateur.setAutoCreateRowSorter(true);
jScrollPaneUtilisateur = new JScrollPane(jTableUtilisateur);
jScrollPaneUtilisateur.setBackground(Color.red);
jScrollPaneUtilisateur.setBorder( new TitledBorder("Utilisateurs") );