Course Hero Logo

java - How to create ComboBox in J2ME - Stack Overflow.pdf...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 3 out of 5 pages.

3/3/2014java - How to create ComboBox in J2ME? - Stack Overflow1/5current communitychatblogStack OverflowMeta Stack OverflowCareers 2.0more stack exchange communitiesStack Exchangesign uplog intourhelpTourStart here for a quick overview of the siteHelp CenterDetailed answers to any questions you might haveMetaDiscuss the workings and policies of this sitecareers 2.0searchStack OverflowQuestionsTagsTourUsersAsk QuestionTake the 2-minute tour×Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.How to create ComboBox in J2ME?up vote 0 downvotefavorite1I want to create a function which takes two arguments1. A String value (name)2. An array of String objectsThe function creates LWUIT Combobox with these two parameters and returns a ComboBox varialble...I have written following code ...public void createComboxBox(String recStoreName,String [] values){comboBox = new ComboBox(recStoreName, values);surveyForm.addComponent(comboBox);}javajava-melwuitshare|improve this questioneditedApr 20 '12 at 4:26Lucifer13.8k83060asked Jul 4 '11 at 10:53Amit3,7763297621. That's a method, not a function. 2. You must "return comboBox;" at the end of the method. 3. Must declarereturn type as ComboBox instead of void. –ignisJul 4 '11 at 11:00
3/3/2014java - How to create ComboBox in J2ME? - Stack Overflow2/5add comment2 Answersactiveoldestvotesup vote 3down voteaccepted//create a form and set its titleForm f = new Form("Simple ComboBox");//set layout manager for the form//f.setLayout(new FlowLayout());//set form background colourf.getStyle().setBgColor(0xd5fff9);.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
NoProfessor
Tags
Return statement, Call stack, The Key, Void type

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture