To avoid naming conflicts between package and class, use lower camel case
or lower case abbreviation
for any packages and upper camel case
for classes.
- package
biz
ui
topBar
- class
Business
AdDepartment
Elements that might be accessed manually in .java
should have a abbreviation prefix.
class | prefix | example |
---|---|---|
JLabel | lbl | lblTitle |
JButton | btn | btnAdd |
JTable | tbl | tblOrder |
JTextField | txt | txtUsername |
JPassword | txt | txtPassword |
JComboBox | cb | cbState |
JCheckBox | ck | ckEnabled |
JRadioButton | rb | rbMale |
Video platform for non-profit organizations