protected int moveStep = 2; //每次移动的pixel protected int upPosition; //能移动到的最上面坐标 protected int downPosition; //当前popup的边框坐标 protected int leftPosition; //popup左边边框坐标 public Popup(final String message) {
shell = new Shell(SWT.ON_TOP); Text text = new Text(shell, SWT.MULTI | SWT.WRAP); text.setBounds(10, 20, 180, 80); text.setBackground(shell.getBackground()); text.setText(message);
//取屏莫大小 Rectangle area = Display.getDefault().getClientArea();