Add a Container object to the code and use that to set the color: Container contr; public SetColorWithButton() { contr = getContentPane(); ... contr.
確定! 回上一頁