| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> |
| <head> |
| <title>Customize Code Dialog Box (Swing GUI Builder)</title> |
| <link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/> |
| </head> |
| |
| <body> |
| <p><a id="gui.codecustomizer" name="gui.codecustomizer"></a></p> |
| <div id="NBCSH2285"><!-- infolevel="all" infotype="General" --><a id="sthref310" name="sthref310"></a> |
| <h1>Customize Code Dialog Box (Swing GUI Builder)</h1> |
| <a name="BEGIN" id="BEGIN"></a> |
| <p>Use to customize the way that code is generated for a component in the GUI Builder and to insert custom code within the GUI Builder's guarded blocks. |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2619"> |
| <param name="text" value="<html><u>How?</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| <p>In the Initialization Code section of the dialog box, you can type code before and after the generated initialization and creation code.</p> |
| <p>You can also replace a section of the generated code with your own custom code. Select a custom option from the drop-down list next to the section of code. Then type your custom code in place of the generated code.</p> |
| <p>In addition, you can set the way the variable is generated for the component.</p> |
| <p><b>Note</b>: You can also customize code for specific properties by clicking the ellipsis (...) button in the property sheet for a component. Customizing code this way in the property sheet has the advantage of more closely associating the custom code with the property, which makes the code easier to maintain.</p> |
| <a id="NBCSH2286" name="NBCSH2286"></a> |
| <hr><p><b>Related Topics</b></p> |
| <p>Developing Applications with NetBeans IDE, |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2578"> |
| <param name="text" value="<html><u>"Working with the GUI Builder"</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| |
| <!-- --> |
| <!-- Start Footer --> |
| |
| |
| <table summary="" cellspacing="0" cellpadding="0" width="100%"> |
| <tr> |
| <td align="left" width="86%"><a href="legal_notice.htm"> |
| Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a> |
| </td> |
| </tr> |
| </table> |
| <!-- --> |
| </body> |
| </html> |