Is there any naming convention for swing components such JButtons..? or does any body knows any good way for doing that?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
AFAIK, there is no special convention for swing elements.
The best thing you can do is using names as explicit as possible (as usual).
For my part I try to use the name of the wanted content followed by the type of the component.
For example for a textfield containing an age I would use
ageTextField.For a button used to sumbit I would use
submitButton.