File tree 2 files changed +5
-5
lines changed
src/java.desktop/macosx/classes/com/apple/laf
test/jdk/javax/swing/plaf/aqua
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -470,12 +470,12 @@ protected Rectangle rectangleForCurrentValue() {
470
470
471
471
if (comboBox .getComponentOrientation ().isLeftToRight ()) {
472
472
return new Rectangle (insets .left , insets .top + midHeight ,
473
- width - (insets .left + insets .right + buttonSize ) + 4 ,
473
+ width - (insets .left + insets .right + buttonSize ) + 3 ,
474
474
height - (insets .top + insets .bottom ));
475
475
}
476
476
else {
477
477
return new Rectangle (insets .left + buttonSize , insets .top + midHeight ,
478
- width - (insets .left + insets .right + buttonSize ) + 4 ,
478
+ width - (insets .left + insets .right + buttonSize ) + 3 ,
479
479
height - (insets .top + insets .bottom ));
480
480
}
481
481
}
Original file line number Diff line number Diff line change 28
28
* @requires (os.family == "mac")
29
29
* @summary Test verifies that combo box with custom editor renders
30
30
* focus ring around arrow button correctly.
31
- * @run main CustomComboBoxFocusTest
31
+ * @run main/othervm -Dsun.java2d.uiScale=1 CustomComboBoxFocusTest
32
32
*/
33
33
34
34
import java .awt .AWTException ;
35
- import java .awt .Component ;
36
35
import java .awt .Color ;
36
+ import java .awt .Component ;
37
37
import java .awt .GridLayout ;
38
38
import java .awt .Point ;
39
39
import java .awt .Rectangle ;
44
44
import java .awt .image .BufferedImage ;
45
45
import java .io .File ;
46
46
import java .io .IOException ;
47
- import java .lang .reflect .InvocationTargetException ;
48
47
import java .util .concurrent .CountDownLatch ;
48
+
49
49
import javax .imageio .ImageIO ;
50
50
import javax .swing .ComboBoxEditor ;
51
51
import javax .swing .JComboBox ;
You can’t perform that action at this time.
0 commit comments