fix typos and submenu mnemonic bug
[fanfix.git] / src / jexer / TImageWindow.java
index a4a54a91d8c601ebd82c0311ddba7f2056ac9d8c..86b0d6d62811d201b902646fe2fcd5d6ab16133d 100644 (file)
@@ -104,8 +104,8 @@ public class TImageWindow extends TScrollableWindow {
 
         BufferedImage image = ImageIO.read(file);
 
-        imageField = new TImage(this, 0, 0, getWidth() - 2, getHeight() - 2,
-            image, 0, 0, null);
+        imageField = addImage(0, 0, getWidth() - 2, getHeight() - 2,
+            image, 0, 0);
         setTitle(file.getName());
 
         setupAfterImage();