我寫的是這樣的:label1.setTextFill((int)(Math.random()*256),(int)(Math.random()*256),(int)(Math.random()*256),(int)(Math.random()*101)); 但是eclipse提示我錯誤The method setTextFill(Paint) in the type Labeled is not applicable for the arguments (int, int, int, int)。老哥們這是為啥?
uj5u.com熱心網友回復:
沒有這個方法你先生成一個單色圖片(顏色隨機),然后填充圖片
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/76097.html
標籤:Eclipse
下一篇:jdk安裝包安裝不了
