如何在抽象表模型中编辑行 [英] How to edit Rows in an Abstract Table Model

查看:87
本文介绍了如何在抽象表模型中编辑行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有这个摘要表,可以用来制作视频租用应用程序.我希望用户能够使用提供的按钮对表格进行排序.在按钮中,我有一个仅显示过期视频",因此当用户在我的动作监听器中单击此按钮时,我希望能够隐藏行而不将其删除,因此当用户单击另一个按钮时,它们将重新出现在屏幕上我将如何去做?

Hello i have this Abstract Table which im making a video hiring application with. I want the user to be able to sort through the table with buttons I have supplied. In the buttons I have a "Show only overDue videos" so when the user hits this button in my action listener i want to be able to hide the rows not delete them so when the user clicks another button they will re-appear any ideas on how i would go about doing this?

推荐答案

使用JTable提供的filtering支持.

排序和过滤获取更多信息和示例.

Read the section from the Swing tutorial on Sorting and Filtering for more information and examples.

这篇关于如何在抽象表模型中编辑行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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