資源簡介
Java 控件的純色邊框與圖標邊框(基礎篇-實例385).zip
代碼片段和文件信息
package?com.lzw;
import?java.awt.BorderLayout;
import?java.awt.EventQueue;
import?javax.swing.ImageIcon;
import?javax.swing.Jframe;
import?javax.swing.JPanel;
import?javax.swing.border.EmptyBorder;
import?javax.swing.JButton;
import?javax.swing.border.MatteBorder;
import?java.awt.Color;
import?javax.swing.JLabel;
import?javax.swing.SwingConstants;
public?class?ShowMatteBorder?extends?Jframe?{
????
????private?JPanel?contentPane;
????
????/**
?????*?Launch?the?application.
?????*/
????public?static?void?main(String[]?args)?{
????????EventQueue.invokeLater(new?Runnable()?{
????????????public?void?run()?{
????????????????try?{
????????????????????ShowMatteBorder?frame?=?new?ShowMatteBorder();
????????????????????frame.setVisible(true);
????????????????}?catch?(Exception?e)?{
????????????????????e.printStackTrace();
????????????????}
????????????}
????????});
????}
????
????/**
?????*?Create?the?frame.
?????*/
????public?ShowMatteBorder()?{
???????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-08-20?15:23??.classpath
?????文件?????????379??2010-09-07?14:47??.project
?????文件?????????635??2010-08-20?15:23??.settings\org.eclipse.jdt.core.prefs
?????文件?????????507??2010-08-20?15:52??bin\com\lzw\icon.png
?????文件?????????754??2013-11-21?08:41??bin\com\lzw\ShowMatteBorder$1.class
?????文件????????3110??2013-11-21?08:41??bin\com\lzw\ShowMatteBorder.class
?????文件?????????507??2010-08-20?15:52??src\com\lzw\icon.png
?????文件????????4581??2010-08-20?16:59??src\com\lzw\ShowMatteBorder.java
- 上一篇:Java 在復制文件時使用進度條
- 下一篇:Java 監視文件讀入的進度
評論
共有 條評論