1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
90 |
actionPerformed(ActionEvent e) { onCancel(); } |
actionPerformed(ActionEvent e) { onCancel(); } |
91 |
}); |
}); |
92 |
|
|
|
pack(); |
|
93 |
Dimension d = getPreferredSize(); |
Dimension d = getPreferredSize(); |
94 |
d.width = d.width > 300 ? d.width : 300; |
d.width = d.width > 300 ? d.width : 300; |
95 |
setSize(d); |
setPreferredSize(d); |
96 |
|
|
97 |
|
pack(); |
98 |
setResizable(false); |
setResizable(false); |
99 |
|
|
100 |
setLocation(JuifeUtils.centerLocation(this, CC.getMainFrame())); |
setLocation(JuifeUtils.centerLocation(this, CC.getMainFrame())); |
124 |
* Sets the progress string. |
* Sets the progress string. |
125 |
* @param s The value of the progress string. |
* @param s The value of the progress string. |
126 |
*/ |
*/ |
127 |
|
@Override |
128 |
public void |
public void |
129 |
setString(String s) { l.setText(s); } |
setString(String s) { l.setText(s); } |
130 |
|
|
140 |
} |
} |
141 |
|
|
142 |
/** Starts to indicate that an operation is ongoing. */ |
/** Starts to indicate that an operation is ongoing. */ |
143 |
|
@Override |
144 |
public void |
public void |
145 |
start() { |
start() { |
146 |
setLocation(JuifeUtils.centerLocation(this, CC.getMainFrame())); |
setLocation(JuifeUtils.centerLocation(this, CC.getMainFrame())); |
155 |
} |
} |
156 |
|
|
157 |
/** Stops the indication that an operation is ongoing. */ |
/** Stops the indication that an operation is ongoing. */ |
158 |
|
@Override |
159 |
public void |
public void |
160 |
stop() { |
stop() { |
161 |
SwingUtilities.invokeLater(new Runnable() { |
SwingUtilities.invokeLater(new Runnable() { |