简体   繁体   English

如何在NetBeans平台中访问自己窗口类中的外部类?

[英]How to access external class in my own window class in netbeans platform?

I am developing an application in which I want to access another package's class method in my own window class using the Netbeans platform. 我正在开发一个应用程序,我想使用Netbeans平台在自己的窗口类中访问另一个程序包的类方法。 However, I get a NoClassDefFoundError . 但是,我得到了NoClassDefFoundError

Specifically, I want to add a JScrollPane to my window class' JPanel . 具体来说,我想将JScrollPane添加到窗口类的JPanel How can I achieve this? 我该如何实现?

将包含该类的jar添加到应用程序的运行时类路径中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM