/[svn]/jsampler/trunk/src/org/jsampler/view/classic/StandardBar.java
ViewVC logotype

Contents of /jsampler/trunk/src/org/jsampler/view/classic/StandardBar.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1204 - (show annotations) (download)
Thu May 24 21:43:45 2007 UTC (16 years, 11 months ago) by iliev
File size: 1994 byte(s)
upgrading to version 0.5a

1 /*
2 * JSampler - a java front-end for LinuxSampler
3 *
4 * Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com>
5 *
6 * This file is part of JSampler.
7 *
8 * JSampler is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2
10 * as published by the Free Software Foundation.
11 *
12 * JSampler is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with JSampler; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23 package org.jsampler.view.classic;
24
25 import javax.swing.JToolBar;
26
27 import static org.jsampler.view.classic.ClassicI18n.i18n;
28
29
30 /**
31 *
32 * @author Grigor Iliev
33 */
34 public class StandardBar extends JToolBar {
35 private final ToolbarButton btnLoadScript = new ToolbarButton(A4n.loadScript);
36 private final ToolbarButton btnExportSession = new ToolbarButton(A4n.exportSamplerConfig);
37 private final ToolbarButton btnSamplerInfo = new ToolbarButton(A4n.samplerInfo);
38 private final ToolbarButton btnRefresh = new ToolbarButton(A4n.refresh);
39 private final ToolbarButton btnResetSampler = new ToolbarButton(A4n.resetSampler);
40 private final ToolbarButton btnInstrumentsDb = new ToolbarButton(A4n.windowInstrumentsDb);
41 private final ToolbarButton btnPreferences = new ToolbarButton(A4n.preferences);
42
43
44 /**
45 * Creates a new instance of StandardBar
46 */
47 public
48 StandardBar() {
49 super(i18n.getLabel("StandardBar.name"));
50
51 setFloatable(false);
52 add(btnSamplerInfo);
53 addSeparator();
54 add(btnLoadScript);
55 add(btnExportSession);
56 add(btnRefresh);
57 add(btnResetSampler);
58 addSeparator();
59 add(btnInstrumentsDb);
60 addSeparator();
61 add(btnPreferences);
62 }
63
64 }

  ViewVC Help
Powered by ViewVC