Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How to customize the code generated in VE
How to customize the code generated in VE [message #612312] Wed, 15 March 2006 11:41
shobana is currently offline shobanaFriend
Messages: 13
Registered: July 2009
Junior Member
Hi All,
A default code is generated when a component drag and drop is done from
the component palette.
Something like this

/**
* This method initializes text Field
*
* @return java.awt.TextField
*/
private TextField getTextField() {
if (textField == null) {
textField = new TextField();
textField.setBounds(new java.awt.Rectangle(123,16,45,20));
}
return textField;
}


I want to add few default properties to the code generated when a
component is dragged and dropped on to the container on the free form
Like setting a color to that component. Can any body help me in this
regard?

Thank You and Regards
Shobana
Previous Topic:Callisto Contest
Next Topic:Problem creating visual class
Goto Forum:
  


Current Time: Wed Apr 24 23:04:53 GMT 2024

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

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

Back to the top