By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,738 Members | 1,730 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,738 IT Pros & Developers. It's quick & easy.

menus and submenus

N002199B
P: 41
Hie Guru's

I am trying to write code that can be re-used by simple calls to build menus and submenus on mobile devices.

I have heard about the cascading menus design pattern, but do not understand it. I hear it can be a solution and read this document at Big Designs for small devises .

It seems good, but i still cannot start building menus and submenus in j2me.

Can anyone shed some light as to how to best go about this

Regards
Jan 27 '08 #1
Share this Question
Share on Google+
2 Replies


markmcgookin
Expert 100+
P: 648
Hie Guru's

I am trying to write code that can be re-used by simple calls to build menus and submenus on mobile devices.

I have heard about the cascading menus design pattern, but do not understand it. I hear it can be a solution and read this document at Big Designs for small devises .

It seems good, but i still cannot start building menus and submenus in j2me.

Can anyone shed some light as to how to best go about this

Regards

In .Net you can create a menu item with the following code, and add it to the main menu, MainMenu1

Expand|Select|Wrap|Line Numbers
  1. MenuItem menuItemx = new MenuItem();
  2. menuItemx.Text = "123";
  3. mainMenu1.MenuItems.Add(menuItemx);
  4.  
Jan 28 '08 #2

N002199B
P: 41
In .Net you can create a menu item with the following code, and add it to the main menu, MainMenu1

Expand|Select|Wrap|Line Numbers
  1. MenuItem menuItemx = new MenuItem();
  2. menuItemx.Text = "123";
  3. mainMenu1.MenuItems.Add(menuItemx);
  4.  
that may be true in .Net, but I wonder if it works in j2me. I am trying to do it in J2ME, and I am thinkinking of actually handling the drawing code myself instead of using the list and other such lcdui classes.

I hope I am clear, and am willing to be corrected
Jan 28 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.