Results 1 to 5 of 5
Thread: Help Help please...........!!
- 02-20-2013, 03:17 AM #1
Member
- Join Date
- Jan 2013
- Location
- Kent , Washington
- Posts
- 7
- Rep Power
- 0
- 02-20-2013, 08:24 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,376
- Blog Entries
- 7
- Rep Power
- 17
- 02-20-2013, 09:10 AM #3
Re: Help Help please...........!!
But there is a workaround, Jos didn't mention. You can concatenate the string and the int into a new String and add that to the TextField.
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 02-20-2013, 10:47 AM #4
Member
- Join Date
- Nov 2012
- Location
- India
- Posts
- 70
- Rep Power
- 0
Re: Help Help please...........!!
It's not possible Because the text filed accept only text.you put any value in the text fie, the text field consider as a text(String)..
Regards
Android developer at Trinay Technology Solutions,http://www.trinaytech.com,5705750475
-
Re: Help Help please...........!!
You deleted your code which is important for those answering the question. I'll re-post it:
Java Code:Switch.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e ) { String characters = (SecondTextField.getText()); // String to read the user input int length = characters.length(); //change the string characters to length //to check the characters of string.. for(int i = 0; i < length; i++) { char character = characters.charAt(i); if(Character.isUpperCase(character)) { SecondTextField.setText("" + characters.toLowerCase()); } else if(Character.isLowerCase(character)) { //problem is here, how can i track the character which i already change above, means lowerCase SecondTextField.setText("" + characters.toUpperCase()); } } } });


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks