开发者

Different row color in gridbag layout

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜