}
view.redrawGrid();
}
public void importImage(){
ImageImporter ii=new ImageImporter(view, rb, config.getImageDirectory(),this.rows, this.cols);
if (ii.hasImage){
config.setImageDirectory(ii.getImagePath());
ii.setVisible(true);
if(!ii.wasCancelled){
setSolving(false); //ensure clues updated etc
this.rows=ii.getRows(); this.cols=ii.getCols();
this.resize(this.rows,this.cols);
view.setClueFontAndSize(calculateCluePointSize(this.rows,this.cols));
view.setName(ii.getImageName());
view.setAuthor(rb.getString("Image"));
view.setCreationDate(rb.getString("Today"));
view.setScore("");
view.setLicense("");
model.useSolution();
for (int i=0; i<this.rows; i++) model.setRowDataFromArray(i,ii.getRow(i));
updateAllLabelsFromModel();
this.validSolution=true;
}
}
ii.dispose();
}