java.lang.IllegalArgumentException: canno t add to layout: unknown constraint: Editor

Coderanch | Jon Swanson | 4 years 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

    problems with custom JSpinner UI (Swing / AWT / SWT forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.IllegalArgumentException: canno t add to layout: unknown constraint: Editor
  2. 0

    problems with custom JSpinner UI

    Coderanch | 4 years ago | Jon Swanson
    java.lang.IllegalArgumentException: canno t add to layout: unknown constraint: Editor

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      canno t add to layout: unknown constraint: Editor

      at java.awt.BorderLayout.addLayoutComponent()
    2. Java RT
      JSpinner.setModel
      1. java.awt.BorderLayout.addLayoutComponent(BorderLayout.java:446)
      2. java.awt.BorderLayout.addLayoutComponent(BorderLayout.java:407)
      3. java.awt.Container.addImpl(Container.java:1072)
      4. java.awt.Container.add(Container.java:925)
      5. javax.swing.plaf.basic.BasicSpinnerUI.replaceEditor(BasicSpinnerUI.java:400)
      6. javax.swing.plaf.basic.BasicSpinnerUI$Handler.propertyChange(BasicSpinnerUI.java:955)
      7. java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
      8. java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
      9. java.awt.Component.firePropertyChange(Component.java:8170)
      10. javax.swing.JSpinner.setEditor(JSpinner.java:494)
      11. javax.swing.JSpinner.setModel(JSpinner.java:268)
      11 frames
    3. Unknown
      TestSpinner$ScaleActionListener.actionPerformed
      1. TestSpinner$ScaleActionListener.actionPerformed(TestSpinner.java:54)
      1 frame