From 27ef7513471d939392ea0b003e700ea8427abb54 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:26:08 +0000 Subject: Set focus to password if number is set git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@320 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java index eb2a4bfe..e576bb6a 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java @@ -317,8 +317,9 @@ public class MobileBKUEnterNumberComposite extends StateComposite { public void setMobileNumber(String mobileNumber) { this.mobileNumber = mobileNumber; - if (this.mobileNumber != null) { + if (this.mobileNumber != null && !this.mobileNumber.isEmpty()) { this.txt_number.setText(this.mobileNumber); + this.txt_password.setFocus(); } else { this.txt_number.setText(""); //$NON-NLS-1$ } -- cgit v1.2.3