JDK-4456550 : new Choice widget behaves differently on Motif 2.1
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2001-05-09
  • Updated: 2003-01-27
  • Resolved: 2003-01-27
Related Reports
Relates :  
Relates :  
Description
The fix for bug 4288285 changed the native widget used for Choice components on Motif2.1 platforms.  While the choice now has a scrollbar for when many items are added to the Choice, there are a couple ways in which this new widget behaves, compared to previous versions of Java, and compared to Windows platforms:

1) On Windows, and on previous version of AWT, clicking ANYWHERE on the Choice component would pop it down.  With the new widget, the Choice is only popped down if the user clicks on the small icon on the right hand side of the Choice.

2) The text in the Choice is now selectable, whereas it never has been before, on Windows or Motif.  Choice is not meant to have selectable text, and has none of the methods for dealing with text selections that TextComponents do.

This is reproducible using the test/java/awt/Choice/ChoiceBigTest regression test.

To maintain behavior across platforms and with previous releases, the Choice widget needs to pop down when the user clicks anywhere on the widget, and the text needs to be non-selectable.

brent.christian@eng 2001-05-09

Comments
EVALUATION will be filed by responsible engineer ====================== Deferring to Tiger due to lack of resources. Changing this widget has proved to be quite risky in the past. ###@###.### 2002-07-08 This should be taken care of by the XAWT project. ###@###.### 2002-09-10 Name: ssR10077 Date: 01/27/2003 This bug is almost impossible to fix as it requires to hot-wire the significant part of the ComboBox widget. Actually the best way I have found is to move ComboBox sources to workspace and implement the desired behavior instead of some second guessed hack in peer code. But the current behavior is essentially the same as for native Motif ComboBox widget. So I think we shouldn't spend resources for this bug, taking into account XAWT. ======================================================================
11-06-2004