Ustawianie karety na początek przepisu/składników
This commit is contained in:
@@ -75,7 +75,10 @@ public class Cookbook {
|
||||
System.err.println("Blad przy wstawianiu przepisu");
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
} catch (IOException e) {
|
||||
System.err.println("Blad buforowania zdjecia");
|
||||
e.printStackTrace();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ public class RetrieveData extends FrmMain{
|
||||
txtDescription.setText(myRecipe.getDescription());
|
||||
txtTags.setText(myRecipe.getTags());
|
||||
imgRecipe.setIcon(myRecipe.getImage());
|
||||
txtDescription.setCaretPosition(0);
|
||||
txtIngredients.setCaretPosition(0);
|
||||
myCb.closeConnection();
|
||||
}
|
||||
public static void addNewRecipe(){
|
||||
|
||||
Reference in New Issue
Block a user