1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2011 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
29 |
|
|
30 |
import javax.swing.JDialog; |
import javax.swing.JDialog; |
31 |
|
|
32 |
import org.jsampler.CC; |
import org.jsampler.view.swing.SHF; |
33 |
|
|
34 |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
35 |
|
|
54 |
addWindowListener(new WindowAdapter() { |
addWindowListener(new WindowAdapter() { |
55 |
public void |
public void |
56 |
windowClosing(WindowEvent e) { |
windowClosing(WindowEvent e) { |
57 |
MainFrame mainFrame = (MainFrame)CC.getMainFrame(); |
MainFrame mainFrame = (MainFrame)SHF.getMainFrame(); |
58 |
mainFrame.setLSConsoleShown(false); |
mainFrame.setLSConsoleShown(false); |
59 |
setVisible(false); |
setVisible(false); |
60 |
} |
} |