NetBeans Quick Tip #23 - Changing Code in Blue Guarded Blocks



I noticed that some folks had a hard time finding out how to modify the blue, guarded code generated by Matisse. You can change this code from the Code tab in the component's properties. This winklet shows how to do it for constructors with parameters:

Comments:

Just found that the button in the design mode didn't show an icon corresponding to the modified codes. Is this an issue? Anyway, it's a nice demo. Thanks a lot.

Posted by Tzuto Lin on březen 04, 2006 at 05:18 odp. CET #

Well, I chose a bad example :( There is a better way how to add an icon to the button - directly from the properties of the button - and then you can see the icon. The purpose of this winklet was to show how to modify the blue code with any custom code... I should do another winkled about adding images to a button.

Posted by Roumen on březen 05, 2006 at 01:42 dop. CET #

The preview mode can't understand your custom code - you need to run your application if you want to see the effects of your custom code. Hope that makes it clear.

Posted by Roumen on březen 05, 2006 at 01:49 dop. CET #

Thanks Roumen. Yes, it is. Although Matisse is already good enough to make GUI development without any coding, this demo shows further abilities. Good example!

Posted by Tzuto Lin on březen 05, 2006 at 03:34 dop. CET #

Post a Comment:
Comments are closed for this entry.
About

Roman Strobl

Search

Archives
« duben 2014
PoÚtStČtSoNe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today