File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Info dialog in lwuit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Info dialog in lwuit" Watch "Info dialog in lwuit" New topic
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: 10491
    
    9

Create dialog instance
Set content, title, commands, transition etc
Invoke show()


[How to ask questions] [Donate a pint, save a life!] [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: 10491
    
    9

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: 10491
    
    9

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: 10491
    
    9

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: 10491
    
    9

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Info dialog in lwuit