資源簡介
Java 使用冒泡排序法(基礎篇-實例051).zip
代碼片段和文件信息
import?java.awt.BorderLayout;
import?java.awt.EventQueue;
import?javax.swing.Jframe;
import?javax.swing.JPanel;
import?javax.swing.border.EmptyBorder;
import?java.awt.GridBagLayout;
import?javax.swing.JScrollPane;
import?java.awt.GridBagConstraints;
import?javax.swing.JButton;
import?java.awt.Insets;
import?javax.swing.JTextArea;
import?java.awt.event.ActionListener;
import?java.awt.event.ActionEvent;
import?java.util.Random;
public?class?BubbleSort?extends?Jframe?{
????
????private?JPanel?contentPane;
????
????/**
?????*?Launch?the?application.
?????*/
????public?static?void?main(String[]?args)?{
????????EventQueue.invokeLater(new?Runnable()?{
????????????public?void?run()?{
????????????????try?{
????????????????????BubbleSort?frame?=?new?BubbleSort();
????????????????????frame.setVisible(true);
????????????????}?catch?(Exception?e)?{
????????????????????e.printStackTrace();
????????????????}
????????????}
????????});
????}
????
????/**
?????*?Cr
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-07-24?14:58??.classpath
?????文件?????????379??2010-09-07?11:36??.project
?????文件?????????635??2010-07-24?14:58??.settings\org.eclipse.jdt.core.prefs
?????文件?????????697??2013-11-21?08:40??bin\BubbleSort$1.class
?????文件?????????644??2013-11-21?08:40??bin\BubbleSort$2.class
?????文件?????????646??2013-11-21?08:40??bin\BubbleSort$3.class
?????文件????????3880??2013-11-21?08:40??bin\BubbleSort.class
?????文件????????5246??2010-07-26?10:39??src\BubbleSort.java
- 上一篇:Java 使用撤銷與重做功能
- 下一篇:Java 監聽節點的選擇事件
評論
共有 條評論