Java的一个代码问题

来源:百度知道 编辑:UC知道 时间:2024/05/28 02:59:35
我想实现一个程序,让它运行后在黑框子里提示用户输入"r"值,然后程序应该是把它当变量用吧,总之就是接受一个值,请问头几句的代码是什么呀

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* NewJFrame.java
*
* Created on 06-六月-09, 下午 06:41
*/

/**
*
* @author zz
*/
public class NewJFrame extends javax.swing.JFrame {

/** Creates new form NewJFrame */
public NewJFrame() {
initComponents();
}

/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jTextField1 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();