BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Blackberry java plugin (http://www.blackberryforums.com/developer-forum/259454-blackberry-java-plugin.html)

Muftah 05-12-2012 01:17 PM

Blackberry java plugin
 
1 Attachment(s)
Hi there ,

hopefully I am writting in the right place to get my answer , actually I wanted to start a project which is Unint converter + GPA calculator , so I strated doing that , and I have designed the initial screens , but what I wanted is How to add command to the button to perform an opreation between 3 text field addion , mul, divsion... and show the result in the third text field .

I attached a picture which will make my idea more clear to you he design in the attachments ,
I appreciate any little help from you .

Dougsg38p 05-13-2012 12:36 PM

Re: Blackberry java plugin
 
Typically, you add a field change listener to the button(s).

See the javadocs.

Muftah 05-14-2012 03:44 PM

Re: Blackberry java plugin
 
Quote:

Originally Posted by Dougsg38p (Post 1777538)
Typically, you add a field change listener to the button(s).

See the javadocs.

I wish its as simple as that , but yet I am not able to get to my point .

its simple " connect a button to text field " , my friend suggested the same solution as you but yet I not getting what I want .

I would be grateful if you help much more .

hrbuckley 05-14-2012 06:40 PM

Re: Blackberry java plugin
 
Well, with the information you have provided, I would have said the same thing as Doug. So three to one, you need to provide more information in your question.

Muftah 05-15-2012 12:50 AM

Re: Blackberry java plugin
 
hi there ,

simply I need to create 3 text fields and button .

take the input from them the perform any mathematical operation then display the result is the third text fields .
This is really what i want , I hope you got it .

Muftah 05-15-2012 01:00 AM

Re: Blackberry java plugin
 
and guess what , I am doing my degree in Computer science and engineering , but java course was my first course since I have got my credit transferred from diploma program.

I have gone through C++ which is a nightmare , and believe me I was in love with Visual basic .

Muftah 05-15-2012 06:26 AM

Re: Blackberry java plugin
 
I will attach my app file .

hrbuckley 05-15-2012 08:10 AM

Re: Blackberry java plugin
 
Quote:

Originally Posted by Muftah (Post 1777687)
hi there ,

simply I need to create 3 text fields and button .

take the input from them the perform any mathematical operation then display the result is the third text fields .
This is really what i want , I hope you got it .

Then what Doug told you was correct.

Dougsg38p 05-15-2012 09:47 AM

Re: Blackberry java plugin
 
Did you look at the samples that ship with your dev tools? I'm pretty sure there is a demo "GPACalc" somewhere that calculates your grade point average when you press a button.

Also see this thread, and please learn to use the Search button on the forum.

http://www.blackberryforums.com/deve...p-buttons.html


All times are GMT -5. The time now is 12:46 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.