文件名称:ActionListener
介绍说明--下载内容均来自于网络,请自行研究使用
import java.awt.*
import java.awt.event.*
public class Calculator implements ActionListener
{
String s= " ",s1
double d1,d2
Jfr a me jf = new Jfr a me( "计算器 ")
JTextField tf = new JTextField()
public void init()//实现计算器界面
{
Container c=jf.getContentPane()
tf.setHorizontalAlignment(JTextField.RIGHT) //文本框
c.add(tf, "North ")
JPanel pn3 = new JPanel(new BorderLayout(-import java.awt.*
import java.awt.event.*
public class Calculator implements ActionListener
{
String s= " ",s1
double d1,d2
Jfr a me jf = new Jfr a me( "计算器 ")
JTextField tf = new JTextField()
public void init()//实现计算器界面
{
Container c=jf.getContentPane()
tf.setHorizontalAlignment(JTextField.RIGHT) //文本框
c.add(tf, "North ")
JPanel pn3 = new JPanel(new BorderLayout())
import java.awt.event.*
public class Calculator implements ActionListener
{
String s= " ",s1
double d1,d2
Jfr a me jf = new Jfr a me( "计算器 ")
JTextField tf = new JTextField()
public void init()//实现计算器界面
{
Container c=jf.getContentPane()
tf.setHorizontalAlignment(JTextField.RIGHT) //文本框
c.add(tf, "North ")
JPanel pn3 = new JPanel(new BorderLayout(-import java.awt.*
import java.awt.event.*
public class Calculator implements ActionListener
{
String s= " ",s1
double d1,d2
Jfr a me jf = new Jfr a me( "计算器 ")
JTextField tf = new JTextField()
public void init()//实现计算器界面
{
Container c=jf.getContentPane()
tf.setHorizontalAlignment(JTextField.RIGHT) //文本框
c.add(tf, "North ")
JPanel pn3 = new JPanel(new BorderLayout())
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ActionListener.txt