資源簡介
Java 列表控件折行顯示列表項(基礎篇-實例393).zip
代碼片段和文件信息
package?com.lzw;
import?java.awt.BorderLayout;
import?java.awt.Color;
import?java.awt.Component;
import?java.awt.EventQueue;
import?javax.swing.Jframe;
import?javax.swing.JLabel;
import?javax.swing.JList;
import?javax.swing.JPanel;
import?javax.swing.JRadioButton;
import?javax.swing.JScrollPane;
import?javax.swing.ListCellRenderer;
import?javax.swing.UIManager;
import?javax.swing.border.EmptyBorder;
import?javax.swing.ListSelectionModel;
public?class?RadioList?extends?Jframe?{
????
????private?JPanel?contentPane;
????
????/**
?????*?Launch?the?application.
?????*/
????public?static?void?main(String[]?args)?{
????????EventQueue.invokeLater(new?Runnable()?{
????????????public?void?run()?{
????????????????try?{
????????????????????RadioList?frame?=?new?RadioList();
????????????????????frame.setVisible(true);
????????????????}?catch?(Exception?e)?{
????????????????????e.printStackTrace();
????????????????}
????????????}
????????});
????}
????
????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????232??2015-08-28?13:54??.classpath
?????文件?????????379??2015-08-28?13:54??.project
?????文件?????????635??2015-08-28?13:54??.settings\org.eclipse.jdt.core.prefs
?????文件?????????724??2015-08-28?13:54??bin\com\lzw\RadioList$1.class
?????文件????????1513??2015-08-28?13:54??bin\com\lzw\RadioList$2.class
?????文件????????2275??2015-08-28?13:54??bin\com\lzw\RadioList.class
?????文件????????3104??2015-08-28?13:54??src\com\lzw\RadioList.java
- 上一篇:Java 整數進制轉換器
- 下一篇:Java 實現自動排序的列表
評論
共有 條評論