| Author |
Info dialog in lwuit
|
kumar mdu
Ranch Hand
Joined: Jan 04, 2011
Posts: 59
|
|
Hi Experts,
how to implement information dialog box in lwuit?
kumar
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8552
|
|
Create dialog instance
Set content, title, commands, transition etc
Invoke show()
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
kumar mdu
Ranch Hand
Joined: Jan 04, 2011
Posts: 59
|
|
Thanks Maneesh for your reply.
I created dialog and set title and displaying by using show() method.
How to set the content? How to display the lengthy information to the user.?
Thanks again.
kumar
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8552
|
|
How to set the content? How to display the lengthy information to the user.?
Same way like you would add any component (hint) to a container
For lengthy information, a non editable TextArea should do the trick
|
 |
kumar mdu
Ranch Hand
Joined: Jan 04, 2011
Posts: 59
|
|
Thanks a lot Maneesh.
I did by adding label to the container. TextArea idea is really nice. Its working too.
How to remove the rectangular box of textArea?
Is this possible..?
Thanks again,
kumar
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8552
|
|
|
Rectangular box of TextArea?
|
 |
kumar mdu
Ranch Hand
Joined: Jan 04, 2011
Posts: 59
|
|
ya, Its displaying square like in textField. I want only text. Then only its looks good.
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8552
|
|
|
Try tweaking the getStyle().setBorder()
|
 |
kumar mdu
Ranch Hand
Joined: Jan 04, 2011
Posts: 59
|
|
Thanks Maneesh Godbole for your idea,
I tried
and all the possible way. It doesn't change to line, rounded border too.
How can i remove that border of text area..?
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8552
|
|
|
Are you using a theme?
|
 |
kumar mdu
Ranch Hand
Joined: Jan 04, 2011
Posts: 59
|
|
|
yes! I'm using theme but not for dialog!
|
 |
kumar mdu
Ranch Hand
Joined: Jan 04, 2011
Posts: 59
|
|
Thank you very much Maneesh Godbole.
I got a solution for dialog for lengthy information by using non-editable textarea without border.
Without border i used getStyle() method as
Thanks again,
kumar
|
 |
 |
|
|
subject: Info dialog in lwuit
|
|
|