From 74a955839440afc55ba245740ef7958ce9cac2b2 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sun, 3 Feb 2008 11:03:00 +0000 Subject: [PATCH] BF [ 1831060 ] Location dialog should use Address1, Address2 ... elements --- .../src/org/compiere/grid/ed/VLocationDialog.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/client/src/org/compiere/grid/ed/VLocationDialog.java b/client/src/org/compiere/grid/ed/VLocationDialog.java index f30080de78..b7c92223ee 100644 --- a/client/src/org/compiere/grid/ed/VLocationDialog.java +++ b/client/src/org/compiere/grid/ed/VLocationDialog.java @@ -34,6 +34,9 @@ import org.adempiere.model.*; * * @author Jorg Janke * @version $Id: VLocationDialog.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $ + * + * @author Teo Sarca, SC ARHIPAC SERVICE SRL + *
  • BF [ 1831060 ] Location dialog should use Address1, Address2 ... elements */ public class VLocationDialog extends CDialog implements ActionListener @@ -109,10 +112,10 @@ public class VLocationDialog extends CDialog private ConfirmPanel confirmPanel = new ConfirmPanel(true); private BorderLayout southLayout = new BorderLayout(); // - private CLabel lAddress1 = new CLabel(Msg.getMsg(Env.getCtx(), "Address")+ " 1"); - private CLabel lAddress2 = new CLabel(Msg.getMsg(Env.getCtx(), "Address")+ " 2"); - private CLabel lAddress3 = new CLabel(Msg.getMsg(Env.getCtx(), "Address")+ " 3"); - private CLabel lAddress4 = new CLabel(Msg.getMsg(Env.getCtx(), "Address")+ " 4"); + private CLabel lAddress1 = new CLabel(Msg.getElement(Env.getCtx(), "Address1")); + private CLabel lAddress2 = new CLabel(Msg.getElement(Env.getCtx(), "Address2")); + private CLabel lAddress3 = new CLabel(Msg.getElement(Env.getCtx(), "Address3")); + private CLabel lAddress4 = new CLabel(Msg.getElement(Env.getCtx(), "Address4")); private CLabel lCity = new CLabel(Msg.getMsg(Env.getCtx(), "City")); private CLabel lCountry = new CLabel(Msg.getMsg(Env.getCtx(), "Country")); private CLabel lRegion = new CLabel(Msg.getMsg(Env.getCtx(), "Region")); @@ -320,7 +323,7 @@ public class VLocationDialog extends CDialog // TODO: fix bug that occurs when the new region name is shorter than the old region name } - // refrseh + // refresh mainPanel.removeAll(); initLocation();