private void createListeners() {

		storeSys.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				SystemPanel sys = (SystemPanel) systems.getSelectedComponent();
				int choice = jf.showSaveDialog(FMTApplet.this);
				if (choice == JFileChooser.APPROVE_OPTION) {
					try {
						ObjectOutputStream os = new ObjectOutputStream(
								new FileOutputStream(jf.getSelectedFile()));
						FMTApplet.this.stop();
						os.writeObject(systems.getSelectedComponent());
						FMTApplet.this.start();
					} catch (IOException e1) {
						JOptionPane.showMessageDialog(getRootPane(),
								"Error: \n\n" + e1);
					}
				}

			}
		});

		loadSys.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				SystemPanel sys = (SystemPanel) systems.getSelectedComponent();
				int choice = jf.showOpenDialog(FMTApplet.this);
				if (choice == JFileChooser.APPROVE_OPTION) {
					try {
						ObjectInputStream is = new ObjectInputStream(
								new FileInputStream(jf.getSelectedFile()));
						SystemPanel tab = (SystemPanel) is.readObject();
						systems.add(tab);
					} catch (Exception e1) {
						JOptionPane.showMessageDialog(getRootPane(),
								"Error: \n\n" + e1);
					}
				}
			}
		});

		newSys.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				addSystem();
			}
		});

		delSys.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				int j = systems.getSelectedIndex();
				systems.remove(j);
			}
		});

		saveApplet.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				int choice = jf.showSaveDialog(FMTApplet.this);
				if (choice == JFileChooser.APPROVE_OPTION) {
					try {
						ObjectOutputStream os = new ObjectOutputStream(
								new FileOutputStream(jf.getSelectedFile()));
						FMTApplet.this.stop();
						os.writeObject(FMTApplet.this);
						FMTApplet.this.start();
					} catch (IOException e1) {
						JOptionPane.showMessageDialog(getRootPane(),
								"Error: \n\n" + e1); //$NON-NLS-1$
					}
				}

			}
		});

		loadApplet.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				int choice = jf.showOpenDialog(FMTApplet.this);
				if (choice == JFileChooser.APPROVE_OPTION) {
					try {
						ObjectInputStream is = new ObjectInputStream(
								new FileInputStream(jf.getSelectedFile()));
						FMTApplet app = (FMTApplet) is.readObject();
						app.start();
						javax.swing.JFrame window = new javax.swing.JFrame(
								"Fluid Info"); // Title
						window.setContentPane(app);
						window.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
						window.pack(); // Arrange the components.
						window.setVisible(true); // Make the window visible.
						window.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
					} catch (Exception e1) {
						JOptionPane.showMessageDialog(getRootPane(),
								"Error: \n\n" + e1);
					}
				}

			}
		});
	}