标签: java swing awt
我试过这样的东西,但它只适用于淡出
public void actionPerformed(ActionEvent e) { float op=(float) 1.000; while(op>=0.0) { setOpacity(op); op=(float) (op-0.000001); } dispose(); new HomeScreen(); tm.stop(); }