update调用paint
paint调用 paintComponent\paintBorder\ printChildren
我们一般要在swing组件上画东西只需重载paintComponent,而不需要重载 paint方法,
简单地说paint方法是画所有,paintComponent只是画自己。
如果组件是透明的,你不super.paintComponent最小化后再打开就会出错死机似的错误。
paint调用 paintComponent\paintBorder\ printChildren
我们一般要在swing组件上画东西只需重载paintComponent,而不需要重载 paint方法,
简单地说paint方法是画所有,paintComponent只是画自己。
如果组件是透明的,你不super.paintComponent最小化后再打开就会出错死机似的错误。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货