-
大小: 1.47MB文件類型: .rar金幣: 2下載: 0 次發布日期: 2023-09-21
- 語言: Java
- 標簽:
資源簡介
有時間隨便寫了一下,希望大家喜歡,很漂亮,基本界面功能齊全,喜歡的或是學java的朋友,可以看一下,eclipse項目源文件及可運行的jar文件,技術含量還算有一點點

代碼片段和文件信息
package?eetsoft.com;
import?java.awt.*;
import?java.awt.event.*;
import?java.util.*;
import?javax.swing.*;
//===========================================
//事件處理類?ActionDo.java
//程序編寫:程序人生
//網址:www.vc66.cn
//李建東??聯系QQ:813751
//===========================================
public?class?ActionDo?implements?ActionListener
{
EETSoftframe?frame;
JButton?button;
//======================
//配置類
ConfigGet?con?;
Dimension?sdm?;//分辨率
//======================
//皮膚樣式夾
String?img_dir?=?“skin_black“;
//======================
//重畫類
RepaintActionDo?action?;
//======================
//初始化
ActionDo(EETSoftframe?fJButton?btn)
{
this.frame?=?f;
this.button?=?btn;
//配置類
con?=?new?ConfigGet();
action?=?new?RepaintActionDo(f);
//皮膚文件
img_dir?=?con.getSkinDir();
//分辨率
sdm?=?con.getScreenSize();
}
//======================
//事件處理
public?void?actionPerformed(ActionEvent?e)?
{
//==================
//窗口最大化
if(e.getActionCommand().equals(“cmd_max“))
{
fullframe();
}
//==================
//窗口一般化
if(e.getActionCommand().equals(“cmd_normal“))
{
normalframe();
}
//==================
//窗口最小化
else?if(e.getActionCommand().equals(“cmd_min“))
{
frame.setExtendedState(frame.ICONIFIED|frame.getExtendedState());
}
//==================
//窗口關閉
else?if(e.getActionCommand().equals(“cmd_close“))
{
System.exit(0);
}
//==================
//關閉左邊二級菜單面板
else?if(e.getActionCommand().equals(“lmenu_close“))
{
frame.closeLeftMenu();
}
//==================
//打開左邊二級菜單面板
else?if(e.getActionCommand().equals(“lmenu_open“))
{
frame.openLeftMenu();
}
//===================
//點擊主按鈕顯示二級菜單
else?if(e.getActionCommand().equals(“lmenu_add“))
{
addSubMenu();
}
}
//==========================
//全屏
//==========================
private?void?fullframe()
{
//設置最大化
con.resetframeSize(framesdm.widthsdm.height);
con.fullAllWaysTop(frame);//是否最前端顯示在Config.java里配置
frame.isFullScreen?=?true;
//設置按鈕
button.setIcon(con.getImgUrl((“maxed.png“)));
button.setRolloverIcon(con.getImgUrl((“maxed_on.png“)));
frame.validate();//有效
frame.setLocation((sdm.width-frame.getWidth())/2?(sdm.height-frame.getHeight())/2);
button.setActionCommand(“cmd_normal“);
button.setToolTipText(“正常模式“);
//new?SubMenuActionDo(frame).btnExamKindAction();
action.repaintframe();
frame.validate();
//System.out.println(frame.panel.m_panel.scrollPane.getWidth()+“==========“+frame.panel.m_panel.p_right.getWidth());
}
//==========================
//窗口正常大小
//==========================
private?void?normalframe()
{
//設置最大化
Dimension?fdm?=?con.getframeSmallSize(false);//初始窗體是否全屏
con.resetframeSize(framefdm.widthfdm.height);
con.normalAllWaysTop(frame);//是否最前端顯示在Config.java里配置
frame.isFullScreen?=?false;
//設置按鈕
button.setIcon(con.getImgUrl((“max.png“)));
button.s
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????232??2008-06-24?10:55??ExamServer\.classpath
?????文件????????386??2008-06-24?10:55??ExamServer\.project
?????文件????????629??2008-06-27?13:22??ExamServer\.settings\org.eclipse.jdt.core.prefs
?????目錄??????????0??2008-11-26?17:44??ExamServer\.settings
?????文件???????3314??2008-11-24?17:04??ExamServer\bin\eetsoft\com\ActionDo.class
?????文件???????5825??2008-11-24?17:04??ExamServer\bin\eetsoft\com\ConfigGet.class
?????文件???????2874??2008-11-24?17:04??ExamServer\bin\eetsoft\com\EETSoftfr
?????文件???????1085??2008-11-24?17:04??ExamServer\bin\eetsoft\com\EETSoftfr
?????文件???????2111??2008-11-24?17:04??ExamServer\bin\eetsoft\com\EETSoftfr
?????文件????????814??2008-11-24?17:04??ExamServer\bin\eetsoft\com\EETSoftfr
?????文件???????8289??2008-11-24?17:04??ExamServer\bin\eetsoft\com\EETSoftfr
?????文件???????5198??2008-11-24?17:04??ExamServer\bin\eetsoft\com\ExamServer.class
?????文件???????6583??2008-11-24?17:04??ExamServer\bin\eetsoft\com\MainPanel.class
?????文件???????1184??2008-11-24?17:04??ExamServer\bin\eetsoft\com\MenuButtonBox.class
?????文件???????3321??2008-11-24?17:04??ExamServer\bin\eetsoft\com\MiddlePanel.class
?????文件????????875??2008-11-24?17:04??ExamServer\bin\eetsoft\com\ob
?????文件????????919??2008-11-24?17:04??ExamServer\bin\eetsoft\com\RepaintActionDo.class
?????文件????????361??2008-06-25?21:58??ExamServer\bin\eetsoft\com\skin_black\bottom_resize.png
?????文件????????182??2008-06-26?10:38??ExamServer\bin\eetsoft\com\skin_black\btn_split_l.png
?????文件????????182??2008-06-26?10:36??ExamServer\bin\eetsoft\com\skin_black\btn_split_r.png
?????文件????????441??2008-06-25?10:25??ExamServer\bin\eetsoft\com\skin_black\close.png
?????文件????????637??2008-06-25?10:25??ExamServer\bin\eetsoft\com\skin_black\close_on.png
?????文件????????181??2008-06-24?15:24??ExamServer\bin\eetsoft\com\skin_black\exam_b_bg.png
?????文件????????208??2008-06-24?16:27??ExamServer\bin\eetsoft\com\skin_black\exam_b_l.png
?????文件????????134??2008-06-26?12:23??ExamServer\bin\eetsoft\com\skin_black\exam_b_line.png
?????文件????????347??2008-06-24?16:29??ExamServer\bin\eetsoft\com\skin_black\exam_b_r.png
?????文件????????230??2008-06-24?15:24??ExamServer\bin\eetsoft\com\skin_black\exam_h_l.png
?????文件????????189??2008-06-24?15:24??ExamServer\bin\eetsoft\com\skin_black\exam_h_lc.png
?????文件????????237??2008-06-24?15:24??ExamServer\bin\eetsoft\com\skin_black\exam_h_r.png
?????文件????????183??2008-06-24?15:24??ExamServer\bin\eetsoft\com\skin_black\exam_h_rc.png
............此處省略320個文件信息
評論
共有 條評論