开发者

Java: GridLayout add to specific cell

开发者 https://www.devze.com 2023-01-26 21:09 出处:网络
how to add data to specific cell for example ([*] indicates a cell): [JButton1] [JButton2] [] [] [JButton3]

how to add data to specific cell for example ([*] indicates a cell): [JButton1] [JButton2] [] [] [JButton3]

Or is there any better solution rather than using null layout to get similar result - 开发者_开发百科giving a gap.


GridLayout of JPanels each with a CardLayout. When you want something to appear in a particular x,y position, add it to the JPanel and show that card.

0

精彩评论

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

关注公众号