Background for Spacers

I'm using spacers with my gridbaglayout. My problem is that I can't figure out how to change the color of the spacers to match the rest of my background. Is this possible?

Thanks

1 comment
Comment actions Permalink

Hello Carol,

CS> I'm using spacers with my gridbaglayout. My problem is that I can't
CS> figure out how to change the color of the spacers to match the rest
CS> of my background. Is this possible?

The spacers are not supposed to be used with GridBagLayout - rather, they're
there to be used with IntelliJ's GridLayoutManager. You should use the GridBagLayout
constraints instead of the spacers to set up your layout.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.