![](/img/trans.png)
[英]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.