import jexer.TCommand;
import jexer.TKeypress;
import jexer.TLabel;
-import jexer.TText2;
+import jexer.TText;
import jexer.TWindow;
import jexer.event.TResizeEvent;
import be.nikiroo.fanfix.Instance;
public class TuiReaderStoryWindow extends TWindow {
private MetaData meta;
private Story story;
- private TText2 textField;
+ private TText textField;
private int chapter = -2;
private List<TButton> navigationButtons;
private TLabel chapterName;
// TODO: show all meta info before?
- textField = new TText2(this, "", 0, 0, getWidth() - 2, getHeight() - 2);
+ textField = new TText(this, "", 0, 0, getWidth() - 2, getHeight() - 2);
statusBar = newStatusBar(desc(meta));
statusBar.addShortcutKeypress(TKeypress.kbF10, TCommand.cmExit, "Exit");
}
textField.setText(builder.toString());
textField.reflow();
+ textField.toTop();
}
}