java中怎么在paintComponent方法外改变它的g的属性

2025-06-21 13:41:54
推荐回答(1个)
回答1:

这样改变,没有意思。

使用类级的变量,当paintComponent时,根据需要绘图就好了。