private void bindEvent(){
		searchLabel.addMouseListener(new MouseAdapter() {

			@Override
			public void mouseClicked(MouseEvent e) {
				super.mouseClicked(e);
				doSearch();
			}

			@Override
			public void mouseEntered(MouseEvent e) {
				super.mouseEntered(e);
				searchLabel.setForeground(Color.BLACK);
			}

			@Override
			public void mouseExited(MouseEvent e) {
				super.mouseExited(e);
				searchLabel.setForeground(Color.WHITE);
			}
			
		});
		
		textField.addKeyListener(new KeyAdapter() {

			@Override
			public void keyPressed(KeyEvent e) {
				super.keyPressed(e);
				if (e.getKeyCode() == KeyEvent.VK_ENTER) {
					doSearch();
				}
			}
		});

		searchList.addMouseListener(new MouseAdapter() {

			@Override
			public void mouseClicked(MouseEvent e) {
				super.mouseClicked(e);
				int clickCount = e.getClickCount();
				if (clickCount == 2) {
					PlayListItem item = searchList.getSelectedValue();
					remoteService.download(item);
					playList.append(item);
				}
			}

			@Override
			public void mouseExited(MouseEvent e) {
				super.mouseExited(e);
				searchPanel.setVisible(false);
			}
			
			

		});
		
		
		playList.addMouseListener(new MouseAdapter() {

			@Override
			public void mouseClicked(MouseEvent e) {
				super.mouseClicked(e);
				int clickCount = e.getClickCount();
				if (clickCount == 2) {
					int index = playList.getSelectedIndex();
					if(!playService.isAlive() || playService.isInterrupt()){
						playService.setPlayList(playList);
						playService.startPlay(index);
						playService.start();
					}else{
						playService.startPlay(index);
					}
				}
			}

		});
		
		//删除按钮
		deleteLabel.addMouseListener(new MouseAdapter() {

			@Override
			public void mouseClicked(MouseEvent e) {
				super.mouseClicked(e);
				int index = playList.getSelectedIndex();
				playList.removeItem(index);
				playList.savePlayList();
				playService.playNext();
			}
			
			@Override
			public void mouseEntered(MouseEvent e) {
				super.mouseEntered(e);
				deleteLabel.setForeground(Color.BLACK);
			}

			@Override
			public void mouseExited(MouseEvent e) {
				super.mouseExited(e);
				deleteLabel.setForeground(Color.WHITE);
			}
			
		});
		
		//添加本地音乐
		addLocalLabel.addMouseListener(new MouseAdapter() {

			@Override
			public void mouseClicked(MouseEvent e) {
				super.mouseClicked(e);
				JFileChooser chooser = new JFileChooser();
//				FileNameExtensionFilter filter = new FileNameExtensionFilter("mp3","dat","vob");
//				chooser.setFileFilter(filter);
				chooser.setCurrentDirectory(new File("F:\\music"));//E:\\android\\windows\\Classification\\article
				chooser.setMultiSelectionEnabled(true);
				chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
				int result = chooser.showOpenDialog(null);
				if(result == JFileChooser.APPROVE_OPTION){
					File[] files = chooser.getSelectedFiles();
					for (File file : files) {
						String title = file.getName();
						title = title.substring(0, title.lastIndexOf("."));
						String cover = "./cache/cover/" + title + ".jpg";
						String path = file.getPath();
						PlayListItem item = new PlayListItem(title, null, path, cover, true);
						playList.append(item);
					}
				}
			}
			
			@Override
			public void mouseEntered(MouseEvent e) {
				super.mouseEntered(e);
				addLocalLabel.setForeground(Color.BLACK);
			}

			@Override
			public void mouseExited(MouseEvent e) {
				super.mouseExited(e);
				addLocalLabel.setForeground(Color.WHITE);
			}
			
		});
	}