ciao!
ho un problema con la menu bar in mac os x quando uso nimbus.
questo il codice:
in pratica non si attiva.codice:public static void main(String args[]) { try { String vers = System.getProperty("os.name").toLowerCase(); if (-1 != vers.indexOf("mac")) { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Ftp"); // UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) { JOptionPane.showMessageDialog(null, ex.getMessage()); } EventQueue.invokeLater(() -> { new MainFrame().setVisible(true); }); }
invece se lebo il nimbus si attiva, ma come nome mette quello della classe del JFrame.
qualche idea?

Rispondi quotando