資源簡介
Java 流式布局的簡單應用(基礎篇-實例301).zip
代碼片段和文件信息
package?com.mingrisoft.flowlayout;
import?java.awt.EventQueue;
import?java.awt.FlowLayout;
import?javax.swing.JButton;
import?javax.swing.Jframe;
import?javax.swing.JPanel;
import?javax.swing.UIManager;
import?javax.swing.border.EmptyBorder;
public?class?FlowLayoutTest?extends?Jframe?{
????
????/**
?????*?
?????*/
????private?static?final?long?serialVersionUID?=?197766755999871168L;
????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?{
????????????????????FlowLayoutTest?frame?=?new?FlowLayoutTest();
????????????????????frame.setVisible(true);
????????????????}?catch?(Exception?e)?{
??????????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????232??2010-09-11?17:00??.classpath
?????文件?????????379??2010-09-11?17:00??.project
?????文件?????????821??2013-11-21?08:41??bin\com\mingrisoft\flowlayout\FlowLayoutTest$1.class
?????文件????????2137??2013-11-21?08:41??bin\com\mingrisoft\flowlayout\FlowLayoutTest.class
?????文件????????2356??2010-09-11?17:00??src\com\mingrisoft\flowlayout\FlowLayoutTest.java
- 上一篇:Java 文件鎖定
- 下一篇:Java 計算程序運行時間
評論
共有 條評論