0
我有以下情况:如何在draw2d中垂直和水平放置标签图?
Label label = new Label();
label.setText("bla");
RoundedRectangle fig = new RoundedRectangle();
fig.add(label);
FlowLayout layout = new FlowLayout();
layout.setStretchMinorAxis(true);
fig.setLayoutManager(layout);
fig.setOpaque(true);
这只能通过使用layout.setHorizontal(真/假)居中标签垂直或水平; ,但不在一起。任何想法如何使其工作?
这应该被标记为SWT? – trashgod 2010-04-17 00:39:33