private void initWindow(){
        window.getStartButton().addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				String urlString = window.getUrlText().getText();
				if(urlString.trim().equals("")){
					JOptionPane.showMessageDialog(window, "дƥݵķʵַ");
				}else{
					try {
						HttpRequester request = new HttpRequester();
						HttpRespons hr = request.sendGet(urlString);
						//TODO ģĻȡݸʽ
						PackageNameInfo pInfo;
						List<String> ps;
						for(int i = 0; i < 1000; i++){
							ps = new ArrayList<String>();
							ps.add("com.subao.husubao");
							if(i == 10 || i == 30){
								ps.add("com.suba.huss");
							}else{
								ps.add("com.subao.game");
							}
							pInfo = new PackageNameInfo(i, "com.subao.*", ps);
							packages.add(pInfo);
						}
						startThread();
					} catch (IOException e1) {
						e1.printStackTrace();
						JOptionPane.showMessageDialog(window, "ʸõַ쳣");
					}
				}
			}
		});
        
        window.getOpenFileButton().addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				openErrorFile();
			}
		});
	}