62,614
社区成员
发帖
与我相关
我的任务
分享
public class Frame extends Composite {
public Frame(Composite parent, int style) {
super(parent, style);
setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_GRAY));
addPaintListener(new PaintListener() {
@Override
public void paintControl(PaintEvent e) {
Rectangle clientArea = getClientArea();
e.gc.drawRectangle(1, 1, clientArea.width - 3, clientArea.height - 3);
}
});
}