mikaelgrev/miglayout

Exception in thread "main" java.lang.NoSuchFieldError: VISUAL_PADDING_PROPERTY

Closed this issue · 0 comments

Hello, I have a problem with Miglayout 11.0

In generated code:
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license //======== this ======== setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT); setLayout(new MigLayout( "fill,hidemode 3", // columns "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]" + "[fill]", // rows "[]" + "[]" + "[]" + "[]" + "[]" + "[]" + "[]" + "[]" + "[]" + "[]" + "[]" + "[]")); // JFormDesigner - End of component initialization //GEN-END:initComponents }

In my code:
int i,j;
add(button1, "cell " + i + " " + j);
thows an exception at runtime:

         `

Task :runNewAppGui
Exception in thread "main" java.lang.NoSuchFieldError: VISUAL_PADDING_PROPERTY
at net.miginfocom.swing.SwingComponentWrapper.(Unknown Source)
at net.miginfocom.swing.MigLayout.setComponentConstraintsImpl(Unknown Source)
at net.miginfocom.swing.MigLayout.addLayoutComponent(Unknown Source)
at java.desktop/java.awt.Container.addImpl(Container.java:1156)
at java.desktop/java.awt.Container.add(Container.java:1001)`