资源简介
用Java编写的一款小巧的练习打字的小程序,打字训练内容可以自行修改,只要修改文本文件内容就可以了。是一款学习Java编程和练习打字的不错软件。
代码片段和文件信息
package mfd;
import javax.swing.SwingUtilities;
import java.awt.BorderLayout;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.Jframe;
import java.awt.Dimension;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import java.awt.event.KeyEvent;
import java.awt.SystemColor;
import java.awt.GridBagLayout;
import java.awt.FlowLayout;
import javax.swing.JToolBar;
import javax.swing.JButton;
import java.awt.Font;
import javax.swing.BorderFactory;
import javax.swing.border.BevelBorder;
import javax.swing.border.SoftBevelBorder;
import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import java.awt.CardLayout;
import javax.swing.border.titledBorder;
import javax.swing.JRadioButton;
import java.awt.Rectangle;
import java.awt.Point;
import javax.swing.JTextField;
import javax.swing.JComboBox;
public class Mainframe extends Jframe {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JMenuBar jJMenuBar = null;
private JMenu jMenu = null;
private JPanel jPanel = null;
private JToolBar jJToolBarBar = null;
private JButton jButton = null;
private JPanel jPanel1 = null;
private JLabel stateLabel = null;
private JPanel jPanel2 = null;
private CardLayout card = new CardLayout();
private JButton jButton1 = null;
private JPanel onePanel = null;
private JPanel jPanel3 = null;
private JButton jButton2 = null;
private JButton jButton3 = null;
private JButton jButton4 = null;
private JLabel jLabel = null;
private JTextField jTextField = null;
private JLabel jLabel1 = null;
private JTextField jTextField1 = null;
private JLabel jLabel2 = null;
UserInfo user=new UserInfo(); //用户信息对象
Nianxi nianxi=new Nianxi(user);
/**
* This method initializes jJMenuBar
*
* @return javax.swing.JMenuBar
*/
private JMenuBar getJJMenuBar() {
if (jJMenuBar == null) {
jJMenuBar = new JMenuBar();
jJMenuBar.setBackground(SystemColor.control);
jJMenuBar.add(getJMenu());
}
return jJMenuBar;
}
/**
* This method initializes jMenu
*
* @return javax.swing.JMenu
*/
private JMenu getJMenu() {
if (jMenu == null) {
jMenu = new JMenu();
jMenu.setText(“文件 (F)“);
jMenu.setMnemonic(KeyEvent.VK_F);
}
return jMenu;
}
/**
* This method initializes jPanel
*
* @return javax.swing.JPanel
*/
private JPanel getJPanel() {
if (jPanel == null) {
FlowLayout flowLayout = new FlowLayout();
flowLayout.setAlignment(java.awt.FlowLayout.LEFT);
flowLayout.setVgap(0);
flowLayout.setHgap(0);
jPanel = new JPanel();
jPanel.setBackground(SystemColor.control);
jPanel.setLayout(flowLayout);
jPanel.add(getJJToolBarBar() null);
}
return jPanel;
}
/**
* This method initializes jJToolBarBar
*
* @return javax.swing.JToolBar
*/
privat
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 232 2007-07-09 19:57 打字训练\dazhisystem\.classpath
文件 507 2007-07-09 19:59 打字训练\dazhisystem\.project
文件 280 2006-11-15 08:15 打字训练\dazhisystem\bin\image\a1.gif
文件 994 2006-11-15 08:15 打字训练\dazhisystem\bin\image\a10.gif
文件 1000 2006-11-15 08:15 打字训练\dazhisystem\bin\image\a11.gif
文件 1007 2006-11-16 18:50 打字训练\dazhisystem\bin\image\a12.gif
文件 1050 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a13.gif
文件 1051 2006-11-15 08:15 打字训练\dazhisystem\bin\image\a14.gif
文件 1057 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a15.gif
文件 1085 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a16.gif
文件 1109 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a17.gif
文件 1136 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a18.gif
文件 1338 2006-11-15 08:15 打字训练\dazhisystem\bin\image\a19.gif
文件 298 2006-11-16 18:50 打字训练\dazhisystem\bin\image\a2.gif
文件 1341 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a20.gif
文件 1343 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a21.gif
文件 1347 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a22.gif
文件 1740 2006-11-16 18:50 打字训练\dazhisystem\bin\image\a23.gif
文件 1795 2006-11-16 18:50 打字训练\dazhisystem\bin\image\a24.gif
文件 314 2006-11-16 18:50 打字训练\dazhisystem\bin\image\a3.gif
文件 818 2006-11-16 18:50 打字训练\dazhisystem\bin\image\a4.gif
文件 858 2006-11-16 18:50 打字训练\dazhisystem\bin\image\a5.gif
文件 866 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a6.gif
文件 938 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a7.gif
文件 940 2006-11-16 18:54 打字训练\dazhisystem\bin\image\a8.gif
文件 955 2006-11-16 18:50 打字训练\dazhisystem\bin\image\a9.gif
文件 1280 2006-11-16 18:54 打字训练\dazhisystem\bin\image\b1.gif
文件 1182 2006-11-16 18:54 打字训练\dazhisystem\bin\image\b2.gif
文件 1436 2006-11-16 18:54 打字训练\dazhisystem\bin\image\b3.gif
文件 1481 2006-11-16 18:54 打字训练\dazhisystem\bin\image\b4.gif
............此处省略110个文件信息
- 上一篇:计算机专业毕业论文-网上订餐系统
- 下一篇:java运动会分数统计系统课程设计
评论
共有 条评论