Estou tentando colocar um look and feel do mac OS o quaqua mas depois que eu coloquei ele não consigo mudar background e deu um monte de erros.
coloquei ele certin no visual editor em preferences e add as bibliotecas no programa.
os erros são esses.
Warning: ch.randelshofer.quaqua.util.Preferences failed to load Mac OS X global system preferences
java.io.FileNotFoundException: C:\Users\Diago\Library\Preferences.GlobalPreferences.plist (O sistema não pode encontrar o caminho especificado)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileReader.(Unknown Source)
at ch.randelshofer.quaqua.util.Preferences.readPList(Preferences.java:108)
at ch.randelshofer.quaqua.util.Preferences.loadGlobalPreferences(Preferences.java:76)
at ch.randelshofer.quaqua.util.Preferences.get(Preferences.java:48)
at ch.randelshofer.quaqua.util.Preferences.getString(Preferences.java:38)
at ch.randelshofer.quaqua.BasicQuaquaLookAndFeel.initSystemColorDefaults(BasicQuaquaLookAndFeel.java:219)
at ch.randelshofer.quaqua.leopard.Quaqua15LeopardLookAndFeel.initSystemColorDefaults(Quaqua15LeopardLookAndFeel.java:223)
at ch.randelshofer.quaqua.leopard.Quaqua15LeopardCrossPlatformLookAndFeel.initSystemColorDefaults(Quaqua15LeopardCrossPlatformLookAndFeel.java:67)
at ch.randelshofer.quaqua.BasicQuaquaLookAndFeel.getDefaults(BasicQuaquaLookAndFeel.java:139)
at ch.randelshofer.quaqua.LookAndFeelProxy.getDefaults(LookAndFeelProxy.java:197)
at javax.swing.UIManager.setLookAndFeel(Unknown Source)
at javax.swing.UIManager.setLookAndFeel(Unknown Source)
at logon_view.LogonMain.main(LogonMain.java:17)
A classe princiapal esta asim
[code]package logon_view;
import java.awt.Color;
import javax.swing.*;
public class LogonMain {
public static void main(String[] args) {
System.setProperty(
"Quaqua.tabLayoutPolicy","wrap"
);
// set the Quaqua Look and Feel in the UIManager
try {
UIManager.setLookAndFeel(
"ch.randelshofer.quaqua.QuaquaLookAndFeel"
);
Logon logon = new Logon();
logon.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
logon.setSize(500,500);
logon.setResizable(false);
logon.setVisible(true);
logon.setLocationRelativeTo(null);
// set UI manager properties here that affect Quaqua
} catch (Exception e) {
// take an appropriate action here
//JOptionPane.showMessageDialog(null, "Erro Fatal no Look And Feel");
}
}
}
[/code]