ergerodr / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

JSpinnerFixture.enterText() doesn't select existed text when JSpinner doesn't have a caret. #303

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Маке a frame with two spinners.
2. Find one spinner which doesn't have a caret.
3. Set value to spinner.
4. Invoke JSpinnerFixture.enterText() on this spinner.

What is the expected output? What do you see instead?
Expected that fixture selects all exited text in the spinner, removes it
and enters new text.
Instead of it, old text not selected and new text just added to the old text.

What version of the product are you using? On what operating system?
1.0
but in 10b2 this use case is working fine.

Please provide any additional information below.

Original issue reported on code.google.com by parili...@gmail.com on 5 Feb 2009 at 3:09

GoogleCodeExporter commented 8 years ago
Hi parilinsa,

#enterText does select the existing text, but it does so before giving input 
focus to
the JSpinner's editor, which is a JFormattedTextField by default. 
JFormattedTextField
can format its text differently depending on
whether it has focus or not, so it reformats the text after gaining or losing 
the
focus, resulting in the loss of the selection.
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4740914 .

Regards,
Csabi

Original comment by csaba.ju...@gmail.com on 6 Feb 2009 at 3:40

GoogleCodeExporter commented 8 years ago
I forgot :) See issue 306 if you experience losing input.

Original comment by csaba.ju...@gmail.com on 6 Feb 2009 at 3:41

GoogleCodeExporter commented 8 years ago

Original comment by Alex.Rui...@gmail.com on 8 Feb 2009 at 5:40

GoogleCodeExporter commented 8 years ago
Fixed. Changes can be reviewed at 
http://code.google.com/p/fest/source/detail?r=2268
(2268).

Parilinsa, I'd like to add you to the list of contributors. If you agree, 
please feel
free to send me your name and the address of your blog or personal website to
alex.ruiz.05 at gmail.com

Thanks,
-Alex

Original comment by Alex.Rui...@gmail.com on 9 Feb 2009 at 7:23

GoogleCodeExporter commented 8 years ago
Issue migrated to http://kenai.com/jira/browse/FEST-17

Original comment by Alex.Rui...@gmail.com on 14 Feb 2009 at 9:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Issue migrated to http://jira.codehaus.org/browse/FEST-19

Original comment by Alex.Rui...@gmail.com on 2 Mar 2009 at 7:28