import javax.swing.*;
+import java.awt.event.*;
public class MooToolbar extends JToolBar {
fastforward = createButton("images/forward.gif", "fast forward");
add(fastforward);
+ meas = createProgressIndikator("meas");
+ add(meas);
}
private JButton createButton(String imageLocation, String toolTip) {
return button;
}
+ private JPanel createProgressIndikator(String name) {
+ JPanel panel = new JPanel();
+ JLabel label = new JLabel(name);
+ JComboBox combo = new JComboBox();
+ add(label);
+ add(combo);
+ return panel;
+
+
+ }
+
+ /*public void actionPerformed(ActionEvent e) {
+ String but = e.getActionCommand();
+
+ if (but == "rewind") {
+
+ } else if (but == "images/play.gif") {
+ JOptionPane.showMessageDialog(null, "playing");
+
+ } else if (but == "stop") {
+
+ } else if (but == "rewind") {
+
+ }
+ }*/
private JButton rewind;
private JButton playpause;
private JButton stop;
private JButton fastforward;
+ private JPanel meas;
}