JApplet の背景色を変更できません。いつもグレー色です。私は NetBeans で作業しています。誰にも提案はありますか?ありがとうございました。
ソリューションКрысa の回答のおかげで、次のように問題を解決できます。
@Override
public void init() {
/* Set the Nimbus look and feel */
//Look and feel setting code (optional)
/* Create and display the applet */
try {
java.awt.EventQueue.invokeAndWait(new Runnable() {
public void run() {
getContentPane().setBackground(Color.WHITE);
initComponents();
}
});
} catch (Exception ex) {}
}