/* @test *@bug4380543 *@keyheadful *@library/java/awt/regtesthelpers *@buildPassFailJFrame *@summarysetMargin()doesnotworkforAbstractButton *@runmain/manualbug4380543
*/ publicclass bug4380543 { static TestFrame testObj; static String instructions
= """
INSTRUCTIONS: 1. Check if the Left inset(margin) is set visually
similar to other three sides around the Radio Button
and CheckBox (insets set to 20 on all 4 sides). 2. Rendering depends on OS and supported Look and Feels.
Verify only with those L&F where margins are visible. 3. If the Left inset(margin) appears too small, press Fail, else press Pass. """; static PassFailJFrame passFailJFrame;
//Changing the Look and Feel on user selection publicvoid actionPerformed(ActionEvent e) {
setLookAndFeel(e.getActionCommand());
SwingUtilities.updateComponentTreeUI(this);
}
}
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.