bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/26843] New: JTextArea with lineWrap=true - selecting text acr


From: thebohemian at gmx dot net
Subject: [Bug swing/26843] New: JTextArea with lineWrap=true - selecting text across multiple lines cause IllegalArgumentException
Date: 24 Mar 2006 12:22:36 -0000

Type

abc
def
ghi

into a JTextArea with line wrap enabled, go before the b and press shift-down
(should select the text from b to d). On Classpath this causes the following
exception:

java.lang.IllegalArgumentException
   at javax.swing.text.JTextComponent.moveCaretPosition
(JTextComponent.java:1486)
   at javax.swing.text.DefaultEditorKit$SelectionDownAction.actionPerformed
(DefaultEditorKit.java:355)
   at javax.swing.SwingUtilities.notifyAction (SwingUtilities.java:1112)
   at javax.swing.JComponent.processKeyBinding (JComponent.java:2193)
   at javax.swing.JComponent.processKeyEvent (JComponent.java:2123)
   at java.awt.Component.processEvent (Component.java:2965)
   at java.awt.Container.processEvent (Container.java:914)
   at java.awt.Component.dispatchEventImpl (Component.java:4938)
   at java.awt.Container.dispatchEventImpl (Container.java:1734)
   at java.awt.Component.dispatchEvent (Component.java:2320)
   at java.awt.KeyboardFocusManager.redispatchEvent
(KeyboardFocusManager.java:1111)
   at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent
(DefaultKeyboardFocusManager.java:280)
   at java.awt.DefaultKeyboardFocusManager.dispatchEvent
(DefaultKeyboardFocusManager.java:253)
   at java.awt.EventDispatchThread.run (EventDispatchThread.java:74)
Exception during event dispatch:
java.lang.IllegalArgumentException
   at javax.swing.text.JTextComponent.moveCaretPosition
(JTextComponent.java:1486)
   at javax.swing.text.DefaultEditorKit$SelectionDownAction.actionPerformed
(DefaultEditorKit.java:355)
   at javax.swing.SwingUtilities.notifyAction (SwingUtilities.java:1112)
   at javax.swing.JComponent.processKeyBinding (JComponent.java:2193)
   at javax.swing.JComponent.processKeyEvent (JComponent.java:2123)
   at java.awt.Component.processEvent (Component.java:2965)
   at java.awt.Container.processEvent (Container.java:914)
   at java.awt.Component.dispatchEventImpl (Component.java:4938)
   at java.awt.Container.dispatchEventImpl (Container.java:1734)
   at java.awt.Component.dispatchEvent (Component.java:2320)
   at java.awt.KeyboardFocusManager.redispatchEvent
(KeyboardFocusManager.java:1111)
   at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent
(DefaultKeyboardFocusManager.java:280)
   at java.awt.DefaultKeyboardFocusManager.dispatchEvent
(DefaultKeyboardFocusManager.java:253)
   at java.awt.EventDispatchThread.run (EventDispatchThread.java:74)


-- 
           Summary: JTextArea with lineWrap=true - selecting text across
                    multiple lines cause IllegalArgumentException
           Product: classpath
           Version: 0.90
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: swing
        AssignedTo: thebohemian at gmx dot net
        ReportedBy: thebohemian at gmx dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26843





reply via email to

[Prev in Thread] Current Thread [Next in Thread]