ActionListener listener = new ActionListener() {
int pos = 180;
public void actionPerformed(ActionEvent e) {
pos++;
l1.setBounds(212, pos, 154, 23);
l1.setText("gogo"); }
}; Timer timer = new Timer(50,listener);
timer.start();
这是从上到下移动,可不可以从左到右移动
int pos = 180;
public void actionPerformed(ActionEvent e) {
pos++;
l1.setBounds(212, pos, 154, 23);
l1.setText("gogo"); }
}; Timer timer = new Timer(50,listener);
timer.start();
这是从上到下移动,可不可以从左到右移动
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货