bug-classpath
[Top][All Lists]
Advanced

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

[Bug swing/24229] New: JTextField and JTextArea problems


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug swing/24229] New: JTextField and JTextArea problems
Date: 6 Oct 2005 09:36:13 -0000

Recent changes broke the Swing text components... (unfortunately, some of
those changes were probably motivated by my previous bug reports. Sorry.)

Run the attached testcase which just displays one JTextField and one JTextArea
without further decoration inside a JFrame.

(1) Type into the textfield to see that the textfield is not updated.
    It seems that the keystrokes are recorded, because the textfield is
    updated when you exit and re-enter the component with the mouse.

    (Note: iirc, the textfield update was already broken before yesterdays
     caret-blinking patch)

(2) Randomly type into the textarea also sometimes triggers the following 
    exception:

java.lang.NullPointerException
   at java.lang.String.<init> (String.java:515)
   at java.lang.String.<init> (String.java:241)
   at gnu.java.awt.peer.gtk.GdkFontMetrics.charsWidth (GdkFontMetrics.java:110)
   at javax.swing.text.PlainView.insertOrRemoveUpdate (PlainView.java:352)
   at javax.swing.text.PlainView.insertUpdate (PlainView.java:376)
   ...


-- 
           Summary: JTextField and JTextArea problems
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: swing
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de


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





reply via email to

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