So I am creating a image to place in the title area. Everything works with the exception that only a 1/4th of the image is displayed?
my image is actually text and a image combine in one image EX: JKTeater [ ] <– icon
so right now only JKT is showing in the title area
Here is the create() method
public void create() {
super.create();
setTitle("JKTeater Application");
setMessage("Hello World");
if (image != null) setTitleImage(image);
}
- Is there a specific size that the title area code allows for?
- Is there a way to place the end of the image at the end of the title area?
- Can you use a layout to move it around?
- How can I get a black horizonal line at the bottom of the title area?
EDIT

I am sure that it would be asking to much to see if you can actually change the background color from a basic color to a gradient
Here is an example
TitleAreaDialog. As you can see, theImageis completely shown and aligned to the right:AFAIK there are no restrictions to the size. I tried using an
Imagethat was larger than my screen resolution and it was fully displayed. TheDialogwas obviously unusable though.The background color can be changed using
dialog.setTitleAreaColor(RGB)(in this case the widget background color), but you cannot use a gradient. There is a deprecated methodgetTitleArea()which would return the title areaComposite, but I really wouldn’t recommend using that.The line at the bottom was achieved by using:
There is a similar question here:
Moving an image of a TitleAreaDialog to the left
The answers there explain how to change details of the
TitleAreaDialog. Maybe read up on them.