java - Swing L&F - Import and implementation -


i built game on java , want make looks better, used default "nimbus" lookandfeel it's not enough. tried install other themes building .jar files class path didn't work times tried showed kinds of messages, maybe i'm doing wrong. grateful if explain me how make work!

you can in way. add classpath theme want. search , copy qualified name and, finally, this:

    try {         uimanager.setlookandfeel("javax.swing.plaf.nimbus.nimbuslookandfeel");         //uimanager.setlookandfeel(uimanager.getsystemlookandfeelclassname());         //uimanager.setlookandfeel("set.qualified.name.here");     } catch (classnotfoundexception | instantiationexception             | illegalaccessexception | unsupportedlookandfeelexception e) {         e.printstacktrace();     } 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -