Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Required format to maintain for VE-readable code?
Required format to maintain for VE-readable code? [message #605190] Thu, 10 February 2005 22:01
Eclipse UserFriend
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
Previous Topic:problems launching the VE
Next Topic:problems launching the VE
Goto Forum:
  


Current Time: Fri Apr 19 22:01:07 GMT 2024

Powered by FUDForum. Page generated in 0.02773 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top