[英]Applet: Java.lang.SecurityException: class “…”'s signer information does not match singer information of other classes in the same package
[英]Classes in Same Package java applet
我有MixedComponent
擴展類Applet
和我有一個NumericTextField
,我已經通過擴展做出定制TextField類TextField
。
現在,
我在Same Package mypackage
同時擁有這兩個類。
現在我做的一個目的NumericTextField
在MixedComponent
,這是給我的錯誤: 找不到符號:NumericTextField
NumericTextField myVar = new NumericTextField();
我想在NumericTextField
中使用NumericTextField類型的對象,我該怎么做?
NumericTextField在您的程序包中,但不是直接可見的。 您將需要導入它或使用其包含類引用它。
例如
import mypackage.MixedComponent.NumericTextField;
NumericTextField myVar = new NumericTextField();
要么
MixedComponent.NumericTextField myVar = new MixedComponent.NumericTextField();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.