Ejemplo n.º 1
0
 public void setFontSize(int fontSize) {
   estabilishOwnFont();
   setFont(
       getFrame()
           .getController()
           .getFontThroughMap(new Font(font.getFamily(), font.getStyle(), fontSize)));
 }
Ejemplo n.º 2
0
 public void toggleItalic() {
   estabilishOwnFont();
   setFont(
       getFrame()
           .getController()
           .getFontThroughMap(
               new Font(font.getFamily(), font.getStyle() ^ Font.ITALIC, font.getSize())));
 }