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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -