简体   繁体   English

如何在Netbeans中使用MiG

[英]How to use MiG with Netbeans

I right clicked my project, went to properties, libraries and added miglayout-4.0-swing.jar, but upon writing 我右键单击了我的项目,转到了属性,库并添加了miglayout-4.0-swing.jar,但写完了

JPanel mainwindow = new JPanel(new MigLayout());

in my project it cannot find the MigLayout class, and wants me to create it. 在我的项目中,它无法找到MigLayout类,并希望我创建它。 Am I doing something wrong? 难道我做错了什么?

You should go to Tools -> Libraries and create an entry for MigLayout like they show here . 您应该转到Tools -> Libraries并为MigLayout创建一个类似于此处显示的条目。 Then you add that library to your project. 然后将该库添加到项目中。

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

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