import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Font; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); GridLayout gridLayout = new GridLayout(); shell.setLayout(gridLayout); Text text = new Text(shell, SWT.LEFT); text.setFont(new Font(text.getDisplay(), "Lucida Grande", 13, SWT.NORMAL)); text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); text.setText("\u2325X"); text.setText(""); text.setText("\u2325X"); shell.pack(); shell.open(); while (!shell.isDisposed()) if (!display.readAndDispatch()) display.sleep(); display.dispose(); } }