-1
我想要使用Java的透明JFrame。我正在使用JNA JAR而且它是平臺。 我試過這段代碼:當我使用JNA Jar及其方法時生成運行時錯誤
WindowUtili.setWindowTransperncey(this,true);
但它提出了以下錯誤:Runtime Error ClassNotFound
我想知道上述錯誤的原因。
我想要使用Java的透明JFrame。我正在使用JNA JAR而且它是平臺。 我試過這段代碼:當我使用JNA Jar及其方法時生成運行時錯誤
WindowUtili.setWindowTransperncey(this,true);
但它提出了以下錯誤:Runtime Error ClassNotFound
我想知道上述錯誤的原因。
你會得到一個ClassNotFound
異常,因爲WindowUtili
不是類,該類被稱爲WindowUtils
。
此外,你想要的方法是setWindowTransparent
,而不是setWindowTransperncey
。
請參見[如何創建半透明和異形窗口](http://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html)。 *「請幫我解決這個問題。」*請問一個(具體的)問題。 –
'WindowUtili' - 我認爲這是一個錯字。 –