Skip to main content

new button component with two lines of text below

5 replies [Last post]
lughuy
Offline
Joined: 2010-05-17
Points: 0

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tabla normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-fareast-language:EN-US;}

Hi I'm such a new programmer in java and me LWUIT 1.4
I want to have a button with an image component and 2 lines of text below the image as you normally are the menu buttons on LG or other phone.
But I can not find how to create a component of those characteristics.
You can help me.
From already thank you very much.

Hola que tal soy un programador nuevo en java me y lwuit 1.4
Quiero poder tener un componente button con una imagen y 2 líneas de textos debajo de la imagen como normalmente son los botones del menú en nokia u otro celular.
Pero no encuentro la forma de poder crear un componente de dichas características.
Ustedes me podrán ayudar.
Desde ya muchas gracias.

Hi I'm such a new programmer in java and me LWUIT 1.4
I want to have a button with an image component and 2 lines of text below the image as you normally are the menu buttons on nokia or other phone.
But I can not find how to create a component of those characteristics.
You can help me.
From already thank you very much.
for example "Apparell Phone"
www.gadget.pdamu.com/wp-content/uploads/2010/09/LG-Mini-GD880-Menu.jpg

for example "Recent History"
http://mos.futurenet.com/techradar/Review%20images/TechRadar/Gadgets/Mob...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bhakki
Offline
Joined: 2009-09-09
Points: 0

AFAIK Normally buttons are extends with Label class. So its not possible to show on next line.
FYI You can enable the tickering or u can create the own class extends with Textarea.

lughuy
Offline
Joined: 2010-05-17
Points: 0

I do not understand how I can help extend the textarea, you'll have some example or url on which to find examples.

vprise
Offline
Joined: 2003-11-07
Points: 0

TextArea t = ....;
t.setUIID("Button");
t.setEditable(false);
Override the pointer/keyReleased of t and do whatever you want.

bhakki
Offline
Joined: 2009-09-09
Points: 0

You can disable the textarea and give the disable style and add the listener.. I didnt acheive before. But u can...

lughuy
Offline
Joined: 2010-05-17
Points: 0

Then I have to extened a button and add a textarea.
how efficient is to make my own object with a layer over a button and 2 label.
So you have a single object.
anyone has any url you may have an example of what I do.
Thanks to everyone for the help.