JTextArea aligns to the top. Or use a JLabel: JLabel myLabel = new JLabel("my text"); and the call: myLabel.setHorizontalAlignment(SwingConstants.
確定! 回上一頁