阅读背景:

关于java的Graphics出现“Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.”

来源:互联网 

setVisible(true); 
g=getGraphics();

该顺序很重要,以前一直没留意,出了错就找不着北了,在显示窗口前,getGraphics()将返回null该顺序很重要,以前一




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: