Custom SWT widget
I'm trying to write a SWT component which is made up of a control (eg. button) and of a drawgin which should display above the control. For instance a statdard button that has a line from one corner to the opposite corner.This should be a componenet (widget).
Are you saying you want a line to go through the button?
if so you can try this
button.add(new JLabel("<html><hr width=100%></html>"), BorderLayout.NORTH);
hope it is what you wanted.