Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

After customizing themes colors and fronts, you can save these changes as a cust

ID: 3842184 • Letter: A

Question

After customizing themes colors and fronts, you can save these changes as a custom theme. To do this, begin by clicking. In the themes group. After customizing themes colors and fronts, you can save these changes as a custom theme. To do this, begin by clicking. In the themes group.

Explanation / Answer

import javax.swing.plaf.*; import javax.swing.plaf.metal.*; public class MoodyBlueTheme extends DefaultMetalTheme { public String getName() { return "Moody Blues"; } // blue shades private final ColorUIResource primary1 = new ColorUIResource(0x0, 0x33, 0x99); private final ColorUIResource primary2 = new ColorUIResource(0xD0, 0xDD, 0xFF); private final ColorUIResource primary3 = new ColorUIResource(0x0, 0x99, 0xFF); private final ColorUIResource secondary1 = new ColorUIResource(0x6F, 0x6F, 0x6F); private final ColorUIResource secondary2 = new ColorUIResource(0x9F, 0x9F, 0x9F); private final ColorUIResource secondary3 = new ColorUIResource(0x1f, 0x7f, 0xDC); // the functions overridden from the base // class => DefaultMetalTheme protected ColorUIResource getPrimary1() { return primary1; } protected ColorUIResource getPrimary2() { return primary2; } protected ColorUIResource getPrimary3() { return primary3; } protected ColorUIResource getSecondary1() { return secondary1; } protected ColorUIResource getSecondary2() { return secondary2; } protected ColorUIResource getSecondary3() { return secondary3; } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote