java - Error while setting LookAndFeel -
i getting error when using syntheticablackmoonlookandfeel in java swing code. below code :: don't know why getting error ?
try { uimanager.setlookandfeel(new syntheticablackmoonlookandfeel()); }catch(exception e) { e.printstacktrace(); }
it showing me type of error :
the solution issue specify fully-qualified name of lookandfeel class string argument uimanager.setlookandfeel()
rather try pass instance of argument.
so, in case, you'd want write:
uimanager.setlookandfeel("(package).(namespace).syntheticablackmoonlookandfeel");
...where you'd replace (package) , (namespace) correct values.
it may this, i'm not 100% sure don't use theme you're referencing:
de.javasoft.plaf.synthetica.syntheticastandardlookandfeel
Comments
Post a Comment