package窗体;importjava.awt.Color;importjava.awt.Container;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JLabel;importjavax.swing.JPanel;importjavax...
package 窗体;
import java.awt.Color;
import java.awt.Container;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
public class 一九代换2 extends JFrame{
public 一九代换2(){
JPanel ct=new JPanel();
setBounds(200,10,500,309);
setLayout(null);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTextArea text1=new JTextArea();
JTextArea text2=new JTextArea();
JTextArea text3=new JTextArea();
text1.setBounds(0,0,50,50);
text2.setBounds(100,0,50,50);
text3.setBounds(200,0,50,50);
text1.setBackground(Color.red);
text2.setBackground(Color.red);
text3.setBackground(Color.red);
ct.add(text1);
ct.add(text2);
ct.add(text3);
setVisible(true);
}
public static void main(String[]args){
new 一九代换2();}
}
展开