Skip to main content

anyone can suggest me How to create custom menu ?

2 replies [Last post]
sub7
Offline
Joined: 2008-09-03
Points: 0

Hi, all
I've read other thread.. they're using ListCellRenderer.. and then set it to form.setMenuCellRenderer() (right? if not plz suggest me the way to create custom menu... )
who knows how to set the size of the sliding menu and the BgImage of it?
it'd be great if you show me the example of using it...

Regards,
Sub7

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi,
for bgImage use the resource editor "Menu" component.
for size override the showMenuDialog:
http://forums.java.net/jive/thread.jspa?messageID=297784

> Hi, all
> I've read other thread.. they're using ListCellRenderer.. and then
> set it to form.setMenuCellRenderer() (right? if not plz suggest me
> the way to create custom menu... )
> who knows how to set the size of the sliding menu and the BgImage
> of it?
> it'd be great if you show me the example of using it...
>
> Regards,
> Sub7
> [Message sent by forum member 'sub7' (sub7)]
>
> http://forums.java.net/jive/thread.jspa?messageID=297785
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

kawaiimomo
Offline
Joined: 2008-07-10
Points: 0

Hi there,

With setMenuCellRenderer() you change the Default renderer, so you are modifying the way the items in the menu are painted.

Overriding Form.showMenuDialog(Dialog menu) you can modify the Dialog itself, the pane where the List is drawn.

Overriding Form.createCommandList(Vector commands) you can modify the way the List is created.

Hope it helps