因"确定"和"取消"两个按钮都是做的统一的...所以数据库连接对话框中当连接成功时要获得"确定"按钮的图像.取不到..所以代码改为
![Cool](http://localhost/Forums//emoticons/emotion-11.gif)
package org.compiere.db;
![[:#]](http://localhost/Forums//emoticons/emotion-16.gif)
public class CConnectionDialog extends JDialog implements ActionListener
![[+o(]](http://localhost/Forums//emoticons/emotion-41.gif)
{******************
![[*-)]](http://localhost/Forums//emoticons/emotion-42.gif)
private Icon getStatusIcon (boolean ok)
![[8-)]](http://localhost/Forums//emoticons/emotion-43.gif)
{
![Broken Heart](http://localhost/Forums//emoticons/emotion-50.gif)
if (ok)
![Cake](http://localhost/Forums//emoticons/emotion-49.gif)
return Env.getImageIcon("OK24.gif");//bOK.getIcon();
![Idea](http://localhost/Forums//emoticons/emotion-55.gif)
else
![Paradise](http://localhost/Forums//emoticons/emotion-59.gif)
return Env.getImageIcon("Cancel24.gif");//bCancel.getIcon();
![Email](http://localhost/Forums//emoticons/emotion-57.gif)
}
![Sleep](http://localhost/Forums//emoticons/emotion-56.gif)
*************