void initPanel2() {
		// 设置背景的控件
		// panel2=uii.getPanel(imgPath);
		// MyPanel.setImgPath(imgPath);
		panel2 = new MyPanel();
		// 设置音乐的控件
		JPanel musicPanel = new JPanel();
		JPanel taskPanel = new JPanel();
		ButtonGroup musicGroup = new ButtonGroup();
		ButtonGroup taskGroup = new ButtonGroup();
		musicOn = UIUtils.createJRadioButton("play", "开");
		musicOff = UIUtils.createJRadioButton("stop", "关");
		taskOn = new JRadioButton("幻灯片开");
		taskOff = new JRadioButton("幻灯片关");
		backButton = UIUtils.createMusicJButton("pre", "上一首");
		fowardButton = UIUtils.createMusicJButton("next", "下一首");
		progress.setStringPainted(true);
		backButton.addActionListener(this);
		slider = UIUtils.createSlider(SwingConstants.HORIZONTAL);
		slider.setBounds(10, 108, 270, 15);
		slider.addChangeListener(new ChangeListener() {

			@Override
			public void stateChanged(ChangeEvent e) {
				// TODO Auto-generated method stub
				if (Math.abs(slider.getValue() - progress.getValue()) > 2) {
					ThreadBean.setSpliderChange(true);
				}

			}
		});
		fowardButton.addActionListener(this);
		loopControll = bProvider.getButton("列表循环");
		final ImageIcon[] iconsSingle = UIUtils.getMusicIcon("single", 3);
		final ImageIcon[] iconsRandom = UIUtils.getMusicIcon("random", 3);
		final ImageIcon[] iconsLoop = UIUtils.getMusicIcon("loop", 3);
		loopControll.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub

				switch (e.getActionCommand()) {
				case "列表循环":
					ThreadBean.setRandomPlay(false);
					ThreadBean.setSinglePlay(true);
					// ImageIcon[] iconsSingle = UIUtils.getMusicIcon("single",
					// 3);
					// loopControll=bProvider.getButton("单曲循环");
					UIUtils.setButton(loopControll, iconsSingle, "单曲循环");
					loopControll.removeActionListener(this);
					loopControll.addActionListener(this);
					break;
				case "单曲循环":
					ThreadBean.setSinglePlay(false);
					ThreadBean.setRandomPlay(true);
					// loopControll=bProvider.getButton("随机播放");
					UIUtils.setButton(loopControll, iconsRandom, "随机播放");
					loopControll.removeActionListener(this);
					loopControll.addActionListener(this);
					break;
				case "随机播放":
					ThreadBean.setSinglePlay(false);
					ThreadBean.setRandomPlay(false);
					// loopControll=bProvider.getButton("列表循环");
					UIUtils.setButton(loopControll, iconsLoop, "列表循环");
					loopControll.removeActionListener(this);
					loopControll.addActionListener(this);
					break;
				default:
					break;
				}
			}
		});
		/*
		 * playBox.addItemListener(new ItemListener() {
		 * 
		 * @Override public void itemStateChanged(ItemEvent e) { // TODO
		 * Auto-generated method stub switch ((String)
		 * playBox.getSelectedItem()) { case "列表循环":
		 * ThreadBean.setSinglePlay(false); ThreadBean.setRandomPlay(false);
		 * break; case "单曲循环": ThreadBean.setRandomPlay(false);
		 * ThreadBean.setSinglePlay(true); break; case "随机播放":
		 * ThreadBean.setSinglePlay(false); ThreadBean.setRandomPlay(true);
		 * break; default: break; }
		 * 
		 * } });
		 */

		musicOn.addItemListener(this);
		musicOff.addItemListener(this);
		taskOn.addItemListener(this);
		taskOff.addItemListener(this);
		taskOn.setOpaque(false);
		taskOff.setOpaque(false);
		musicOn.setOpaque(false);
		musicOff.setOpaque(false);
		musicGroup.add(musicOn);
		musicGroup.add(musicOff);
		taskGroup.add(taskOn);
		taskGroup.add(taskOff);
		Box boxh = Box.createHorizontalBox();
		boxh.add(musicOn);
		boxh.add(Box.createHorizontalStrut(10));
		boxh.add(musicOff);
		boxh.add(Box.createHorizontalStrut(10));
		// boxh.add(playBox);
		boxh.add(loopControll);
		Box boxh2 = Box.createHorizontalBox();
		boxh2.add(backButton);
		boxh2.add(Box.createHorizontalStrut(5));
		boxh2.add(fowardButton);
		Box box = Box.createVerticalBox();

		box.add(boxh);
		box.add(Box.createVerticalStrut(10));
		box.add(boxh2);
		musicPanel.add(box);
		taskPanel.add(taskOn);
		taskPanel.add(taskOff);
		taskPanel.setOpaque(false);
		musicPanel.setOpaque(false);
		TitledBorder titleBorder1 = new TitledBorder(new BevelBorder(
				BevelBorder.RAISED), "音乐", TitledBorder.LEADING,
				TitledBorder.TOP, new Font("Dialog", Font.BOLD, 12), new Color(
						51, 51, 51));
		musicPanel.setBorder(titleBorder1);
		/*
		 * music.setBorder(BorderFactory.createTitledBorder(null, "音乐",
		 * TitledBorder.LEADING, TitledBorder.TOP, new Font("Dialog", Font.BOLD,
		 * 12), new Color(51, 51, 51)));
		 */
		TitledBorder titleBorder2 = new TitledBorder(new EtchedBorder(
				EtchedBorder.RAISED), "幻灯片", TitledBorder.LEADING,
				TitledBorder.TOP, new Font("Dialog", Font.BOLD, 12), new Color(
						51, 51, 51));
		/*
		 * taskPanel.setBorder(BorderFactory.createTitledBorder(null, "幻灯片",
		 * TitledBorder.LEADING, TitledBorder.TOP, new Font("Dialog", Font.BOLD,
		 * 12), new Color(51, 51, 51)));
		 */
		taskPanel.setBorder(titleBorder2);
		labelTime = new JJLabel();// 用于显示歌曲时间
		labelTime.setBackground(Color.WHITE);
		labelTime.setOpaque(true);
		labelTime.setBorder(new BevelBorder(BevelBorder.RAISED));
		labelTime.setAutoscrolls(true);
		// labelTime.setForeground(Color.BLUE);
		labelTime.setFont(new Font("serif", Font.BOLD, 16));
		labelTime.setAlignmentX(CENTER_ALIGNMENT);
		music.setLabelTime(labelTime);
		// 按钮
		Box panel1Box = Box.createVerticalBox();
		// progressBar.setIndeterminate(true);
		panel1Box.add(labelTime);
		panel1Box.add(Box.createVerticalStrut(5));
		panel1Box.add(progress);
		panel1Box.add(slider);
		panel1Box.add(Box.createVerticalStrut(20));
		panel1Box.add(musicPanel);
		panel1Box.add(Box.createVerticalStrut(20));
		panel1Box.add(taskPanel);
		panel1Box.add(Box.createVerticalStrut(15));
		// panel1Box.add(backPanel);

		listPanel = new JPanel();
		labelMusic = new JJLabel();
		labelMusic.setAlignmentX(CENTER_ALIGNMENT);
		setLabelMusic(labelMusic);
		TitledBorder titleBorder3 = new TitledBorder(new EtchedBorder(
				EtchedBorder.RAISED), "播放列表", TitledBorder.LEADING,
				TitledBorder.TOP, new Font("Dialog", Font.BOLD, 12), new Color(
						51, 51, 51));
		listPanel.setBorder(titleBorder3);
		listPanel.add(new JScrollPane(musicList));
		panel1Box.add(getLabelMusic());
		panel1Box.add(Box.createVerticalStrut(15));
		panel1Box.add(listPanel);
		panel1Box.add(Box.createVerticalStrut(50));
		panel2.add(panel1Box);
		panel2.setVisible(true);

	}