JDK-4690104 : Choice menu is not displayed in hopper build-11 (continued)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.1
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris,solaris_8
  • CPU: generic,sparc
  • Submitted: 2002-05-22
  • Updated: 2002-06-17
  • Resolved: 2002-05-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.1 betaFixed
Related Reports
Duplicate :  
Relates :  
Description
This bug report is the continuation of 
Bug 4684679 Choice menu is not displayed in hopper build-11

From Bug 4684679 Evaluation:

CardTest still fails on Solaris and Linux.
DrawTest still fails on Linux.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper-beta FIXED IN: hopper-beta INTEGRATED IN: hopper-beta VERIFIED IN: hopper-beta
14-06-2004

SUGGESTED FIX ------- awt_Component.c ------- *** /tmp/sccs.yGaaut Wed May 22 00:48:58 2002 --- awt_Component.c Tue May 21 23:10:38 2002 *************** *** 34,39 **** --- 34,40 ---- #include <X11/extensions/Xdbe.h> #include <Xm/PrimitiveP.h> #include <Xm/ManagerP.h> + #include <Xm/ComboBox.h> /* CanvasType widgets: Frame, Dialog, Window, Panel, Canvas, * & all lightweights (Component, Container) *************** *** 213,222 **** return; /* Some widgets use no fonts - skip them! */ widgetClass = XtClass(w); if (widgetClass == xmDrawingAreaWidgetClass || widgetClass == xmScrollBarWidgetClass || ! widgetClass == xmScrolledWindowWidgetClass) return; if (!f->initialized) { --- 214,227 ---- return; /* Some widgets use no fonts - skip them! */ + /* Also skip the Text widgets, since they each have their own setFont. */ widgetClass = XtClass(w); if (widgetClass == xmDrawingAreaWidgetClass || widgetClass == xmScrollBarWidgetClass || ! widgetClass == xmScrolledWindowWidgetClass || ! widgetClass == xmComboBoxWidgetClass || ! widgetClass == xmTextWidgetClass || ! widgetClass == xmTextFieldWidgetClass) return; if (!f->initialized) {
11-06-2004

EVALUATION The font is not set correctly in changeFont in awt_Component.c for ComboBox, Text, and TextField widgets. Don't set the font of these widgets in changefont, since they each have their own setFont. See Suggested Fix. ###@###.### 2002-05-22
22-05-2002