Code example for DigitsKeyListener

0
		// TODO Auto-generated constructor stub 
	} 
	 
	public void makeNumeric() 
	{ 
		DigitsKeyListener dkl = new DigitsKeyListener(true,true);
		txtBox.setKeyListener(dkl);
	} 
	public String getValue()
	{ 
		return txtBox.getText().toString();
	} 
	 
	public void setValue(String v)
	{ 
		txtBox.setText(v);
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java