Pessoal, tenho uma aplicação em swing que roda perfeitamente a partir do netbeans. Minha aplicação tem vários JFrames.
Quando compilo ela roda normal e faz tudo que tinha pra fazer. Porém, quando acesso um JFrame específico, através do menubar, o seguinte erro (visto no prompt) ocorre:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/netbe
ans/lib/awtextra/AbsoluteLayout
at br.com.bb.Setup.initComponents(Setup.java:36)
at br.com.bb.Setup.<init>(Setup.java:8)
at br.com.bb.MainJFrame.setSaveFileChooser(MainJFrame.java:507)
at br.com.bb.MainJFrame$MenuItemListener.actionPerformed(MainJFrame.java
:529)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(
Unknown Source)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(Unknown Source)
at javax.swing.JMenuItem.processMenuDragMouseEvent(Unknown Source)
at javax.swing.JMenuItem.processMouseEvent(Unknown Source)
at javax.swing.MenuSelectionManager.processMouseEvent(Unknown Source)
at javax.swing.plaf.basic.BasicPopupMenuUI$MouseGrabber.eventDispatched(
Unknown Source)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Unknown So
urce)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Sour
ce)
at java.awt.Toolkit.notifyAWTEventListeners(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
ps: eu mando abrir o JFrame com o seguinte comando:
new Setup().setVisible(true);
a classe dele é Setup.java
Alguém pode me ajudar a solucionar/entender por que no netbeans ta normal e quando compilado não consigo executar esse JFrame?
Muito obrigado a todos.