wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 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: 39576
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conventions
 
Similar Threads
GridBagLayout Compile problems
Swing Buttons visible in Linux but not Windows
Could you make dynmically textfields, labels, and buttons
JRadioButton labels don't change on repaint()
Populating panel with button using loop!