Interface | Description |
---|---|
Scrollable |
Scrollable provides a public API for horizontal and vertical scrollbars.
|
Class | Description |
---|---|
TAction |
A TAction represents a simple action to perform in response to the user.
|
TApplication |
TApplication is the main driver class for a full Text User Interface
application.
|
TButton |
TButton implements a simple button.
|
TCalendar |
TCalendar is a date picker widget.
|
TCheckBox |
TCheckBox implements an on/off checkbox.
|
TComboBox |
TComboBox implements a combobox containing a drop-down list and edit
field.
|
TCommand |
This class encapsulates a user command event.
|
TDesktop |
TDesktop is a special-class window that is drawn underneath everything
else.
|
TDirectoryList |
TDirectoryList shows the files within a directory.
|
TEditColorThemeWindow |
TEditColorThemeWindow provides an easy UI for users to alter the running
color theme.
|
TEditorWidget |
TEditorWidget displays an editable text document.
|
TEditorWindow |
TEditorWindow is a basic text file editor.
|
TExceptionDialog |
TExceptionDialog displays an exception and its stack trace to the user,
and provides a means to save a troubleshooting report for support.
|
TField |
TField implements an editable text field.
|
TFileOpenBox |
TFileOpenBox is a system-modal dialog for selecting a file to open.
|
TFontChooserWindow |
TFontChooserWindow provides an easy UI for users to alter the running
font.
|
THScroller |
THScroller implements a simple horizontal scroll bar.
|
TImage |
TImage renders a piece of a bitmap image on screen.
|
TImageWindow |
TImageWindow shows an image with scrollbars.
|
TInputBox |
TInputBox is a system-modal dialog with an OK button and a text input
field.
|
TKeypress |
This class represents keystrokes.
|
TLabel |
TLabel implements a simple label, with an optional mnemonic hotkey action
associated with it.
|
TList |
TList shows a list of strings, and lets the user select one.
|
TMessageBox |
TMessageBox is a system-modal dialog with buttons for OK, Cancel, Yes, or
No.
|
TPanel |
TPanel is an empty container for other widgets.
|
TPasswordField |
TPasswordField implements an editable text field that displays
stars/asterisks when it is not active.
|
TProgressBar |
TProgressBar implements a simple progress bar.
|
TRadioButton |
TRadioButton implements a selectable radio button.
|
TRadioGroup |
TRadioGroup is a collection of TRadioButtons with a box and label.
|
TScrollableWidget |
TScrollableWidget is a convenience superclass for widgets that have
scrollbars.
|
TScrollableWindow |
TScrollableWindow is a convenience superclass for windows that have
scrollbars.
|
TSpinner |
TSpinner implements a simple up/down spinner.
|
TSplitPane |
TSplitPane contains two widgets with a draggable horizontal or vertical
bar between them.
|
TStatusBar |
TStatusBar implements a status line with clickable buttons.
|
TTableWidget |
TTableWidget is used to display and edit regular two-dimensional tables of
cells.
|
TTableWindow |
TTableWindow is used to display and edit regular two-dimensional tables of
cells.
|
TTerminalWidget |
TTerminalWidget exposes a ECMA-48 / ANSI X3.64 style terminal in a widget.
|
TTerminalWindow |
TTerminalWindow exposes a ECMA-48 / ANSI X3.64 style terminal in a window.
|
TText |
TText implements a simple scrollable text area.
|
TTimer |
TTimer implements a simple timer.
|
TVScroller |
TVScroller implements a simple vertical scroll bar.
|
TWidget |
TWidget is the base class of all objects that can be drawn on screen or
handle user input events.
|
TWindow |
TWindow is the top-level container and drawing surface for other widgets.
|
Enum | Description |
---|---|
TApplication.BackendType |
Two backend types are available.
|
TFileOpenBox.Type |
TFileOpenBox can be called for either Open or Save actions.
|
TImage.Scale |
Selections for fitting the image to the text cells.
|
TMessageBox.Result |
Message boxes have these possible results.
|
TMessageBox.Type |
Message boxes have these supported types.
|
TTableWidget.Border |
Available borders for cells.
|
TText.Justification |
Available text justifications.
|
This library is a text-based windowing system loosely reminiscent of Borland's Turbo Vision library. Jexer's goal is to enable people to get up and running with minimum hassle and lots of polish. A very quick "Hello World" application can be created as simply as this:
import jexer.TApplication;
public class MyApplication extends TApplication {
public MyApplication() throws Exception {
super(BackendType.XTERM);
// Create standard menus for Tool, File, and Window.
addToolMenu();
addFileMenu();
addWindowMenu();
}
public static void main(String [] args) throws Exception {
MyApplication app = new MyApplication();
app.run();
}
}
Copyright © 2019 Kevin Lamonte. Licensed MIT.