Adicionar o SkinL&K no menu "Preview Design" do NetBeans 6

0 respostas
A

Estou tentando adicionar o Skin L&F no menu “Preview Design” do netbeans 6. Coloquei o SkinLookAndFeel na paleta, na Categoria LookAndFeel. Depois diso o SkinL&F passou a paparecer no menu, mas quando tento fazer um preview com ele o seguinte erro ocorre:

java.lang.Error: Skin was null and an error occurs while trying to load the user theme pack. Source exception message is themepack.zip not found in classpath

at com.l2fprod.gui.plaf.skin.SkinLookAndFeel.getSkin(SkinLookAndFeel.java:863)

at com.l2fprod.gui.plaf.skin.SkinLookAndFeel.initClassDefaults(SkinLookAndFeel.java:181)

at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:128)

at org.netbeans.modules.form.FormLAF.initPreviewLaf(FormLAF.java:115)

at org.netbeans.modules.form.FormDesigner.createFormView(FormDesigner.java:542)

at org.netbeans.modules.form.actions.TestAction.run(TestAction.java:132)

at org.netbeans.modules.form.actions.TestAction$LAFMenu.actionPerformed(TestAction.java:292)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

at javax.swing.AbstractButton.doClick(AbstractButton.java:357)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257)

at java.awt.Component.processMouseEvent(Component.java:6038)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)

at java.awt.Component.processEvent(Component.java:5803)

at java.awt.Container.processEvent(Container.java:2058)

at java.awt.Component.dispatchEventImpl(Component.java:4410)

at java.awt.Container.dispatchEventImpl(Container.java:2116)

at java.awt.Component.dispatchEvent(Component.java:4240)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)

at java.awt.Container.dispatchEventImpl(Container.java:2102)

at java.awt.Window.dispatchEventImpl(Window.java:2429)

at java.awt.Component.dispatchEvent(Component.java:4240)

[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Bem depois disso tentei adicionar o themepack.zip no classpath do netbens usando o parametro --cp:a na inicialização do netbeans, mas mesmo assim o erro continua acontecendo.
Alguém sabe como resolver isto?

Valeu!

Criado 28 de fevereiro de 2008
Respostas 0
Participantes 1