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 : enter image description here

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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -