From d6e0af46379fee4ddcca323219e2a0312122fdef Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Thu, 20 Nov 2008 11:44:43 +0000 Subject: [PATCH] parameterizing.. --- looks/src/org/compiere/swing/CField.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/looks/src/org/compiere/swing/CField.java b/looks/src/org/compiere/swing/CField.java index 39d6a8ee70..e4a82519fd 100644 --- a/looks/src/org/compiere/swing/CField.java +++ b/looks/src/org/compiere/swing/CField.java @@ -87,7 +87,7 @@ public class CField extends JComboBox * @param cFieldPopup the popup dialog * @param title title for popup */ - public CField (CFieldEditor editor, Class cFieldPopup, String title) + public CField (CFieldEditor editor, Class cFieldPopup, String title) { super(new Object[] {"1", "2"}); if (editor != null) @@ -98,7 +98,7 @@ public class CField extends JComboBox // Check popup if (cFieldPopup != null) { - Class[] interfaces = cFieldPopup.getInterfaces(); + Class[] interfaces = cFieldPopup.getInterfaces(); boolean found = false; for (int i = 0; i < interfaces.length; i++) { @@ -115,7 +115,7 @@ public class CField extends JComboBox } // CField private CFieldEditor m_editor = null; - private Class m_popupClass = null; + private Class m_popupClass = null; private String m_title = null; private Object m_oldValue = null; @@ -170,14 +170,14 @@ public class CField extends JComboBox CFieldPopup popup = null; if (win instanceof Dialog) { - Constructor constructor = m_popupClass.getConstructor - (new Class[] {Dialog.class, String.class, Boolean.class}); + Constructor constructor = m_popupClass.getConstructor + (new Class[] {Dialog.class, String.class, Boolean.class}); popup = (CFieldPopup)constructor.newInstance(new Object[] {(Dialog)win, m_title, new Boolean(true)}); } else if (win instanceof Frame) { - Constructor constructor = m_popupClass.getConstructor + Constructor constructor = m_popupClass.getConstructor (new Class[] {Frame.class, String.class, Boolean.class}); popup = (CFieldPopup)constructor.newInstance(new Object[] {(Frame)win, m_title, new Boolean(true)});