javax.swing.text.BadLocationException: Position not represented by view

GitHub | pmouawad | 3 years ago
  1. 0

    Getting BadLocationException: Position not represented by view

    GitHub | 3 years ago | pmouawad
    javax.swing.text.BadLocationException: Position not represented by view
  2. 0

    Here are the steps to reproduce: 1) Input some code 2) Hit the parse button, everything should be fine and the AST should show up 3) Place the cursor at the very beginning of the contents (i.e. at line 1, left most column) 4) Hit the backspace button (which erases the hidden newline) A BadLocationException is thrown, and here is its stack trace: {code} 17:18:53.121 [AWT-EventQueue-0] ERROR com.sonar.sslr.toolkit.SsdkGui - Error while scrolling to the code javax.swing.text.BadLocationException: Position not represented by view at javax.swing.text.CompositeView.modelToView(CompositeView.java:258) [na:1.6.0_26] at javax.swing.text.BoxView.modelToView(BoxView.java:467) [na:1.6.0_26] at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1497) [na:1.6.0_26] at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1035) [na:1.6.0_26] at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1010) [na:1.6.0_26] at javax.swing.text.JTextComponent.modelToView(JTextComponent.java:1400) [na:1.6.0_26] at com.sonar.sslr.toolkit.SsdkGui.scrollCodeToFirstSelectedPath(SsdkGui.java:280) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui.access$1(SsdkGui.java:268) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui$1.valueChanged(SsdkGui.java:129) [classes/:na] at javax.swing.JTree.fireValueChanged(JTree.java:2820) [na:1.6.0_26] at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3191) [na:1.6.0_26] at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629) [na:1.6.0_26] at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1078) [na:1.6.0_26] at javax.swing.tree.DefaultTreeSelectionModel.addSelectionPaths(DefaultTreeSelectionModel.java:406) [na:1.6.0_26] at javax.swing.tree.DefaultTreeSelectionModel.addSelectionPath(DefaultTreeSelectionModel.java:303) [na:1.6.0_26] at javax.swing.JTree.addSelectionPath(JTree.java:1701) [na:1.6.0_26] at com.sonar.sslr.toolkit.SsdkGui.astSelectPath(SsdkGui.java:334) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui.access$4(SsdkGui.java:309) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui$3.caretUpdate(SsdkGui.java:148) [classes/:na] at javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:391) [na:1.6.0_26] at javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4387) [na:1.6.0_26] at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:4409) [na:1.6.0_26] at javax.swing.text.DefaultCaret.fireStateChanged(DefaultCaret.java:782) [na:1.6.0_26] at javax.swing.text.DefaultCaret.changeCaretPosition(DefaultCaret.java:1257) [na:1.6.0_26] at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:1153) [na:1.6.0_26] at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1134) [na:1.6.0_26] at javax.swing.text.DefaultCaret$Handler.removeUpdate(DefaultCaret.java:1777) [na:1.6.0_26] at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243) [na:1.6.0_26] at javax.swing.text.AbstractDocument.handleRemove(AbstractDocument.java:608) [na:1.6.0_26] at javax.swing.text.AbstractDocument.remove(AbstractDocument.java:576) [na:1.6.0_26] at javax.swing.text.DefaultEditorKit$DeletePrevCharAction.actionPerformed(DefaultEditorKit.java:1045) [na:1.6.0_26] at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1639) [na:1.6.0_26] at javax.swing.JComponent.processKeyBinding(JComponent.java:2851) [na:1.6.0_26] at javax.swing.JComponent.processKeyBindings(JComponent.java:2886) [na:1.6.0_26] at javax.swing.JComponent.processKeyEvent(JComponent.java:2814) [na:1.6.0_26] at java.awt.Component.processEvent(Component.java:6065) [na:1.6.0_26] at java.awt.Container.processEvent(Container.java:2041) [na:1.6.0_26] at java.awt.Component.dispatchEventImpl(Component.java:4651) [na:1.6.0_26] at java.awt.Container.dispatchEventImpl(Container.java:2099) [na:1.6.0_26] at java.awt.Component.dispatchEvent(Component.java:4481) [na:1.6.0_26] at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850) [na:1.6.0_26] at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712) [na:1.6.0_26] at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990) [na:1.6.0_26] at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855) [na:1.6.0_26] at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676) [na:1.6.0_26] at java.awt.Component.dispatchEventImpl(Component.java:4523) [na:1.6.0_26] at java.awt.Container.dispatchEventImpl(Container.java:2099) [na:1.6.0_26] at java.awt.Window.dispatchEventImpl(Window.java:2478) [na:1.6.0_26] at java.awt.Component.dispatchEvent(Component.java:4481) [na:1.6.0_26] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643) [na:1.6.0_26] at java.awt.EventQueue.access$000(EventQueue.java:84) [na:1.6.0_26] at java.awt.EventQueue$1.run(EventQueue.java:602) [na:1.6.0_26] at java.awt.EventQueue$1.run(EventQueue.java:600) [na:1.6.0_26] at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_26] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) [na:1.6.0_26] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) [na:1.6.0_26] at java.awt.EventQueue$2.run(EventQueue.java:616) [na:1.6.0_26] at java.awt.EventQueue$2.run(EventQueue.java:614) [na:1.6.0_26] at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_26] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) [na:1.6.0_26] at java.awt.EventQueue.dispatchEvent(EventQueue.java:613) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) [na:1.6.0_26] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) [na:1.6.0_26] {code}

    SonarSource JIRA | 4 years ago | Dinesh Bolkensteyn
    javax.swing.text.BadLocationException: Position not represented by view
  3. 0

    Creating rules in the "Rules" view is throwing exceptions

    GitHub | 2 years ago | csnyulas
    javax.swing.text.BadLocationException: Position not represented by view
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sometimes, a BadLocationException is thrown by the toolkit. Steps to reproduce: 1) Input some valid code 2) Hit the parse button, everything should be fine, the AST show up 3) Hit the parse button again, and see the exception in the console Here is the stack trace: {code} 16:06:57.342 [AWT-EventQueue-0] ERROR com.sonar.sslr.toolkit.SsdkGui - Error while scrolling to the code javax.swing.text.BadLocationException: Position not represented by view at javax.swing.text.CompositeView.modelToView(CompositeView.java:258) [na:1.6.0_26] at javax.swing.text.BoxView.modelToView(BoxView.java:467) [na:1.6.0_26] at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1497) [na:1.6.0_26] at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1035) [na:1.6.0_26] at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1010) [na:1.6.0_26] at javax.swing.text.JTextComponent.modelToView(JTextComponent.java:1400) [na:1.6.0_26] at com.sonar.sslr.toolkit.SsdkGui.scrollCodeToFirstSelectedPath(SsdkGui.java:276) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui.access$100(SsdkGui.java:83) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui$1.valueChanged(SsdkGui.java:127) [classes/:na] at javax.swing.JTree.fireValueChanged(JTree.java:2820) [na:1.6.0_26] at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3191) [na:1.6.0_26] at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629) [na:1.6.0_26] at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1078) [na:1.6.0_26] at javax.swing.tree.DefaultTreeSelectionModel.addSelectionPaths(DefaultTreeSelectionModel.java:406) [na:1.6.0_26] at javax.swing.tree.DefaultTreeSelectionModel.addSelectionPath(DefaultTreeSelectionModel.java:303) [na:1.6.0_26] at javax.swing.JTree.addSelectionPath(JTree.java:1701) [na:1.6.0_26] at com.sonar.sslr.toolkit.SsdkGui.astSelectPath(SsdkGui.java:330) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui.access$300(SsdkGui.java:83) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui$3.caretUpdate(SsdkGui.java:145) [classes/:na] at javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:391) [na:1.6.0_26] at javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4387) [na:1.6.0_26] at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:4409) [na:1.6.0_26] at javax.swing.text.DefaultCaret.fireStateChanged(DefaultCaret.java:782) [na:1.6.0_26] at javax.swing.text.DefaultCaret.changeCaretPosition(DefaultCaret.java:1257) [na:1.6.0_26] at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:1153) [na:1.6.0_26] at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1134) [na:1.6.0_26] at javax.swing.text.DefaultCaret$Handler.removeUpdate(DefaultCaret.java:1777) [na:1.6.0_26] at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243) [na:1.6.0_26] at javax.swing.text.AbstractDocument.handleRemove(AbstractDocument.java:608) [na:1.6.0_26] at javax.swing.text.AbstractDocument.remove(AbstractDocument.java:576) [na:1.6.0_26] at javax.swing.JEditorPane.setText(JEditorPane.java:1493) [na:1.6.0_26] at com.sonar.sslr.toolkit.SsdkGui.showCode(SsdkGui.java:366) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui.loadFromString(SsdkGui.java:353) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui.access$800(SsdkGui.java:83) [classes/:na] at com.sonar.sslr.toolkit.SsdkGui$5.actionPerformed(SsdkGui.java:179) [classes/:na] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) [na:1.6.0_26] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) [na:1.6.0_26] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) [na:1.6.0_26] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) [na:1.6.0_26] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) [na:1.6.0_26] at java.awt.Component.processMouseEvent(Component.java:6288) [na:1.6.0_26] at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) [na:1.6.0_26] at java.awt.Component.processEvent(Component.java:6053) [na:1.6.0_26] at java.awt.Container.processEvent(Container.java:2041) [na:1.6.0_26] at java.awt.Component.dispatchEventImpl(Component.java:4651) [na:1.6.0_26] at java.awt.Container.dispatchEventImpl(Container.java:2099) [na:1.6.0_26] at java.awt.Component.dispatchEvent(Component.java:4481) [na:1.6.0_26] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) [na:1.6.0_26] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) [na:1.6.0_26] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) [na:1.6.0_26] at java.awt.Container.dispatchEventImpl(Container.java:2085) [na:1.6.0_26] at java.awt.Window.dispatchEventImpl(Window.java:2478) [na:1.6.0_26] at java.awt.Component.dispatchEvent(Component.java:4481) [na:1.6.0_26] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643) [na:1.6.0_26] at java.awt.EventQueue.access$000(EventQueue.java:84) [na:1.6.0_26] at java.awt.EventQueue$1.run(EventQueue.java:602) [na:1.6.0_26] at java.awt.EventQueue$1.run(EventQueue.java:600) [na:1.6.0_26] at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_26] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) [na:1.6.0_26] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) [na:1.6.0_26] at java.awt.EventQueue$2.run(EventQueue.java:616) [na:1.6.0_26] at java.awt.EventQueue$2.run(EventQueue.java:614) [na:1.6.0_26] at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_26] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) [na:1.6.0_26] at java.awt.EventQueue.dispatchEvent(EventQueue.java:613) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) [na:1.6.0_26] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) [na:1.6.0_26] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) [na:1.6.0_26] {code}

    SonarSource JIRA | 4 years ago | Dinesh Bolkensteyn
    javax.swing.text.BadLocationException: Position not represented by view
  6. 0

    Creating rules in the "Rules" view is throwing exceptions

    GitHub | 2 years ago | csnyulas
    javax.swing.text.BadLocationException: Position not represented by view

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.swing.text.BadLocationException

      Position not represented by view

      at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.modelToView()
    2. rsyntaxtextarea
      WrappedSyntaxView.modelToView
      1. org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.modelToView(WrappedSyntaxView.java:726)
      1 frame
    3. Java RT
      JTextComponent.modelToView
      1. javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1498)
      2. javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1036)
      3. javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1011)
      4. javax.swing.text.JTextComponent.modelToView(JTextComponent.java:1400)
      4 frames
    4. rsyntaxtextarea
      FoldManager$Listener.removeUpdate
      1. org.fife.ui.rtextarea.RTextAreaBase.possiblyUpdateCurrentLineHighlightLocation(RTextAreaBase.java:721)
      2. org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.foldToggled(RSyntaxTextArea.java:870)
      3. org.fife.ui.rsyntaxtextarea.folding.Fold.setCollapsed(Fold.java:508)
      4. org.fife.ui.rsyntaxtextarea.folding.Fold.toggleCollapsedState(Fold.java:537)
      5. org.fife.ui.rsyntaxtextarea.folding.FoldManager$Listener.removeUpdate(FoldManager.java:697)
      5 frames
    5. Java RT
      AbstractDocument.fireRemoveUpdate
      1. javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243)
      1 frame
    6. rsyntaxtextarea
      RSyntaxDocument.fireRemoveUpdate
      1. org.fife.ui.rsyntaxtextarea.RSyntaxDocument.fireRemoveUpdate(RSyntaxDocument.java:252)
      1 frame
    7. Java RT
      JTextComponent.replaceSelection
      1. javax.swing.text.AbstractDocument.handleRemove(AbstractDocument.java:608)
      2. javax.swing.text.AbstractDocument.remove(AbstractDocument.java:576)
      3. javax.swing.text.AbstractDocument.replace(AbstractDocument.java:652)
      4. javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1351)
      4 frames
    8. rsyntaxtextarea
      RTATextTransferHandler.importData
      1. org.fife.ui.rtextarea.RTextArea.handleReplaceSelection(RTextArea.java:853)
      2. org.fife.ui.rtextarea.RTextArea.replaceSelection(RTextArea.java:1226)
      3. org.fife.ui.rtextarea.RTATextTransferHandler.handleReaderImport(RTATextTransferHandler.java:172)
      4. org.fife.ui.rtextarea.RTATextTransferHandler.importData(RTATextTransferHandler.java:275)
      4 frames
    9. Java RT
      JTextComponent.paste
      1. javax.swing.TransferHandler.importData(TransferHandler.java:755)
      2. javax.swing.TransferHandler$TransferAction.actionPerformedImpl(TransferHandler.java:1696)
      3. javax.swing.TransferHandler$TransferAction.access$700(TransferHandler.java:1621)
      4. javax.swing.TransferHandler$TransferAction$1.run(TransferHandler.java:1645)
      5. javax.swing.TransferHandler$TransferAction$1.run(TransferHandler.java:1643)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
      8. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
      9. javax.swing.TransferHandler$TransferAction$2.run(TransferHandler.java:1660)
      10. javax.swing.TransferHandler$TransferAction$2.run(TransferHandler.java:1658)
      11. java.security.AccessController.doPrivileged(Native Method)
      12. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
      13. javax.swing.TransferHandler$TransferAction.actionPerformed(TransferHandler.java:1657)
      14. javax.swing.text.JTextComponent.invokeAction(JTextComponent.java:1485)
      15. javax.swing.text.JTextComponent.paste(JTextComponent.java:1463)
      15 frames
    10. rsyntaxtextarea
      RecordableTextAction.actionPerformed
      1. org.fife.ui.rtextarea.RTextArea.paste(RTextArea.java:981)
      2. org.fife.ui.rtextarea.RTextAreaEditorKit$PasteAction.actionPerformedImpl(RTextAreaEditorKit.java:2020)
      3. org.fife.ui.rtextarea.RecordableTextAction.actionPerformed(RecordableTextAction.java:105)
      3 frames
    11. Java RT
      EventDispatchThread.run
      1. javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1645)
      2. javax.swing.JComponent.processKeyBinding(JComponent.java:2859)
      3. javax.swing.JComponent.processKeyBindings(JComponent.java:2894)
      4. javax.swing.JComponent.processKeyEvent(JComponent.java:2822)
      5. java.awt.Component.processEvent(Component.java:6191)
      6. java.awt.Container.processEvent(Container.java:2083)
      7. java.awt.Component.dispatchEventImpl(Component.java:4776)
      8. java.awt.Container.dispatchEventImpl(Container.java:2141)
      9. java.awt.Component.dispatchEvent(Component.java:4604)
      10. java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1856)
      11. java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:722)
      12. java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1000)
      13. java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:865)
      14. java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:686)
      15. java.awt.Component.dispatchEventImpl(Component.java:4648)
      16. java.awt.Container.dispatchEventImpl(Container.java:2141)
      17. java.awt.Window.dispatchEventImpl(Window.java:2489)
      18. java.awt.Component.dispatchEvent(Component.java:4604)
      19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
      20. java.awt.EventQueue.access$400(EventQueue.java:82)
      21. java.awt.EventQueue$2.run(EventQueue.java:676)
      22. java.awt.EventQueue$2.run(EventQueue.java:674)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
      25. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
      26. java.awt.EventQueue$3.run(EventQueue.java:690)
      27. java.awt.EventQueue$3.run(EventQueue.java:688)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
      30. java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
      31. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
      32. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
      33. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
      34. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
      36. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      36 frames