1

I tried something like this but it only works for fadeout

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();
}
  • If this is not a duplicate, please edit your question to include a [mcve] that shows your revised approach. – trashgod Sep 22 '16 at 09:27

0 Answers0