Browse Source

Ustawianie karety na początek przepisu/składników

master
Grzegorz 10 years ago
parent
commit
595534cf26
3 changed files with 6 additions and 5 deletions
  1. +0
    -4
      .classpath
  2. +4
    -1
      src/main/java/db/Cookbook.java
  3. +2
    -0
      src/main/java/ksiazka/kucharska/RetrieveData.java

+ 0
- 4
.classpath View File

@ -12,10 +12,6 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<<<<<<< HEAD
=======
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
>>>>>>> 14475fcaec8b30c2ab4f67d516c37d8d120c74b1
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>

+ 4
- 1
src/main/java/db/Cookbook.java View File

@ -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;
}

+ 2
- 0
src/main/java/ksiazka/kucharska/RetrieveData.java View File

@ -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(){

Loading…
Cancel
Save