[java]
package Second;
import java
import javax
import java
import java
public class test
/**
* @param args
*/
public JTextField s=new JTextField(
public JTextField s
public JLabel l
public JLabel l
public JLabel l
public JButton b
public JButton b
public JButton b
void display()
{
JPanel panel=new JPanel(new GridLayout(
JFrame jf=new JFrame(
jf
jf
jf
jf
jf
panel
panel
panel
panel
panel
panel
panel
panel
b
b
b
}
public void actionPerformed(ActionEvent e){
if(e
{
double a=Double
a=a*a;
s
}
else if(e
{
double a=Double
a=a*a*a;
s
}
else if(e
{
double a=Double
a=a*a*a*a;
s
}
}
public static void main(String[] args) {
// TODO Auto
test
m
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26316.html