The default Windows skin does not show the name of the selected layer names in in many drop down menus on Windows 7. To reproduce:
- Start OpenJUMP
- Create couple of new layers
- Go to Tools - Query - Spatial Query and have a look at Source Layer box
- Change to Windows classic skin and now Source Layer box looks better for the users.
-Jukka Rahkonen-
Spatial Query dialogue on Win7
It is better now but layer names appear only after moving focus out of the selection box. Another issue is that layer name box has a fixed width and it does not scale automatically as it does with the classic Windows skin.
probably an issue where the values are added to the gui component but the gui is not invalidated and layed out again at the right time, meaning before setting visible.
..ede
I solved the problem by tranfering the focus to another component after a JComboBox action (not very clean, but I have nothing better yet)
Yesterday, I tranferred the focus to the previous component in the cycle but as Jukka noticed, the previous component maybe another combobox.
I now transfer the focus to the parent component. Seems to work but I can't check what happens if you traverse the UI tree with the keyboard.
No feedback, I consider the bug as closed
Mike..
doublechaecked your solving angle today and decided that the root cause lied within the LayerNameRenderer.. while i was at it i took the freedom to make the listcell rendering aware of the width of te content. the appropriate entries in comboboxes using LayerNameRenderer should now have correct width and showing the complete name if possible according space constraints.
..ede