You are currently browsing the category archive for the ‘pemrograman’ category.

		text.addVerifyListener(new VerifyListener() {
			public void verifyText(VerifyEvent e) {
				if (!('0' <= e.character && e.character <= '9' || e.character=='.')) {
					e.doit = false;
					return;
				}
			}
		});

Valisadi ini untuk menerima inputan hanya digit dan titik
Advertisements