简体   繁体   中英

How to use MigLayout in IntelliJ?

I have no idea how to get MigLayout to work in IntelliJ (I'm sort of a noob at IntelliJ). I am currently using the 2017.3.5 community edition.

I've downloaded the jar file, but I can't seem to import it correctly.

I have import net.miginfocom.swing.MigLayout; at the top of my main file, but when I try to compile my code, I keep getting an error

Error:(40, 30) java: cannot access net.miginfocom.layout.LC class file for net.miginfocom.layout.LC not found

Any idea what I'm doing wrong?

Sorry for late. But it will help somebody. IntelliJ Idea will allow to download a maven dependency as a Jar file under the lib folder.

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

尝试:文件->项目结构->选择左侧的模块->选择依赖项选项卡->在右侧或底部找到+->添加.jar

Also include the core lib. You can get it here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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