文档章节

介绍JComponentPack产品中的AComboBox控件

fralepg
 fralepg
发布于 2009/02/21 14:35
字数 311
阅读 76
收藏 0

 

Introduce the AComboBox component


Overview

The AComboBox is a drop down component in JComponentPack product, it’s different with the “ JComboBox” component in the core Java swing package, it can set the popup icon, popup component, etc.

Main Features

1. Customize the popup icon

The AComboBox component have the method “setPopupIcon(Icon)”, you can change the popup icon for your requirements, see the screenshot:

2. Customize the popup component

The AComboBox component have the method “setPopupComponent(Component), you can set the component will be display in the drop down menu.

3. Customize the component factory, this is a new feature since JComponentPack 1.1.0, You can configure the popup icon, popup component based the current value’s type, the method “setComponentFactory(AbstractComponentFactory)” in AComboBox can be used for this goal.
  AComboBox currently provide a default AbstractComponentFactory, it can configure the Date value to use the calendar popup icon and JCalendar component, see the article “JCalendar new features in JComponentPack 1.1.0” for details.

Sample Code

Configure the AComboBox component to use the Date value

// create the AComboBox
AComboBox comboBox = new AComboBox();
comboBox.setValue(new Date());
// configure the date format
DateCellRenderer renderer = (DateCellRenderer) comboBox.getRenderer();
renderer.setFormat(DateFormat.getDateInstance());


奇新Java控件——Java控件提供商和Java RIA, Web, J2ME解决方案开发商

JComponentPack是基于Swing框架的Java GUI控件集合,它包括JDataGrid电子表格版本JDataGrid数据库版本JComponentSet--Java swing控件集

了解更多产品。。。




--------------------------
新闻: 瑞星微点之争引发全民深思中国式道德
导航: 博客园首页   知识库   新闻   招聘   社区   小组   博问   网摘   找找看

本文转载自:http://www.cnblogs.com/fralepg/archive/2009/02/13/1389732.html

共有 人打赏支持
fralepg
粉丝 2
博文 12
码字总数 1821
作品 0
郑州
JComponentPack产品NetBeans IDE插件免费下载

JComponentPack Plug-in for NetBeans IDE 6.5 Installation 1. Download the JComponentPack Product and JComponentPack Plug-in for NetBeans IDE from: JComponentPack Product Evaluati......

fralepg
2009/02/21
0
0
使用JComponentPack产品中的JPrintPreview和PrintFactory打印和打印预览控件

Use JPrintPreview and PrintFactory in JComponentPack JPrintPreview is a Java Print Preview component in JComponentPack. PrintFactory is a utility class in com.zfqjava.swing pack......

fralepg
2009/02/21
0
0
JComponentPack3.0正式发布

奇新Java控件---Java控件提供商和Java RIA, Web, J2ME解决方案开发商 我们为您提供了一系列方便易用的Java控件,帮助开发人员提高工作效率,加快开发进程。 最新动态: JComponentPack3.0正式...

fralepg
2009/04/11
0
0
使用JComponentPack产品中的JWizardPane向导框架

Use JWizardPane in JComponentPack JWizardPane is a Java wizard component in JComponentPack. JWizardPane usage:Sample code JWizardPane wizardPane = new JWizardPane(); //wizardPan......

fralepg
2009/02/21
0
0
使用JComponentPack产品中的JLinkButton控件

How to use JLinkButton JLinkButton inherit from JButton,it have all function of JButton, and it also have a additional function, you can open a Explorer via URL and that don’t......

fralepg
2009/02/21
0
0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

qduoj~前端~二次开发~打包docker镜像并上传到阿里云容器镜像仓库

上一篇文章https://my.oschina.net/finchxu/blog/1930017记录了怎么在本地修改前端,现在我要把我的修改添加到部署到本地的前端的docker容器中,然后打包这个容器成为一个本地镜像,然后把这...

虚拟世界的懒猫
40分钟前
1
0
UML中 的各种符号含义

Class Notation A class notation consists of three parts: Class Name The name of the class appears in the first partition. Class Attributes Attributes are shown in the second par......

hutaishi
52分钟前
0
0
20180818 上课截图

小丑鱼00
今天
1
0
Springsecurity之SecurityContextHolderStrategy

注:下面分析的版本是spring-security-4.2.x,源码的github地址是: https://github.com/spring-projects/spring-security/tree/4.2.x 先上一张图: 图1 SecurityContextHolderStrategy的三个......

汉斯-冯-拉特
今天
0
0
LNMP架构(Nginx负载均衡、ssl原理、生成ssl密钥对、Nginx配置ssl)

Nginx负载均衡 网站的访问量越来越大,服务器的服务模式也得进行相应的升级,比如分离出数据库服务器、分离出图片作为单独服务,这些是简单的数据的负载均衡,将压力分散到不同的机器上。有时...

蛋黄_Yolks
今天
0
0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

返回顶部
顶部