| View previous topic :: View next topic |
| Author |
Message |
shche123
Joined: 19 May 2009 Posts: 41
|
Posted: Thu Jun 25, 2009 3:54 pm Post subject: Developing Java ME Applications for Multiple Devices |
|
|
Right-click on the line and choose Preprocessor Blocks > Create If/Else Block. In the
first, pink section, append the word "Color" to the "Hello World" string. In the second,
gray section, add "Gray" to the "Make my day " string.
This Preprocessor Blocks option is greyed out...
Thanks
----
Submitted via the contact form at: http://www.netbeans.info/appl2//index.php
Referer page: http://www.netbeans.org/kb/60/mobility/midp_devices.html |
|
| Back to top |
|
 |
leonid@shchervinky.com Posted via mailing list.
|
|
| Back to top |
|
 |
shche123
Joined: 19 May 2009 Posts: 41
|
Posted: Thu Jun 25, 2009 5:21 pm Post subject: Developing Java ME Applications for Multiple Devices |
|
|
The tutorial says nothing about "//#" being automatically added on Configuration change
and on build.
Kind of defeats the purpose of the if statement...
//#if DefaultConfiguration
//# helloTextBox = new TextBox(null, "Make my day Color", 120, 0x0);
//#else
helloTextBox = new TextBox(null, "Make my day Gray", 120, 0x0);
//#endif
----
Submitted via the contact form at: http://www.netbeans.info/appl2//index.php
Referer page: http://www.netbeans.org/kb/60/mobility/midp_devices.html |
|
| Back to top |
|
 |
shche123
Joined: 19 May 2009 Posts: 41
|
Posted: Thu Jun 25, 2009 5:33 pm Post subject: Developing Java ME Applications for Multiple Devices |
|
|
Instructions do not ask to type in directive value of DefaultConfiguration:
# The code marked by the //#if preprocessor directive is in effect whenever the active
configuration matches the directive value (in this case, DefaultConfiguration.) T
----
Submitted via the contact form at: http://www.netbeans.info/appl2//index.php
Referer page: http://www.netbeans.org/kb/60/mobility/midp_devices.html |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|