diff --git a/Cow.java b/Cow.java index ad6e2e9..2737e4f 100755 --- a/Cow.java +++ b/Cow.java @@ -138,11 +138,16 @@ private String makeName(String sex, int id) { - if (sex == "male") return "Bull #"+id; - else if (sex == "female") return "Cow #"+id; + if (sex == "male") return "Bull #"+id+" "+unicode(0x1F402); + else if (sex == "female") return "Cow #"+id+" "+unicode(0x1F404); else return "ERROR No such sex: "+sex; } + private String unicode(int codePoint) + { + return new StringBuilder().appendCodePoint(codePoint).toString(); + } + private int combineTrait(int fathertrait, int mothertrait) { int newtrait = (int) Math.round((fathertrait+mothertrait)/2); diff --git a/Cow.java b/Cow.java index ad6e2e9..2737e4f 100755 --- a/Cow.java +++ b/Cow.java @@ -138,11 +138,16 @@ private String makeName(String sex, int id) { - if (sex == "male") return "Bull #"+id; - else if (sex == "female") return "Cow #"+id; + if (sex == "male") return "Bull #"+id+" "+unicode(0x1F402); + else if (sex == "female") return "Cow #"+id+" "+unicode(0x1F404); else return "ERROR No such sex: "+sex; } + private String unicode(int codePoint) + { + return new StringBuilder().appendCodePoint(codePoint).toString(); + } + private int combineTrait(int fathertrait, int mothertrait) { int newtrait = (int) Math.round((fathertrait+mothertrait)/2); diff --git a/MooBreeder.java b/MooBreeder.java index 27c1f91..3efab35 100755 --- a/MooBreeder.java +++ b/MooBreeder.java @@ -262,6 +262,7 @@ //Genealogy labels cowBox.setName(String.valueOf(c.getID())); JLabel name = new JLabel(c.getName()); + name.setFont(new Font(Font.SERIF, Font.BOLD, 14)); JLabel genealogy = new JLabel("Generation "+c.getGeneration()+ ", Father: "+c.getParents()[0]+ ", Mother: "+c.getParents()[1]); @@ -278,6 +279,7 @@ cowBox.add(tl2); cowBox.add(Box.createVerticalStrut(5)); JLabel rl = new JLabel(c.rateCow(goal)); + rl.setFont(new Font(Font.SANS_SERIF, Font.ITALIC, 12)); cowBox.add(rl); //Final stuff cowBox.add(Box.createVerticalStrut(5));