posted 11 years ago
well, I figured out that I can use
Element elm = (Element) claz.getDeclaredConstructor(Board.class).newInstance(this);
instead of
Element elm = (Element) claz.newInstance();
which works fine, but still if anyone has a better proposal, please let share it. Thanks