|
Replies:
3
-
Last Post:
Nov 25, 2008 9:03 AM
by: rlopes
|
|
|
|
|
|
|
Customizing the title bar
Posted:
Oct 16, 2008 6:09 PM
|
|
|
Hi,
I would like to have a more elaborate title bar, such as a label on the left side, and a button on the right side.
The most obvious solution to me seems to replace the title component of the form class with a Container having a BorderLayout.
This works well on my local build, but my final application doesn't have the same size when I use my custom build instead of the binary drop 20080814: - I compile with netbeans 6.1 and obfuscate (level 8) with proguard 4.2, the resulting lwuit jar library is around 600kb instead of 300kb.
My questions are: - Which svn revision should I use to have the same source as the lwuit-20080814 drop? - What am I missing in the compilation step?
Thanks, Alexandre Hauser
|
|
|
|
|
|
|
Re: Customizing the title bar
Posted:
Oct 16, 2008 10:13 PM
in response to: lowi
|
|
|
|
|
Hi, you should just place a component in the north portion of the form representing your title bar and not set a title bar at all. You don't need to modify LWUIT for that.
> Hi, > > I would like to have a more elaborate title bar, such as a label on > the left side, and a button on the right side. > > The most obvious solution to me seems to replace the title > component of the form class with a Container having a BorderLayout. > > This works well on my local build, but my final application doesn't > have the same size when I use my custom build instead of the binary > drop 20080814: > - I compile with netbeans 6.1 and obfuscate (level 8) with > proguard 4.2, the resulting lwuit jar library is around 600kb > instead of 300kb. > > My questions are: > - Which svn revision should I use to have the same source as the > lwuit-20080814 drop? > - What am I missing in the compilation step? > > Thanks, > Alexandre Hauser > [Message sent by forum member 'lowi' (lowi)] > > http://forums.java.net/jive/thread.jspa?messageID=308462 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net > For additional commands, e-mail: users-help@lwuit.dev.java.net >
Shai Almog http://lwuit.blogspot.com/
[att1.html]
|
|
|
|
|
|
|
|
Re: Customizing the title bar
Posted:
Nov 25, 2008 4:52 AM
in response to: Shai Almog
|
|
|
Hi,
I would like to have a more elaborate title bar too. I would like to have a title with a subtitle and more two images. The north portion of the form is scrollable but my title bar must be non-scrollable in the screen! ... so how can I have a more elaborate title bar non-scrollable in the screen ?
Marlon
|
|
|
|
|
|
|
|
Re: Customizing the title bar
Posted:
Nov 25, 2008 9:03 AM
in response to: marlon_luz
|
|
|
I also want to do this for my app.
I have not implement it but the way I thought to do this is setting the form title bigger using vertical padding and using a glass pane on the Form for the custom painting.
I want try it but at least on theory should work, if you are willing to wait a few weeks I can tell you if it works.
|
|
|
|
|