資源簡介
Java 使用直接插入法(基礎篇-實例053).zip
代碼片段和文件信息
import?java.awt.EventQueue;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?java.util.Random;
import?javax.swing.JButton;
import?javax.swing.Jframe;
import?javax.swing.JPanel;
import?javax.swing.JTextArea;
import?javax.swing.border.EmptyBorder;
import?javax.swing.UIManager;
public?class?InsertSort?extends?Jframe?{
????
????private?JPanel?contentPane;
????
????/**
?????*?Launch?the?application.
?????*/
????public?static?void?main(String[]?args)?{
????????try?{
????????????UIManager.setLookAndFeel(“com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel“);
????????}?catch?(Throwable?e)?{
????????????e.printStackTrace();
????????}
????????EventQueue.invokeLater(new?Runnable()?{
????????????public?void?run()?{
????????????????try?{
????????????????????InsertSort?frame?=?new?InsertSort();
????????????????????frame.setVisible(true);
????????????????}?catch?(Exception?e)?{
????????????????????e.printStackTrace();
????????????????}
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-07-26?10:52??.classpath
?????文件?????????379??2010-09-07?11:37??.project
?????文件?????????635??2010-07-26?10:52??.settings\org.eclipse.jdt.core.prefs
?????文件?????????697??2013-11-21?08:40??bin\InsertSort$1.class
?????文件?????????644??2013-11-21?08:40??bin\InsertSort$2.class
?????文件?????????646??2013-11-21?08:40??bin\InsertSort$3.class
?????文件????????3130??2013-11-21?08:40??bin\InsertSort.class
?????文件????????3456??2010-07-26?11:44??src\InsertSort.java
- 上一篇:Java 獲取字符串中漢字的個數
- 下一篇:Java 策略模式的簡單應用
評論
共有 條評論