}
}
nowaGra.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent me){
final SyberiadaFrame sFrame = SyberiadaFrame.getSyberiadaFrame();
final SyberiadaMenu sMenu = SyberiadaMenu.getSyberiadaMenu();
final JPanel sPanel = (JPanel) sMenu.getParent();
nowaGra.changeForegroundColorStop();
ukryjNapisy();
autor.whenFadeOutDone(new ActionListener() {
public void actionPerformed(ActionEvent e) {
sPanel.remove(sMenu);
SyberiadaGraPanel gra = new SyberiadaGraPanel();
gra.setBounds(sMenu.getBounds());
gra.init(0);
gra.setAlpha(0);
sPanel.add(gra);
sPanel.setComponentZOrder(gra, 0);
sFrame.revalidate();
sFrame.repaint();
gra.appear(1f, 100, 200); //1000, 200
// SyberiadaMenu.deleteSyberiadaMenu();
}
});
sFrame.revalidate();
sFrame.repaint();
}
});
autor.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent me){
final SyberiadaFrame sFrame = SyberiadaFrame.getSyberiadaFrame();
final SyberiadaMenu sMenu = SyberiadaMenu.getSyberiadaMenu();
final JPanel sPanel = (JPanel) sMenu.getParent();
nowaGra.changeForegroundColorStop();
ukryjNapisy();
autor.whenFadeOutDone(new ActionListener() {
public void actionPerformed(ActionEvent e) {
sPanel.remove(sMenu);
SyberiadaAutorPanel autorPanel = new SyberiadaAutorPanel();
autorPanel.setBounds(sMenu.getBounds());
autorPanel.init();
autorPanel.setAlpha(0);
sPanel.add(autorPanel);
sPanel.setComponentZOrder(autorPanel, 0);
sFrame.revalidate();
sFrame.repaint();
autorPanel.appear(1f, 100, 200); //1000, 200
}
});
sFrame.revalidate();
sFrame.repaint();
}
});
zamknij.addMouseListener(new MouseAdapter() {
@Override