Java Swing GridLayout“Cell span”? [英] Java Swing GridLayout "Cell span"?

查看:236
本文介绍了Java Swing GridLayout“Cell span”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有办法让网格布局中的单个元素占用网格中的多个位置。示例:我想创建一个占据整个网格行的文本框,有什么办法可以做到这一点吗?

Is there a way to make a single element in a Grid layout take up more than 1 location in a grid. Example: I want to create a textbox that takes up an entire grid row, is there some way to do this?

推荐答案

使用 GridBagLayout

这篇关于Java Swing GridLayout“Cell span”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆