O foco nÃo vai para o botÃo - superwaba

Galera não estou conseguindo passar o foco para o botão, oque está de errado em meu código, já teste direto no coletor e não funciona.
Segue o código, o meu botão é o bntbusca.

switch (e.type) {
case KeyEvent.KEY_PRESS:
if (e instanceof KeyEvent) {
switch (((KeyEvent) e).key) {
case IKeys.TAB:
if (e.target == edNumeroMedidor)

					btnBusca.requestFocus();
				break;

			}// fim switch interno
		} // fim do if
		break;
	}

Cara… vc tem certeza absoluta de que o programa entra no “if (e.target == edNumeroMedidor)” ???

Esta passando sim, se eu trocar o foco, para uma caixa de texto, após o edNumeroMedidor, ele vai…

Tem como vc postar o código completo da sua classe?

Cara tá uma bacalhauzinho, boa sorte, e brigado pela aenção…

public void onEvent(Event e) {

	switch (e.type) {

	case ControlEvent.PRESSED:

		if (e.target == btnCarregar) {
			TrataArquivo tr = new TrataArquivo();
			tr.lerlinhas();

			// ClientesDAO cl = new ClientesDAO();
			// cl.CriarTabela();

// btnCarregar.setEnabled(false);
// MessageBox mess = new MessageBox(“CARGA”,
// “TXT Carregado em,Documents”);
// mess.popupBlockingModal();
} else if (e.target == btnBusca) {

			Popula();

			// pegaHora();
		} else if (e.target == btnOk) {

			validanumeroDisplay();
			edNumeroMedidor.requestFocus();
		} else if (e.target == btnDescarregar) {
			exportar();

// MessageBox mess = new MessageBox(“DESCARGA”,
// “TXT Descarregado em,Documents”);
// mess.popupBlockingModal();

		} else if (e.target == btnLimpar) {
			Limpar();

		} else if (e.target == btnConfirmaData) {
			edData.setText(pegaData());
			pegaHora();
		} else if (e.target == btnSair) {
			exit(0);
		} else if (e.target == rdExterno) {
			rdInterno.setChecked(false);

		} else if (e.target == rdInterno) {
			rdExterno.setChecked(false);
		}

	}


	switch (e.type) {
	case KeyEvent.KEY_PRESS:
		if (e instanceof KeyEvent) {
			switch (((KeyEvent) e).key) {
			case IKeys.TAB:
				if (e.target == edNumeroMedidor)

					btnBusca.requestFocus();
				break;

			}// fim switch interno
		} // fim do if
		break;
	}

	switch (e.type) {
	case KeyEvent.KEY_PRESS:
		if (e instanceof KeyEvent) {
			switch (((KeyEvent) e).key) {
			case IKeys.TAB:
				if (e.target == btnBusca)

					edNumeroDisplayCampo.requestFocus();
				break;

			}// fim switch interno
		} // fim do if
		break;
	}

	switch (e.type) {
	case KeyEvent.KEY_PRESS:
		if (e instanceof KeyEvent) {
			switch (((KeyEvent) e).key) {
			case IKeys.TAB:
				if (e.target == edNumeroDisplayCampo)

			edIdCampo.requestFocus();
				break;

			}// fim switch interno
		} // fim do if
		break;
	}

	switch (e.type) {
	case KeyEvent.KEY_PRESS:
		if (e instanceof KeyEvent) {
			switch (((KeyEvent) e).key) {
			case IKeys.TAB:
				if (e.target == edIdCampo)

			edLeitura.requestFocus();
				break;

			}// fim switch interno
		} // fim do if
		break;
	}

	switch (e.type) {
	case KeyEvent.KEY_PRESS:
		if (e instanceof KeyEvent) {
			switch (((KeyEvent) e).key) {
			case IKeys.TAB:
				if (e.target == edLeitura)

			btnConfirmaData.requestFocus();
				break;

			}// fim switch interno
		} // fim do if
		break;
	}

	switch (e.type) {
	case KeyEvent.KEY_PRESS:
		if (e instanceof KeyEvent) {
			switch (((KeyEvent) e).key) {
			case IKeys.TAB:
				if (e.target == btnConfirmaData)

			btnOk.requestFocus();
				break;

			}// fim switch interno
		} // fim do if
		break;
	}


}