类javax.swing.plaf.basic.BasicTextAreaUI源码实例Demo

下面列出了怎么用javax.swing.plaf.basic.BasicTextAreaUI的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: 07kit   文件: DefaultNotificationWindow.java
/**
 * Constructs a new display only {@link JTextArea}
 * @param text text that the {@link JTextArea} displays
 * @return a new display only {@link JTextArea}
 */
private JTextArea getTextAreaForDisplay(String text) {
	final JTextArea ta = new JTextArea(text);
	ta.setUI(new BasicTextAreaUI());
	ta.setEditable(false);
	ta.setFocusable(false);
	ta.setOpaque(false);
	ta.setWrapStyleWord(true);
	ta.setLineWrap(true);
	return ta;
}
 
 类所在包
 类方法
 同包方法