Descargué el .jar de Synthetica, junto con el .jar de syntheticaDarkLookAndFeel, ya los añadí a las librerías de mi proyecto y están siento importadas también.
import java.awt.Color;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.BorderFactory;
import javax.swing.JOptionPane;
import de.javasoft.plaf.synthetica.SyntheticaBlackMoonLookAndFeel;
import javax.swing.UIManager;
En el método main estoy implementando el siguiente código:
public static void main(String args[]) {
try {
UIManager.setLookAndFeel("de.javasoft.synthetica.dark.SyntheticaDarkLookAndFeel");
} catch (Exception e) {
}
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Mapa().setVisible(true);
}
});
}
Si opto por un Clean and Build realiza el build sin problemas, pero al momento de ejecutar el programa, no se aplica ningún cambio en la parte gráfica. Sigue mostrándose el NimbusLookAndFeel
He intentado de la siguiente forma también:
public static void main(String args[]) {
try {
UIManager.setLookAndFeel(new SyntheticaBlackMoonLookAndFeel());
} catch (Exception e) {
}
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Mapa().setVisible(true);
}
});
}
Pero obtengo una excepción en la línea de UIManager.setLookAndFeel(new SyntheticaBlackMoonLookAndFeel());
¿Cómo puedo implementarla correctamente?