因"确定"和"取消"两个按钮都是做的统一的...所以数据库连接对话框中当连接成功时要获得"确定"按钮的图像.取不到..所以代码改为
package org.compiere.db;
public class CConnectionDialog extends JDialog implements ActionListener
{******************
private Icon getStatusIcon (boolean ok)
{
if (ok)
return Env.getImageIcon("OK24.gif");//bOK.getIcon();
else
return Env.getImageIcon("Cancel24.gif");//bCancel.getIcon();
}
*************
package org.compiere.db;
public class CConnectionDialog extends JDialog implements ActionListener
{******************
private Icon getStatusIcon (boolean ok)
{
if (ok)
return Env.getImageIcon("OK24.gif");//bOK.getIcon();
else
return Env.getImageIcon("Cancel24.gif");//bCancel.getIcon();
}
*************