Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Conventions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Conventions" Watch "Conventions" New topic
Author

Conventions

Christian Long
Greenhorn

Joined: Oct 04, 2007
Posts: 28
I am creating an Applet with labels, buttons, textfields etc..

I have named my labels: lblEnter, lblOther ... my Buttons: btn....
(I have used conventions from in vb.net)

Are these conventions correct for Java as well ? or does Java use other conventions?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
I'm not aware of any widely followed naming conventions (except for how to use uppercase and lowercase), but you might be interested in Sun's Java Coding Conventions.


Ping & DNS - my free Android networking tools app
 
 
subject: Conventions
 
Similar Threads
Populating panel with button using loop!
JRadioButton labels don't change on repaint()
Swing Buttons visible in Linux but not Windows
Could you make dynmically textfields, labels, and buttons
GridBagLayout Compile problems