0
我試圖使我的框架透明使用AWTUtilities
類,如我以前的問題建議:How to make JFrame transparent?。但得到例外Can not access restricted API
。我該如何解決這個問題?例外:「無法訪問受限制的api」java
我試圖使我的框架透明使用AWTUtilities
類,如我以前的問題建議:How to make JFrame transparent?。但得到例外Can not access restricted API
。我該如何解決這個問題?例外:「無法訪問受限制的api」java
不知道它的IDE像eclipse拋出這個錯誤。您可以查看http://java.globinch.com/tag/restricted-api/強文本以瞭解如何避開它。
如果你能找到使用Sun API,它能夠更好的選擇,因爲這是如有變更,
這是日食,但我使用netbeans。 –
如果你正在尋找一種替代,使框架透明試試[JNI包裝WinPack(HTTP:// WWW .teamdev.com/jniwrapper/winpack)。 –