 
			  
		
			
			
			How to import Excel file into JTable
Here are three way to do this.Use "JTableReadTableModelTask " to do this. ( recommended )Use "ReadTableModelTask" to do thisUse ModelIO to do this.
The first and second the way will run in the background thread, the third way will run in current thread.
1. Use "JTableReadTableModelTask "to do this. (recommended)
 Here is the sample code to import excel file: JTable jTable = new JTable();
String excelFileName = "excelFileNa
 
			
			
		 
	
		
			
			
			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 JavaSwing 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 
 
			
			
		 
	
		
			
			
			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
need write code.
    There are two ways to use this function:
1.JLinkButton linkButton = new JLinkButton(“www. baidu.com”);
    URL url = new URL(“www.baidu.com”);
    linkButton.setURL(url);
  
2. URL url = new URL(“www.baidu.com”);
    JLinkButton linkButton = n
 
			
			
		 
	
		
			
			
			How to use "JComponentPack" in the NetBeans IDE 6.11. right click on Palette window,and select 'Palette manager...' .2. click 'New Category' button,enter a name then click 'Ok' button.3. click 'Add from Library...' button, and select a lib from 'Available Libraries',then click next button.4. select the component you need to use,and click next.5. select the 'Palette Categories' you want put the component into,then click finishe
 
			
			
		 
	
		
			
			
			How to disable the  splash screen in JDataGridBean?
1. Understand the JBean's splash API.
 JBean  provide the following API related the splash screen:
JBean.doSplash(); 
    This  methods will show the splash screen when it’s not open, and hide the screen window  when it’s visible.
JBean.  isShowSplashOnStartup();
    JBean.  setShowSplashOnStartup(Boolean);
These two API provides a property to control whether show the splash
screen windo
 
			
			
		 
	
		
			
			
			How to write function in JDataGrid Spreadsheet  Edition?1.  Understand the formula and function API used in JDataGrid Spreadsheet Edition?    Obviously you should understand the “Function” and it’s sub class.  The central method of Function interface is “Objectevaluate(FormulaContext ctx, List args)”, the method have the“FormulaContext” and List based arguments.   Override the method “evaluate(FormulaContext ctx, List args)”
 
			
			
		 
	
		
			
			
			JDataGrid formula works with the Beans BindingThis article introduce the Beans Binding can work with the JDataGrid formula.The JDataGrid formula works in  the CellFormulaContext, every function in the formula can get other cell value  from CellFormulaContext.The Beans Binding framework can bind  the different property together, if the cell value in JDataGrid binda JavaBean, the cell should have the binding expression, this can beimplements by a customize functi
 
			
			
		 
	
		
			
			
			为了让用户能更方便的体验公司控件的功能,公司给用户免费提供了15天的试用版授权码,用户可以在下列页面申请:
 http://www.zfqjava.com/zh_CN/contact.html
在表单主题选项选中"获取一个试用版授权",然后填写您的真实姓名和电子邮件,客服人员将把试用版授权码发送到您的邮箱
 
			
			
		 
	
		
			
			
			Java游戏开发日志(2007-6-7)
