Opened 10 years ago
Closed 10 years ago
#10470 closed defect (fixed)
Add tag: problem with position in drop down list
Reported by: | skyper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 14.12 |
Component: | Core | Version: | latest |
Keywords: | template_report drop down list linux | Cc: | Hojoe, flaimo |
Description (last modified by )
What steps will reproduce the problem?
- select an object
- open add tag dialog
- select a key from drop down list (e.g. highway)
- switch focus to somewhere else in the window ("value", buttons) and back
- open list again by pressing "down" from cursor block.
- position in list is at the key
- press one more "down"
- you are on top of list (e.g. access)
What is the expected result?
you are able to continue at the position of the previous selected key
What happens instead?
You jump to top of the list. "Up" does not work at all (used to work though)
Please provide any additional information below. Attach a screenshot if possible.
- Long time bug. Nothing new (except the "up" key, maybe).
- Really annoying if you just missed a tag as the list grows all the time.
- Did not check the value text box so far but the lists usually are much shorter
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2014-09-02 01:36:00 Last Changed Author: Don-vip Revision: 7485 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2014-09-02 02:57:38 +0200 (Tue, 02 Sep 2014) Last Changed Rev: 7485 Identification: JOSM/1.5 (7485 en) Linux Debian GNU/Linux 7.6 (wheezy) Memory Usage: 572 MB / 882 MB (130 MB allocated, but free) Java version: 1.7.0_65, Oracle Corporation, OpenJDK 64-Bit Server VM Java package: openjdk-7-jre:amd64-7u65-2.5.1-5~deb7u1 Dataset consistency test: No problems found Plugins: - OpeningHoursEditor (30609) - conflation (0.1.7) - imagery-xml-bounds (30495) - jts (30416) - mirrored_download (30495) - notes (v0.9.4) - photoadjust (30428) - reverter (30521) - terracer (30614) - todo (29154) - undelete (30416) - utilsplugin2 (30460) - wikipedia (30449) Last errors/warnings: - W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker$MapCSSTagCheckerAndRule@3e367ac4, code=3000] - W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker$MapCSSTagCheckerAndRule@3e367ac4, code=3000] - W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker$MapCSSTagCheckerAndRule@6503a2f4, code=3000] - W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker$MapCSSTagCheckerAndRule@6503a2f4, code=3000] - W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.UnconnectedWays$UnconnectedHighways@d791c68c, code=1301]
Attachments (0)
Change History (16)
follow-up: 2 comment:1 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:2 by , 10 years ago
Replying to Don-vip:
Works for me with Windows Look-and-feel, can you please try with different look-and-feels to see if it always fails or not? If it fails only for some LAFs please report them here.
Sorry, forgot one important point between 3. and 4. you need to switch the focus to the "value" combo or buttons and back.
Tried all four styles. All show the same behaviour.
comment:3 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
comment:4 by , 10 years ago
Description: | modified (diff) |
---|
follow-up: 6 comment:5 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
Still cannot reproduce (Windows, tried Java 7 and 8, plus Windows and Metal look and feels). Can you try on a different machine with another window manager?
comment:6 by , 10 years ago
Replying to Don-vip:
Still cannot reproduce (Windows, tried Java 7 and 8, plus Windows and Metal look and feels). Can you try on a different machine with another window manager?
Ok, tried different machine with Debian 7.6 (wheezy), LXDE with openbox. Still the same.
comment:7 by , 10 years ago
Keywords: | linux added |
---|
comment:8 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
comment:9 by , 10 years ago
I can confirme this problem on Windows with Windows l&f.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2014-09-29 22:12:08 Last Changed Author: Don-vip Revision: 7588 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Relative URL: ^/trunk URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2014-09-29 23:52:43 +0200 (Mon, 29 Sep 2014) Last Changed Rev: 7588 Identification: JOSM/1.5 (7588 de) Windows 8 64-Bit Memory Usage: 228 MB / 1810 MB (118 MB allocated, but free) Java version: 1.7.0_65, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Also the history combobox in the search dialog has the same problem.
comment:10 by , 10 years ago
I think the main problem is the wrong 'toString' implementation in AutoCompletionListItem. All classes around the JCombobox (model, renderer, editor,...) uses the toString() method. The toString() method should give the displayed string back. At the moment toString gives something else back. There are many code, that works around, but not good enough.
The best solution is to simplify AutoCompletionListItem#toString():
@Override public String toString() { return value; }
I don't know if AutoCompletionListItem#toString() is used somewhere else. It may be that there are some risks.
comment:11 by , 10 years ago
Cc: | added |
---|
comment:13 by , 10 years ago
Cc: | added |
---|
comment:14 by , 10 years ago
OK I have finally understood the bug and am able to reproduce it. Looking into it...
comment:15 by , 10 years ago
Milestone: | → 14.12 |
---|
Works for me with Windows Look-and-feel, can you please try with different look-and-feels to see if it always fails or not? If it fails only for some LAFs please report them here.