fix typos and submenu mnemonic bug
[fanfix.git] / src / jexer / TImage.java
index 1a9aa9e62e6d5ec2b9ce4c52de3461a39c297c25..bc827b709a4dd5e75bd1021f1c30c6ab11f19d49 100644 (file)
@@ -111,6 +111,25 @@ public class TImage extends TWidget {
     // Constructors -----------------------------------------------------------
     // ------------------------------------------------------------------------
 
+    /**
+     * Public constructor.
+     *
+     * @param parent parent widget
+     * @param x column relative to parent
+     * @param y row relative to parent
+     * @param width number of text cells for width of the image
+     * @param height number of text cells for height of the image
+     * @param image the image to display
+     * @param left left column of the image.  0 is the left-most column.
+     * @param top top row of the image.  0 is the top-most row.
+     */
+    public TImage(final TWidget parent, final int x, final int y,
+        final int width, final int height,
+        final BufferedImage image, final int left, final int top) {
+
+        this(parent, x, y, width, height, image, left, top, null);
+    }
+
     /**
      * Public constructor.
      *