JDK-5051042 : JTextField and JComboBox have incorrect height under Windows L&F
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.5.1
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2004-05-21
  • Updated: 2022-09-16
  • Resolved: 2022-09-16
Related Reports
Relates :  
Description
Name: keR10081			Date: 05/21/2004


Currently under Windows L&F JTextField is two pixels lower and JComboBox
is one pixel higher than native components. We need to correct this
======================================================================

According to my calculations on Windows NT 4, JComboBox is TWO pixels too large and JTextField is ONE pixel too large. See the attached bitmap (sizes.bmp) where I've made this clear.
###@###.### 2004-05-31

Comments
EVALUATION As of Mustang b93 this is still a bug. The combobox is still off by one pixel. This could probably be fixed by manually adjusting the insets in the WindowsComboBoxUI.
23-08-2006

EVALUATION We now appear be 1px shorter, making the textfield match and the combobox one 1px too tall still. Since this isn't an XP bug I'm pushing it off to dolphin.
13-06-2006

EVALUATION This will probably be fixed by 6382711, and some related text field fixes.
10-05-2006

EVALUATION Name: keR10081 Date: 06/01/2004 We have to figure out what is real native control. What I see on the attached image seems to use some library (MFC?). I would compare our behaviour with pure Win32 and .NET applications. ###@###.### ====================================================================== Don't most Windows applications use MFC? The application that I used to generate the Windows part of the attached image was Internet Explorer. I used the "Internet Options" dialog. ###@###.### 2004-06-09
09-06-2004