⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updateitemdialog.java

📁 一个带界面的在线测试系统
💻 JAVA
字号:
/*
 * UpdateItemDialog.java
 *
 * Created on 2007年12月20日, 上午12:04
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package olts.ui;
import olts.application.*;
import javax.swing.*;
/**
 * 这个类用于实现更新试题的对话框
 * @author ZZ
 * @version 1.0
 */
public class UpdateItemDialog extends AddItemDialog {
    //protected JTextField textFieldForId = new JTextField((new Integer(i.getId())).toString());
    /** Creates a new instance of UpdateItemDialog */
 
    public UpdateItemDialog(MainFrame mf,Item it) {

        super(mf,it);

    }
    
    protected void forUpdate(){
        this.textFieldForId.setText((new Integer(i.getId())).toString());
        this.textFieldForAns.setText(i.getAnswer());
        this.textFieldForCon.setText(i.getContent());
        this.textFieldForDiff.setText((new Integer(i.getDifficulty())).toString());
        this.textFieldForScore.setText((new Integer(i.getScore())).toString());
        this.textFieldForTime.setText((new Integer(i.getTimeLimit())).toString());
        
    }
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -