How do I change the color of the custom background for create a new category which extends Now use this class instead of JMenuBar and
JMenu items Can I set it inside? I tried to do
.setBackgroundColor and it does not work!
JMenuBar :
Public square background menu bar JMenuBar {color bgColor = Color.WHITE; Public Zero Set Color (Color Color) {BG Color = Color; } @ Override Protected Zero Paint Comonant (Graphics G) {SuperPaintConant (G); Graphics 2DG2D = (Graphics 2D) G; G2d.setColor (bgcolor); G2d.fillRect (0, 0, getWidth () - 1, getHeight () - 1); }}
JMenuBar and set the background code to
setColor () .
No comments:
Post a Comment