Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » figure not displayed until setSize
figure not displayed until setSize [message #239489] Tue, 30 October 2007 17:07
Alessandro Fredianelli is currently offline Alessandro FredianelliFriend
Messages: 32
Registered: July 2009
Member
Im creating a very basic program leveragin gef features and i'm facing a
stupid problem. The principal figure isn't displayed until i set its size
to a value greater than zero. I've posted the createFigure code, nested
figures are simple labels. Everything works fine if i uncomment the line
with the setSize statement.

protected IFigure createFigure() {
Panel f = new Panel();
ToolbarLayout layout = new ToolbarLayout();
layout.setVertical(true);
layout.setStretchMinorAxis(true);
f.setLayoutManager(layout);
//f.setSize(200, 100);
f.setLocation(new Point(10, 10));
f.setOpaque(true);
f.setBackgroundColor(ColorConstants.red);
f.add(new Label("test"));
return f;
}

Whats wrong?

Thanks.
Previous Topic:Any performance impact when SWGraphics.setAntialias(SWT.ON)
Next Topic:Zest CONNECTIONS_CURVED support
Goto Forum:
  


Current Time: Fri Apr 19 15:24:23 GMT 2024

Powered by FUDForum. Page generated in 0.01736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top