mohsen-matrix's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 9 (0.02 per day)
- Joined:
- 18-May 12
- Profile Views:
- 527
- Last Active:
May 26 2012 03:51 AM- Currently:
- Offline
Previous Fields
- Country:
- Who Cares
- OS Preference:
- Who Cares
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: calculator
Posted 26 May 2012
macosxnerd101, on 25 May 2012 - 11:32 PM, said:You need to add a WindowListener to your Frame.
Quote
when click on all button or the layout the counter change and for example my title change
If you want to track the JButton clicks, use a Map<JButton, Integer> to map the JButtons to their counts. And the Frame setTitle() method can be used to update the title.
I want to comment as well on your code. First, it isn't good practice to mix AWT and Swing. Stick with Swing, as AWT is a dead technology. Second, use arrays and loops. If you have variables named b1, b2, b3, b4, etc., that is begging for an array. Lastly, your code is not easy to read. Please properly format your code for others to read.
I have two question! How can i be a good programmer? and what reference you advise me to read for my learning good and better and Newest technology? please guide me which book is good.( I haven't a teacher or special book & reference to learn..)
tnx
My Information
- Member Title:
- New D.I.C Head
- Age:
- 20 years old
- Birthday:
- July 31, 1992
- Gender:
-
- Programming Languages:
- C,C++,JAVA
Contact Information
- E-mail:
- Click here to e-mail me
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
mohsen-matrix has no profile comments yet. Why not say hello?