issue drawing aligned text using TextFlow and FlowPage
问题 i'm drawing a multiline text label using a FlowPage object that contains a TextFlow object. the code of my label class is: class TransitionLabel extends FlowPage { private TextFlow content; public TransitionLabel() { setForegroundColor(ColorConstants.white); setHorizontalAligment(PositionConstants.CENTER); content = new TextFlow(); content.setOpaque(true); content.setText(""); add(content); } public void setText(String content) { this.content.setText(content); revalidate(); repaint(); }