新手,在线等。。请帮我? 是只要显示给客户看(脚本语言就可以实现了)还是提交给web服务器保存到数据库啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 import java.awt.*;import java.awt.event.*;public class yrh888{String s=""; Frame f; TextField tf; TextArea out; Button b1; public static void main(String args[]) { TestFlow myFlow =new TestFlow(); myFlow.go(); } public void go() { f=new Frame("FlowLayout"); tf =new TextField(30); out=new TextArea(); f.add(tf,"South"); f.add(out); f.setLayout(new FlowLayout()); b1=new Button("打印"); ButtonListener aa =new ButtonListener(); Button b1 =new Button("button1"); b1.addActionListener(aa); f.addWindowListener(new CloseWin()); f.add(b1); f.setSize (600,600); f.pack(); f.setVisible(true); }}class ButtonListener implements ActionListener{ public void actionPerformed(ActionEvent e) { s=tf.getText(); if (e.getActionCommand()=="打印") { out.setText(); } }}class CloseWin extends WindowAdapter{ public void windowClosing(WindowEvent e) { Frame f=(Frame)(e.getSource()); f.dispose(); System.exit(0); }}就在Frame上 java中有类似C#里ref或out的功能吗? package 问题 声明接口和继承的深思的问题。 找不到符号 谁用java做过网上人物投票系统? 获取radio值的问题 jndi 问题 哪里可以下载JDK的详细文档 无法添加application/x-java-jnlp-file jnlp,如何解决啊? 我的Eclipse为什么不是中文的,我的朋友的怎么是中文的呀 请问怎么使用JavaScript从Applet中获取信息? 在程序中使用SQL语句的一个弱弱的问题
import java.awt.event.*;
public class yrh888
{
String s="";
Frame f;
TextField tf;
TextArea out;
Button b1;
public static void main(String args[])
{
TestFlow myFlow =new TestFlow();
myFlow.go();
}
public void go()
{
f=new Frame("FlowLayout");
tf =new TextField(30);
out=new TextArea();
f.add(tf,"South");
f.add(out);
f.setLayout(new FlowLayout());
b1=new Button("打印");
ButtonListener aa =new ButtonListener();
Button b1 =new Button("button1");
b1.addActionListener(aa);
f.addWindowListener(new CloseWin());
f.add(b1);
f.setSize (600,600);
f.pack();
f.setVisible(true);
}
}
class ButtonListener implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
s=tf.getText();
if (e.getActionCommand()=="打印")
{
out.setText();
}
}
}
class CloseWin extends WindowAdapter
{
public void windowClosing(WindowEvent e)
{
Frame f=(Frame)(e.getSource());
f.dispose();
System.exit(0);
}
}就在Frame上