Point p = leftDialog.getLocationOnScreen(); int x = p.x + (int)(leftDialog.getWidth() * 0.9); int y = p.y + (int)(leftDialog.getHeight() * 0.9); boolean f = robot.getPixelColor(x, y).equals(leftDialog.getBackground());
assertFalse(f, msg);
}
Point p = rightFrame.getLocationOnScreen(); int x = p.x + (int)(rightFrame.getWidth() * 0.1); int y = p.y + (int)(rightFrame.getHeight() * 0.9); boolean f = robot.getPixelColor(x, y).equals(rightFrame.getBackground());
assertFalse(f, msg);
}
final String msg1; if (isModeless) {
msg1 = "The modeless dialog was overlapped by the " + "parent dialog after calling toBack method.";
} else {
msg1 = "The " + type + " dialog was overlapped by the blocked dialog.";
}
EventQueue.invokeAndWait(() -> { checkLeftDialogIsOverlapped(msg1); });
final String msg3; if (isModeless) {
msg3 = "The modeless dialog is still behind the parent dialog.";
} else {
msg3 = "The " + type + " dialog was overlapped by the blocked " + "dialog after calling toFront method for the blocked dialog.";
}
EventQueue.invokeAndWait(() -> { checkLeftDialogIsOverlapped(msg3); });
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.