为什么在JButton上设置图片和文字,只能显示图片,文字没了
jbt[i]=new JButton(matrix[a][b]+"",image);
//jbt[i].setText(matrix[a][b]+"");
jbt[i].setBackground(Color.gray);
jbt[i].setForeground(Color.red);
jbt[i].setMargin(new Insets(0,0,0,0));
jbt[i].setFont(new Font("TimesRoman",Font.BOLD,font));
只能显示图片,看不到文字,难道是图片在文字上面?