Reputation: 111
How do i set different color for different row in GridBagLayout?
P.S : I cannot use swing in my app as client requirement.
Upvotes: 0
Views: 3107
Reputation: 324118
A GridBagLayout has nothing to do with the color of any row or component added to a panel that uses a GridBadLayout as the layout manager. If you want different color rows, then you need to create a separate panel for every row of components and set the background color of the panel.
Upvotes: 1