File tree 2 files changed +10
-7
lines changed
javax/swing/JInternalFrame/8146321
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -878,7 +878,6 @@ java/awt/event/MouseEvent/SpuriousExitEnter/SpuriousExitEnter.java 8254841 macos
878
878
java/awt/Focus/AppletInitialFocusTest/AppletInitialFocusTest1.java 8256289 windows-x64
879
879
java/awt/FullScreen/TranslucentWindow/TranslucentWindow.java 8258103 linux-all
880
880
java/awt/Focus/FrameMinimizeTest/FrameMinimizeTest.java 8016266 linux-x64
881
- javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java 8260331 linux-x64
882
881
883
882
884
883
############################################################################
Original file line number Diff line number Diff line change @@ -194,9 +194,11 @@ private static void getImageIconBufferedImage() throws Exception {
194
194
Rectangle rect = internalFrame .getBounds ();
195
195
Rectangle captureRect = new Rectangle (
196
196
point .x + internalFrame .getInsets ().left ,
197
- point .y ,
198
- rect .width ,
199
- internalFrame .getInsets ().top );
197
+ point .y + internalFrame .getInsets ().top ,
198
+ titleImageIcon .getIconWidth (),
199
+ titleImageIcon .getIconHeight ());
200
+
201
+ System .out .println ("imageicon captureRect " + captureRect );
200
202
imageIconImage
201
203
= robot .createScreenCapture (captureRect );
202
204
}
@@ -206,9 +208,11 @@ private static void getIconBufferedImage() throws Exception {
206
208
Rectangle rect = internalFrame .getBounds ();
207
209
Rectangle captureRect = new Rectangle (
208
210
point .x + internalFrame .getInsets ().left ,
209
- point .y ,
210
- rect .width ,
211
- internalFrame .getInsets ().top );
211
+ point .y + internalFrame .getInsets ().top ,
212
+ titleIcon .getIconWidth (),
213
+ titleIcon .getIconHeight ());
214
+
215
+ System .out .println ("icon captureRect " + captureRect );
212
216
iconImage
213
217
= robot .createScreenCapture (captureRect );
214
218
}
You can’t perform that action at this time.
0 commit comments