git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typos and submenu mnemonic bug
[fanfix.git]
/
src
/
jexer
/
TImageWindow.java
diff --git
a/src/jexer/TImageWindow.java
b/src/jexer/TImageWindow.java
index a4a54a91d8c601ebd82c0311ddba7f2056ac9d8c..86b0d6d62811d201b902646fe2fcd5d6ab16133d 100644
(file)
--- a/
src/jexer/TImageWindow.java
+++ b/
src/jexer/TImageWindow.java
@@
-104,8
+104,8
@@
public class TImageWindow extends TScrollableWindow {
BufferedImage image = ImageIO.read(file);
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();
setTitle(file.getName());
setupAfterImage();