bug-classpath
[Top][All Lists]
Advanced

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

[Bug swing/26342] New: During the editing session, the whole JTable is


From: audriusa at bluewin dot ch
Subject: [Bug swing/26342] New: During the editing session, the whole JTable is repainted each time the caret blinks.
Date: 17 Feb 2006 15:18:37 -0000

While editing the table cell, the BasicTableUI.paint(Graphics, JComponent) is
every time when the caret should be repainted, indicating, that all currently
visible table area should be repainted. The request to repaint the whole table
is also received after each keystroke during the editing.

This results the visibly slower response of the key pressing during the
editing. To observe the bug more clearly, you should temporary put the print
statement into BasicTableUI.paint. 

>From that I was able to figure out, the request to repaint originates in the
DefaultCaret which calls repaint(x,y,w,h) of its parent, JTable.TableTextField.
If we override this method, returning without action, no global repaint is
called, but the caret is also not visible. JTable is the parent of the
JTable.TableTextField.


-- 
           Summary: During the editing session, the whole JTable is
                    repainted each time the caret blinks.
           Product: classpath
           Version: 0.21
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: swing
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: audriusa at bluewin dot ch


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





reply via email to

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