开发者

Different row color in gridbag layout

开发者 https://www.devze.com 2023-04-08 11:51 出处:网络
How do i set different color for different row in GridBagLayout? P.S : I cannot use swing in my app a开发者_JS百科s client requirement.for AWT works setBackground(Color) tooA GridBagLayout has nothin

How do i set different color for different row in GridBagLayout?

P.S : I cannot use swing in my app a开发者_JS百科s client requirement.


for AWT works setBackground(Color) too


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消