Skip to main content

Titlebar

1 reply [Last post]
bardubitzki
Offline
Joined: 2003-11-02
Points: 0

Hi there,

I'm able to replace a Forms title string with an image with getTitleComponent(), but I can't figure out how to change the height of the Forms titlebar.

Thanks,
Stephan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi Stephan,
the title style can be manipulated to change that. Set the margin/
padding of the title to a value thats suitable.

In the resource editor just select your theme and add a "Title"
selector with margin or padding then just manipulate the top/bottom
to position the title.

You can do this programmatically using getTitleStyle().setPadding() &
getTitleStyle().setMargin() respectively.

Thanks,
Shai.

> Hi there,
>
> I'm able to replace a Forms title string with an image with
> getTitleComponent(), but I can't figure out how to change the
> height of the Forms titlebar.
>
> Thanks,
> Stephan
> [Message sent by forum member 'bardubitzki' (bardubitzki)]
>
> http://forums.java.net/jive/thread.jspa?messageID=280085
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net