Click here to Skip to main content
15,882,017 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Could someone give me some advice on building an swing app that like a Digital calculator that will have one textfield and many buttons to input the digits, mathematical operators and the decimal symbol. Because I have searched through the internet and there are plenty of source codes but they don't give a clear understanding about what kind of techniques, methods that I should use. Please note that to explain the purpose of the methods, constructors that will be used.

When creating this should I have to use arrys or control arrays ?

If someone has time please enlighten me!

Thank You!

Chiranthaka
Posted
Comments
[no name] 30-Jun-13 10:34am    
No.... you probably do not have to use arrys or control arrays.
Chiranthaka Sampath 30-Jun-13 10:35am    
Then what kind of steps then I should follow pal ?
[no name] 30-Jun-13 10:41am    
And how would you expect that I know anything about what it is that you are trying to do? *I* would probably use a control array, what *you* should do is up to you, your abilities and your skill level. You do not have to use an arry (whatever that is) or a control array. Which is the only real answerable question that you asked. "When creating this should I have to use arrys or control arrays ?".
Chiranthaka Sampath 30-Jun-13 10:44am    
Ok then could you tell me if you want to make a calculator then what will you use in java?
Chiranthaka Sampath 30-Jun-13 10:58am    
I have one question when I click a button i.e. No 1 then the value will be assign to the textfield. Then I want to add no 3 like 13 then the first entered deleted the second value will be entered to the textfield. Then how am I able to put numbers as many as possible ?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900