-
大小: 4.65KB文件類型: .zip金幣: 1下載: 0 次發(fā)布日期: 2021-02-20
- 語(yǔ)言: Java
- 標(biāo)簽:
資源簡(jiǎn)介
Java 使子窗體最大化顯示(基礎(chǔ)篇-實(shí)例278).zip
代碼片段和文件信息
import?java.awt.BorderLayout;
import?java.awt.EventQueue;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?java.beans.PropertyVetoException;
import?javax.swing.JButton;
import?javax.swing.JDesktopPane;
import?javax.swing.Jframe;
import?javax.swing.JInternalframe;
import?javax.swing.JPanel;
import?javax.swing.border.EmptyBorder;
import?javax.swing.UIManager;
public?class?MaxChildForm?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?{
????????????????????MaxChildForm?frame?=?new?MaxChildForm();
????????????????????frame.setVisibl
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-08-16?14:47??.classpath
?????文件?????????379??2010-09-07?14:23??.project
?????文件?????????635??2010-08-16?14:47??.settings\org.eclipse.jdt.core.prefs
?????文件?????????707??2013-11-21?08:41??bin\MaxChildForm$1.class
?????文件?????????656??2013-11-21?08:41??bin\MaxChildForm$2.class
?????文件????????2632??2013-11-21?08:41??bin\MaxChildForm.class
?????文件????????2677??2010-08-16?15:32??src\MaxChildForm.java
評(píng)論
共有 條評(píng)論