Skip to main content

Dialog.show

2 replies [Last post]
heziflash
Offline
Joined: 2008-06-03

Hi

1.Can i put an image in Dialog.show?
2. if yes. how can i control the position of the image?

Thanks,
Hezi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
heziflash
Offline
Joined: 2008-06-03

another question:

Can i control the Font size and color?

raheman
Offline
Joined: 2008-07-20

Hi

>1.Can i put an image in Dialog.show?

yes,you can using Dialog.show(String title, Component body, Command[] cmds, int type, Image icon) method.

>Can i control the Font size and color?

you can conrolling it with using setDialogStyle(Style style)
Creating new Style if you wish or
use com.sun.lwuit.plaf.UIManager.getComponentStyle(java.lang.String id and change the Style by it's methods or
use getStyle()and ...

Thanks
armin ahmady