• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Info dialog in lwuit

 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,

how to implement information dialog box in lwuit?

kumar
 
Maneesh Godbole
Saloon Keeper
Posts: 11324
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create dialog instance
Set content, title, commands, transition etc
Invoke show()
 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11324
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11324
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rectangular box of TextArea?
 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya, Its displaying square like in textField. I want only text. Then only its looks good.




 
Maneesh Godbole
Saloon Keeper
Posts: 11324
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try tweaking the getStyle().setBorder()
 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11324
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using a theme?
 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes! I'm using theme but not for dialog!
 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic