Bug 154732 GraphicsAntialiasingTab fails under both Motif and GTK
When selecting the GraphicsAntialiasingTab, the GraphicsExample application dies. Steps for reproducing: - Check out org.eclipse.swt.examples from CVS - Put the attached file in your workspace under org.eclipse.swt.examples.graphics - Run the graphics example - In the tree, expand "Antialiasing" and select "Graphics" On Motif, the following output is displayed: X connection to :0.0 broken (explicit kill or server shutdown). On GTK, the following output is displayed: The application 'SWT' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicAntialiasTab.java
GraphicsBackground ovalColorGB;
	
public GraphicAntialiasTab(GraphicsExample example) {
	super(example);
}
public String getCategory() {
	return GraphicsExample.getResourceString("Antialiasing"); 
}
public String getText() {
	return GraphicsExample.getResourceString("Graphics"); 
}
public String getDescription() {
	return GraphicsExample.getResourceString("AntialiasingGraphicsDesc"); 
}
public void dispose() {
	if (menu != null) {
		menu.dispose();
		menu = null;
	}
}
public void createControlPanel(Composite parent) {
	Composite comp;
	
	
	comp = new Composite(parent, SWT.NONE);
	comp.setLayout(new GridLayout(2, false));
	new Label(comp, SWT.CENTER).setText(GraphicsExample
			.getResourceString("Antialiasing")); 
	aliasCombo = new Combo(comp, SWT.DROP_DOWN);
	aliasCombo.add("OFF");