Микрософт рулит Джавой. ;)

 
US Сергей-4030 #26.04.2006 20:06
+
-
edit
 

Сергей-4030

исключающий третье
★☆
админ. бан
Вот сегодня на работе мы благополучно разрешили один баг (самым легким и приятным способом - убеждением BA, что это не баг ;) ). Сопутствующие рассуждения показались мне интересными, не могу не привести (это пишет BA, с которым я работаю):




The Java Look & Feel Design Guidelines document (Java Look and Feel Design Guidelines, Appendix A, "Combo Boxes") has this to say about keyboard operations for combo boxes:

Combo Boxes
The following table lists the keyboard operations for combo boxes. For details on this component, see Combo Boxes.

Table 16 Keyboard Operations for Combo Boxes Keyboard Operation Action
Spacebar, down arrow, Alt-down arrow Posts associated list
Up arrow, down arrow When menu is posted, moves highlight up or down within list, selecting highlighted item
Enter, Return, spacebar Closes list, maintaining latest selection
Escape Closes list, returning to prior selection
 



However, JComboBox doesn't appear to follow these rules. Interestingly, this same problem was reported to Sun as a bug in 1999, but then closed as "not a bug" because that's supposedly how they wanted it to work. (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4281840). Apparently nobody bothered to tell the Look & Feel guys about it...

I think it's ironic that part of their reasoning for why it wasn't a bug was because "Combo boxes in Windows behave the same [way]. " I guess even the Java folks are able to fall back on the "because Microsoft does it that way" excuse sometimes (when it suits them, at least). :-)




PS Если я нарушаю правила цитирования на нерусском языке - могу перевести. :) Но этот топик вряд ли читают те, кто английским не владеет.
 

в начало страницы | новое
 
Поиск
Настройки
Твиттер сайта
Статистика
Рейтинг@Mail.ru