views:

189

answers:

2

I'm trying to use miglayout within the netbeans IDE. Ive placed the miglayout files in the right place and then imported using:

import net.miginfocom.swing.MigLayout;

at the top of my file but it states that "package net.miginfocom.swing does not exist"

Any ideas on how I can get miglayout working withing netbeans? Any way possible?

Thanks in advance, Lee

+1  A: 

You need to configure the jar file into your classpath. That's in the "properties" settings for your project.

Carl Smotricz
+1  A: 

It sounds as though you haven't added the miglayout library (jar files you downloaded from the miglayout website) to your classpath. Right click on your project, select properties, select libraries and hit "add jar", select the downloaded files.

Clinton