Required format to maintain for VE-readable code? [message #605190] |
Thu, 10 February 2005 22:01 |
Eclipse User |
|
|
|
Originally posted by: gouldfd.kpt.nuwc.navy.mil
We have a large project with multiple developers, and not everyone is using
Eclipse for development. I was looking for information on what format must
be adhered to for code to be readable by VE, so that we can ensure
consistency across GUI classes that people write.
For example, when a button is added, the code includes:
private JButton jButton = null;
private JButton getJButton() {
if (jButton == null) {
jButton = new JButton();
jButton.setBounds(224, 135, 45, 38);
}
return jButton;
}
jPanel.add(getJButton(), null);
If I add/edit code outside of VE, do I need to have a "get" method, for
example?
And what is the purpose/meaning of the comment at the end of the class?:
} // @jve:decl-index=0:visual-constraint="118,40"
Thanks very much for any help or pointers to existing
discussions/documentation.
---
Rick Gould
gouldfd@kpt.nuwc.navy.mil
|
|
|
Powered by
FUDForum. Page generated in 0.02773 seconds