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 |
* |
* |
41 |
import javax.swing.JTextField; |
import javax.swing.JTextField; |
42 |
|
|
43 |
import org.jsampler.CC; |
import org.jsampler.CC; |
|
import org.jsampler.HF; |
|
44 |
|
|
45 |
import org.jsampler.view.JSChannelsPane; |
import org.jsampler.view.JSChannelsPane; |
46 |
import org.jsampler.view.JSMainFrame; |
import org.jsampler.view.JSMainFrame; |
47 |
|
import org.jsampler.view.swing.SHF; |
48 |
|
|
49 |
import net.sf.juife.EnhancedDialog; |
import net.sf.juife.swing.EnhancedDialog; |
50 |
import net.sf.juife.JuifeUtils; |
import net.sf.juife.swing.JuifeUtils; |
51 |
|
|
52 |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
53 |
|
|
123 |
ChannelsPane pane = new ChannelsPane(title); |
ChannelsPane pane = new ChannelsPane(title); |
124 |
|
|
125 |
if(title.length() == 0) { |
if(title.length() == 0) { |
126 |
HF.showErrorMessage(i18n.getError("NewChannelsTabDlg.emptyTitle!"), this); |
SHF.showErrorMessage(i18n.getError("NewChannelsTabDlg.emptyTitle!"), this); |
127 |
return; |
return; |
128 |
} |
} |
129 |
|
|
131 |
if(pane.getTitle().equals(p.getTitle())) { |
if(pane.getTitle().equals(p.getTitle())) { |
132 |
String s; |
String s; |
133 |
s = i18n.getError("NewChannelsTabDlg.tabExist!", pane.getTitle()); |
s = i18n.getError("NewChannelsTabDlg.tabExist!", pane.getTitle()); |
134 |
HF.showErrorMessage(s, this); |
SHF.showErrorMessage(s, this); |
135 |
return; |
return; |
136 |
} |
} |
137 |
} |
} |