首页 | 本学科首页   官方微博 | 高级检索  
     

有序JList控件的设计与实现
引用本文:包子建.有序JList控件的设计与实现[J].微计算机信息,2007,23(18):219-221.
作者姓名:包子建
作者单位:201300,上海,上海工商外国语学院
摘    要:JList控件可以显示一组相似的数据列表,但其显示的数据通常是无序的。本文详细描述了如何设计和实现有序Jlist控件,运用一个简单的应用程序示范了其设计思想。使用装饰器设计模式为已有的ListModel接口提供了更多的功能,这样可以只需对已有的应用程序进行少量的修改,就可以充分获得使用有序列表样式所带来的好处。

关 键 词:有序JList  设计  实现
文章编号:1008-0570(2007)06-3-0219-03
修稿时间:2007-05-03

Designing and Implementing a Sorted JList Component
BAO ZIJIAN.Designing and Implementing a Sorted JList Component[J].Control & Automation,2007,23(18):219-221.
Authors:BAO ZIJIAN
Affiliation:Shanghai Industry and Commerce Foreign Language Col- lege, Shanghai 201300
Abstract:Java programmers often use the JList component to provide list views of similar data, Despite the convenience of this user interface component , a JList doesn' t sort its elements. This article describes how to produce sorted lists and uses a simple applica- tion to demonstrate concepts. The application uses the decorator design pattern to provide additional functionality to the ListModel ob- ject you already use. This allows you to use and benefit from a sorted model after making only minimal changes to your existing ap- plication code base.
Keywords:Java
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号