JPanel panel = new JPanel();
panel.setLayout(new MigLayout());
This is my code. I am getting the compiler error
The type org.eclipse.swt.widgets.Layout cannot be resolved. It is indirectly referenced from required .class files
and
The method setLayout(LayoutManager) in the type Container is not applicable for the arguments (MigLayout)
I have configured the Miglayout.jar in my build path. I can see it under -preferences>javabuildpath>libraries
can anyone help me with this.
For Swing, you probably want to import net.miginfocom.swing.MigLayout, rather than net.miginfocom.swt.MigLayout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With