資源簡介
賬戶名密碼都是1,寫代碼時com.zjyt.run是主main出口類,在com.zjyt.ui里寫各個程序員的javax.swing.JPanel 每增加一個JPanel 模塊就在com.zjyt.logic里new一個(在Logic類里寫)
else if (nameString.equals("標簽打印")) {
jTabbedPaneAdd(new Read());
}
即可以,運行起來后,雙擊樹形結構的節點,右邊的tab控件就顯示相應的JPanel 模塊,雙擊JTabledPanel的頭,就可以關閉當前的頁面.

代碼片段和文件信息
/*
?*?Zjyt.java
?*
?*?Created?on?__DATE__?__TIME__
?*/
package?com.zjyt.jframe;
import?java.awt.FlowLayout;
import?java.awt.frame;
import?javax.swing.BorderFactory;
import?com.zjyt.utility.DoubleClick;
import?com.zjyt.utility.Utility;
import?javax.swing.JDialog;
import?javax.annotation.processing.Messager;
/**
?*?
?*?@author?__USER__
?*/
public?class?Zjyt?extends?javax.swing.Jframe?{
/**?Creates?new?form?Zjyt?*/
public?Zjyt()?{
initComponents();
init();
jPanelTop.setVisible(false);
txtIpMessage.setBackground(this.getBackground());
setThisSize();
Utility.setJframeLogo(this);//設置logo標志
}
/*
?*?設置本控件的寬和高
?*/
void?setThisSize()?{
int?thisWidth?=?430;//?寬
int?thisHeigh?=?Utility.floatToInt(thisWidth?*?0.618f);//?高
this.setSize(thisWidth?thisHeigh);
}
/*
?*?設置首頁groupBox在Tab控件的位置
?*/
void?setPositiond()?{
Utility.setPositiond(this?jPnlLogin?0.7f);
Utility.setPositiond(this?jPanelTop?0.99f);
jPnlLogin
.setAlignmentY(Utility.floatToInt(jPnlLogin.getHeight()?*?0.618f));
//?this.setSize(this.getWidth()Utility.floatToInt(this.getHeight()?*
//?0.618f));
//?this.setSize(435?268);
}
/*
?*?初始化
?*/
void?init()?{
Utility.setCenter(this);//?設置屏幕居中
//?Utility.setThisFill(this?true);//初始化就最大化
Utility.groupBox(jPnlLogin?“?請輸入工號和密碼?“);
//?this.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
this.settitle(com.zjyt.property.Property.company+“?“+com.zjyt.property.Property.version);
//?Utility.setPosition(this?jPnlLogin);
}
//?GEN-BEGIN:initComponents
//?
private?void?initComponents()?{
jDialogMessage?=?new?javax.swing.JDialog();
jPnlLogin?=?new?javax.swing.JPanel();
txtUserNo?=?new?javax.swing.JTextField();
lblUserNo?=?new?javax.swing.JLabel();
lblPwd?=?new?javax.swing.JLabel();
txtPwd?=?new?javax.swing.JPasswordField();
btnLogin?=?new?javax.swing.JButton();
chkAutoUpdate?=?new?javax.swing.JCheckBox();
btnReset?=?new?javax.swing.JButton();
jPanelTop?=?new?javax.swing.JPanel();
chkTest?=?new?javax.swing.JCheckBox();
txtIp?=?new?javax.swing.JTextField();
lblDnsName?=?new?javax.swing.JLabel();
lblInnerNet?=?new?javax.swing.JLabel();
txtIpMessage?=?new?javax.swing.JTextField();
javax.swing.GroupLayout?jDialogMessageLayout?=?new?javax.swing.GroupLayout(
jDialogMessage.getContentPane());
jDialogMessage.getContentPane().setLayout(jDialogMessageLayout);
jDialogMessageLayout.setHorizontalGroup(jDialogMessageLayout
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0?400?Short.MAX_VALUE));
jDialogMessageLayout.setVerticalGroup(jDialogMessageLayout
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0?300?Short.MAX_VALUE));
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
addCompon
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????492??2011-08-26?22:31??swingZjyt\.classpath
?????文件?????????33??2011-08-26?22:31??swingZjyt\.myeclipse\.svn\dir-prop-ba
?????文件????????233??2011-09-06?19:30??swingZjyt\.myeclipse\.svn\entries
?????文件?????????33??2011-08-26?22:31??swingZjyt\.myeclipse\profiler\.svn\dir-prop-ba
?????文件????????513??2011-09-06?19:30??swingZjyt\.myeclipse\profiler\.svn\entries
?????文件????????950??2011-08-26?22:31??swingZjyt\.myeclipse\profiler\.svn\text-ba
?????文件???????1398??2011-08-26?22:31??swingZjyt\.myeclipse\profiler\.svn\text-ba
?????文件????????950??2011-08-26?22:31??swingZjyt\.myeclipse\profiler\Main.xm
?????文件???????1398??2011-08-26?22:31??swingZjyt\.myeclipse\profiler\Run.xm
?????文件????????380??2011-08-26?22:31??swingZjyt\.project
?????文件?????????33??2011-08-26?22:31??swingZjyt\.settings\.svn\dir-prop-ba
?????文件????????378??2011-09-06?19:30??swingZjyt\.settings\.svn\entries
?????文件????????629??2011-08-26?22:31??swingZjyt\.settings\.svn\text-ba
?????文件????????629??2011-08-26?22:31??swingZjyt\.settings\org.eclipse.jdt.core.prefs
?????文件?????????33??2011-08-26?22:31??swingZjyt\.svn\dir-prop-ba
?????文件????????865??2011-09-06?19:30??swingZjyt\.svn\entries
?????文件?????????53??2011-09-04?22:50??swingZjyt\.svn\prop-ba
?????文件????????492??2011-08-26?22:31??swingZjyt\.svn\text-ba
?????文件????????380??2011-08-26?22:31??swingZjyt\.svn\text-ba
?????文件???????9794??2011-08-28?01:42??swingZjyt\.svn\text-ba
?????文件?????987136??2011-09-04?22:50??swingZjyt\.svn\text-ba
?????文件?????????33??2011-09-16?22:47??swingZjyt\bin\.svn\dir-prop-ba
?????文件????????222??2011-09-16?22:47??swingZjyt\bin\.svn\entries
?????文件?????????33??2011-09-16?22:47??swingZjyt\bin\com\.svn\dir-prop-ba
?????文件????????227??2011-09-16?22:47??swingZjyt\bin\com\.svn\entries
?????文件?????????33??2011-09-16?22:47??swingZjyt\bin\com\zjyt\.svn\dir-prop-ba
?????文件????????349??2011-09-16?22:47??swingZjyt\bin\com\zjyt\.svn\entries
?????文件?????????33??2011-09-16?22:47??swingZjyt\bin\com\zjyt\biz\.svn\dir-prop-ba
?????文件????????224??2011-09-16?22:47??swingZjyt\bin\com\zjyt\biz\.svn\entries
?????文件?????????33??2011-09-16?22:47??swingZjyt\bin\com\zjyt\dao\.svn\dir-prop-ba
............此處省略703個文件信息
- 上一篇:基于java web的在線考試系統
- 下一篇:基于JSP的網上招聘系統
評論
共有 條評論