bug-classpath
[Top][All Lists]
Advanced

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

[Bug swing/24229] JTextField and JTextArea problems


From: timo dot lindfors at iki dot fi
Subject: [Bug swing/24229] JTextField and JTextArea problems
Date: 8 Oct 2005 20:23:47 -0000


------- Comment #2 from timo dot lindfors at iki dot fi  2005-10-08 20:23 
-------
I was about to commit the following as a new bug report when I noticed
that it was a duplicate. I'm committing it as a comment to this bug
instead.

Steps to reproduce:
1. Compile and run the attached testcase
2. Type something to the textarea
3. Click the textarea

Expected results:
1. A window shows up
2. Typed text is visible
3. Nothing visible happens

Actual results:
1. A window shows up
2. Typed text is not shown at all
3. Text becomes visible

Testcase:
import javax.swing.*;
public class testcase extends JFrame {
        public static void main(String[] args) {
                (new testcase()).show();
        }
        public testcase() {
                JTextArea area = new JTextArea(5, 15);
                this.setContentPane(area);
                this.pack();
        }
}

I did some experiments with java.awt.Robot to reproduce this bug
automatically in a mauve testcase. The testcase is attached. I don't
know if it's good enough to be included in mauve but at least it can
easily point out when the bug occured exactly:

$ echo gnu.testlet.javax.swing.JTextArea.repaint|jamvm-classpath
2005-10-04T150000+0000 gnu.testlet.SimpleTestHarness
0 of 2 tests failed
$ echo gnu.testlet.javax.swing.JTextArea.repaint|jamvm-classpath
2005-10-04T153000+0000 gnu.testlet.SimpleTestHarness
FAIL: gnu.testlet.javax.swing.JTextArea.repaint: image before typing vs. after
typing (number 1)
FAIL: gnu.testlet.javax.swing.JTextArea.repaint: image after typing vs. after
repaint (number 1)
2 of 2 tests failed

"diff -ur ~/cp-src/2005-10-04T{1500,1530}00+0000/classpath" shows the following
changelog entries:
+2005-10-04  Lillian Angel  <address@hidden>
+
+       * javax/swing/plaf/metal/MetalToolTipUI.java
+       (paint): Added space around the toolTip's accelerator.
+       (fetchAcceleratorString): Added code to get mnemonic for
+       JMenuItem if it does not have an accelerator.
+
+2005-10-04  Roman Kennke  <address@hidden>
+
+       * javax/swing/text/DefaultCaret.java
+       (repaint): Adjust repaint rectangle.
+       (setVisible): Only repaint if the visible property actually changed.
+
+2005-10-04  Anthony Balkissoon  <address@hidden>
+
+       * javax/swing/text/JTextComponent.java: Reformatted file.
+


-- 

timo dot lindfors at iki dot fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timo dot lindfors at iki dot
                   |                            |fi


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





reply via email to

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