I'm working on a SWT/Jface project based on Java SE, i want to move the image of a TitleAreaDialog to the left. is it possible ? if not is there anyway ?
Thanks,
I'm working on a SWT/Jface project based on Java SE, i want to move the image of a TitleAreaDialog to the left. is it possible ? if not is there anyway ?
Thanks,
There is no way to configure it using API, the layout is hard-coded. One way is to hack into the dialog controls and change their layout data, but it is likely easier to implement your own class (using
TitleAreaDialog
as an example).If you subclass
TitleAreaDialog
you have to overridecreateContents(Composite)
method, otherwise theTitleAreaDialog
will create its own title area by callingcreateTitleArea()
. I suggest that at first you just copy the code fromTitleAreaDialog.createContents()
and start replacing stuff that you need to be done differently. I don't know exactly what needs to be done without actually doing everything.You can modify the layout data of the image label as follows: