@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		if(e.getActionCommand().equals(StringConstants.SCAN)){
			MainFrameManager mainFrameManager = MainFrameManager.getInstance();
			String filedir = mainFrameManager.selectFileDirectory(dialog);
			if(filedir != null){
				select_dir_field.setText(filedir);
			}
		} else if(e.getActionCommand().equals(StringConstants.OK)){
			ConnectDB.getConnectInfo(dataName);
			//开始生成代码
			List<String> tableNamse = ConnectDB.getAllTableNames();
			if(tableNamse != null){
				int size = tableNamse.size();
				String tableName = "";
				for(int i = 0;i < size ;i ++){
					tableName = tableNamse.get(i);
					
				}
			}
		}
	}