public DateControl(Composite parent) { super(parent, SWT.NONE); setBackground(parent.getBackground()); GridLayout layout = UIUtil.gridLayout(this, 2, 0, 0); layout.horizontalSpacing = 1; text = UIUtil.newText(this, "", new TextChanged()); UIControlUtil.increaseFontSize(text, -2); GridData gd = new GridData(); gd.widthHint = 50; text.setLayoutData(gd); button = UIUtil.newImageButton( this, SharedImages.getImage(SharedImages.icons.x16.basic.CALENDAR_POPUP), new ButtonListener(), null); }