介紹JComponentPack產品中的AComboBox控件

 

Introduce the AComboBox componenthtml


Overviewjava

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 iconapi

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 ide

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

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.this

Sample Codespa

Configure the AComboBox component to use the Date valuecomponent

// 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控件集

瞭解更多產品。。。




--------------------------
新聞: 瑞星微點之爭引起全民深思中國式道德
導航: 博客園首頁   知識庫   新聞   招聘   社區   小組   博問   網摘   找找看
相關文章
相關標籤/搜索