FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Developing Java ME Applications for Multiple Devices

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
shche123



Joined: 19 May 2009
Posts: 41

PostPosted: Thu Jun 25, 2009 3:54 pm    Post subject: Developing Java ME Applications for Multiple Devices Reply with quote

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
View user's profile Send private message
leonid@shchervinky.com
Posted via mailing list.





PostPosted: Thu Jun 25, 2009 4:04 pm    Post subject: Developing Java ME Applications for Multiple Devices Reply with quote

The issue with "Preprocessor Blocks" I have reported in my last message has to do with the
fact that the instructions need to be working with the MyHelloMIDlet project and not with
the MyHello project...

----
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

PostPosted: Thu Jun 25, 2009 5:21 pm    Post subject: Developing Java ME Applications for Multiple Devices Reply with quote

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
View user's profile Send private message
shche123



Joined: 19 May 2009
Posts: 41

PostPosted: Thu Jun 25, 2009 5:33 pm    Post subject: Developing Java ME Applications for Multiple Devices Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB