java.lang.ClassCastException: java.awt.BorderLayout

Oracle Community | 807554 | 2 decades ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Differences between awt and swing

    Oracle Community | 2 decades ago | 807554
    java.lang.ClassCastException: java.awt.BorderLayout

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.awt.BorderLayout

      at DataEntryForm.addComponent()
    2. Unknown
      pp.actionPerformed
      1. DataEntryForm.addComponent(pp.java:647)
      2. DataEntryForm.<init>(pp.java:510)
      3. DataEntryForm.<init>(pp.java:487)
      4. pp.insert(pp.java:217)
      5. pp.actionPerformed(pp.java:153)
      5 frames
    3. Java RT
      EventDispatchThread.pumpEvents
      1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      2. javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      6. java.awt.Component.processMouseEvent(Unknown Source)
      7. java.awt.Component.processEvent(Unknown Source)
      8. java.awt.Container.processEvent(Unknown Source)
      9. java.awt.Component.dispatchEventImpl(Unknown Source)
      10. java.awt.Container.dispatchEventImpl(Unknown Source)
      11. java.awt.Component.dispatchEvent(Unknown Source)
      12. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      13. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      14. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      15. java.awt.Container.dispatchEventImpl(Unknown Source)
      16. java.awt.Window.dispatchEventImpl(Unknown Source)
      17. java.awt.Component.dispatchEvent(Unknown Source)
      18. java.awt.EventQueue.dispatchEvent(Unknown Source)
      19. java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
      20. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      20 frames