swing 教程,与大家分享一下,哈哈,希望大家多多指教

源代码在线查看: text

软件大小: 4413 K
上传用户: snowpilce
关键词: swing 教程
下载地址: 免注册下载 普通下载 VIP

相关代码

				A Swing frequently asked question is whether Swing supports labels that display multiple lines of text, and the answer is both yes and no. Swing labels are instances of the JLabel class, and JLabel makes no provision for displaying multiple lines of text; therefore in that respect, the answer is no.
				
				On the other hand, Swing includes components, such as JTextArea and JEditorPane, that are quite proficient at displaying multiple lines of text. It seems as though there should be a way to reuse the functionality provided by a text component;for example, an instance of JTextArea used as a multi-line label component. The problem with using a text area to implement a multi-line label is that a text area looks and feels like a text area instead of a label.
							

相关资源