楼主 admin 发表于2010年9月8日 上午10:01:17
JWizardPane - 功能强大的Java向导控件

奇新Java控件产品介绍

JComponentPack 是一个基于Java Swing的GUI类库,一系列可视化的JavaBeans的集合,它基于Swing的MVC架构,是100%的纯Java类库。它包括20多个 Swing所没有的控件,如Excel风格的Java电子表格控件,读取jtable数据库表的Java数据库控件,Java打印预览控件,Java向导 控件,Java日历控件JCalendar,类似资源管理器的Java Listview控件,Java滑动列表控件,Java目录选择控件,Java字体选择控件,Java3态选择树形控件,Java复合选择控件,Java 图片控件,Java图形控件,Java图表控件等一系列Java相关控件。

这些JavaBeans可以直接拖动到您的图形用户界面,它可提高您的工作效率,加快您的项目开发过程,给您的团队节省时间,减少开支。

JComponentPack主要包括以下核心Java控件

奇新Java电子表格控件

奇新Java数据绑定控件

奇新Java Swing界面控件集

奇新Java图表控件

奇新Java图形控件

 

JWizardPane提供了一个功能强大的Java向导控件.

创建先导

JWizardPane控件支持AWT和Java Swing控件, 很容易添加向导页. 任何AWT和Java Swing控件能够直接加入向导控件.

代码例子:

// create the JWizardPane

JWizardPane wizardPane = new JWizardPane();

// configure the side image, banner image, logo icon, logo text

wizardPane.setSideImage(sideImage);

wizardPane.setBannerImage(bannerImage);

wizardPane.setLogoIcon(logoIcon);

wizardPane.setLogoText(logoText);

// configure the control button

wizardPane.getControlButton(JWizardPane.FINISH_CONTROL).setVisible(false);

wizardPane.getControlButton(JWizardPane.HELP_CONTROL).setVisible(false);

// add the wizard pane

wizardPane.addPage(createPanel1()); // welcome page

wizardPane.addPage("header", "description", createPanel2()); // interior page

wizardPane.addPage("header", "description", new JButton("text")); // add a JButton

wizardPane.addPage("header", "description", new JFileChooser()); // add a JFileChooser

// add the wizard listener

wizardPane.addWizardListener(createWizardListener());

// add the change listener

wizardPane.addChangeListener(createChangeListener());

显示向导

JWizardPane控件支持直接显示窗体或者对话框.

代码例子:

// create the JWizardPane, show a frame contains the JWizardPane

JWizardPane pane = createWizardPane();

pane.showFrame("wizard frame");

 

// create the JWizardPane, show a dialog contains the JWizardPane

pane = createWizardPane();

pane.showDialog(null, "wizard dialog");

内部页风格

JWizardPane控件提供了两种不同的内部页风格, 左侧提示和和顶部提示.

代码例子:

// change the interiro page style to step tip

JWizardPane pane = createWizardPane();

pane.putClientProperty("JWizardPane.interiorPageStyle", "StepTip");

JWizardPane属性

JWizardPane控件提供很多属性,能够自定义控件观感, 例如标示图标,侧边图片等.

介绍WizardListener

改变JWizardPane控件的页面将触发不同的WizardListener事件.