//the code is below
import java.awt.*;
import javax.swing.*;public class Frame1 extends JFrame {
private JPasswordField jPasswordField1 = new JPasswordField();
private FlowLayout flowLayout1 = new FlowLayout(); public Frame1() {
jPasswordField1.setPreferredSize(new Dimension(100, 20));
this.getContentPane().setLayout(flowLayout1);
this.getContentPane().add(jPasswordField1, null);
} public static void main(String[] args) {
Frame1 frame1 = new Frame1();
frame1.setSize(100,75);
frame1.show();
}
}
import java.awt.*;
import javax.swing.*;public class Frame1 extends JFrame {
private JPasswordField jPasswordField1 = new JPasswordField();
private FlowLayout flowLayout1 = new FlowLayout(); public Frame1() {
jPasswordField1.setPreferredSize(new Dimension(100, 20));
this.getContentPane().setLayout(flowLayout1);
this.getContentPane().add(jPasswordField1, null);
} public static void main(String[] args) {
Frame1 frame1 = new Frame1();
frame1.setSize(100,75);
frame1.show();
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货