编辑就地 Swing 组件 [英] Edit in-place Swing Components

查看:32
本文介绍了编辑就地 Swing 组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道 Swing 组件本质上类似于电子表格,允许就地编辑并且可以(以某种方式)绑定到数组?

Does anyone know of a Swing component that is spreadsheet like in nature, allows in-place editing and can be bound (in some fashion) to an array?

推荐答案

如果您不需要任何花哨的东西,您可以使用标准的 Swing JTable(参见例如 此处).它允许您使用就地编辑,您可以定义自己的表模型.

If you do not need anything fancy you might use a standard swing JTable (see e.g. here). It allows you to use in-place editing and you can define your own table model.

这篇关于编辑就地 Swing 组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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