Erro com JFileChooser e Look And Feel

3 respostas
Tuanny_Ramos

Alguém já viu esse erro ???

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3184 at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Unknown Source) at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source) at sun.awt.shell.ShellFolder.get(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(Unknown Source) at javax.swing.UIDefaults.getFromHashtable(Unknown Source) at javax.swing.UIDefaults.get(Unknown Source) at javax.swing.MultiUIDefaults.get(Unknown Source) at javax.swing.UIDefaults.getIcon(Unknown Source)

Tenho um botão, que chama um JFileChooser em uma tela que está setada com

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

quando tiro a linha acima, não dá o erro.

3 Respostas

Alexandre_Saudate

Tuanny:
Alguém já viu esse erro ???

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3184 at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Unknown Source) at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source) at sun.awt.shell.ShellFolder.get(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(Unknown Source) at javax.swing.UIDefaults.getFromHashtable(Unknown Source) at javax.swing.UIDefaults.get(Unknown Source) at javax.swing.MultiUIDefaults.get(Unknown Source) at javax.swing.UIDefaults.getIcon(Unknown Source)

Tenho um botão, que chama um JFileChooser em uma tela que está setada com

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

quando tiro a linha acima, não dá o erro.

Qual Windows você está usando? Se testar no Linux, o que acontece?

[]´s

Tuanny_Ramos

Windows 7
não testei com o Linux…

Mero_Aprendiz

Tuanny:
Alguém já viu esse erro ???

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3184 at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Unknown Source) at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source) at sun.awt.shell.ShellFolder.get(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(Unknown Source) at javax.swing.UIDefaults.getFromHashtable(Unknown Source) at javax.swing.UIDefaults.get(Unknown Source) at javax.swing.MultiUIDefaults.get(Unknown Source) at javax.swing.UIDefaults.getIcon(Unknown Source)

Tenho um botão, que chama um JFileChooser em uma tela que está setada com

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

quando tiro a linha acima, não dá o erro.

Ixi:
http://bugs.sun.com/view_bug.do?bug_id=6840086

[]'s
JL

Criado 29 de janeiro de 2010
Ultima resposta 29 de jan. de 2010
Respostas 3
Participantes 3