BF [ 1834393 ] VNumber.setFocusable not working
This commit is contained in:
parent
4bb15e12d2
commit
c72adcceb4
|
@ -35,7 +35,9 @@ import org.compiere.util.*;
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: VNumber.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
|
* @version $Id: VNumber.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
|
||||||
*
|
*
|
||||||
* @author Teo Sarca - BF [ 1739516 ]
|
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||||
|
* <li>BF [ 1739516 ] Warning on numeric field with range set
|
||||||
|
* <li>BF [ 1834393 ] VNumber.setFocusable not working
|
||||||
*/
|
*/
|
||||||
public final class VNumber extends JComponent
|
public final class VNumber extends JComponent
|
||||||
implements VEditor, ActionListener, KeyListener, FocusListener
|
implements VEditor, ActionListener, KeyListener, FocusListener
|
||||||
|
@ -244,6 +246,7 @@ public final class VNumber extends JComponent
|
||||||
// Don't show button if not ReadWrite
|
// Don't show button if not ReadWrite
|
||||||
if (m_button.isVisible() != value)
|
if (m_button.isVisible() != value)
|
||||||
m_button.setVisible(value);
|
m_button.setVisible(value);
|
||||||
|
setFocusable(value == true);
|
||||||
} // setReadWrite
|
} // setReadWrite
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -652,6 +655,14 @@ public final class VNumber extends JComponent
|
||||||
**/
|
**/
|
||||||
} // setField
|
} // setField
|
||||||
|
|
||||||
|
/*
|
||||||
|
* BF [ 1834393 ] VNumber.setFocusable not working
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void setFocusable(boolean value) {
|
||||||
|
m_text.setFocusable(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Remove Action Listner
|
* Remove Action Listner
|
||||||
|
|
Loading…
Reference in New Issue