-
Notifications
You must be signed in to change notification settings - Fork 268
Open
Description
This works:
public class Legendsdb {
public static void main(String[] args) throws IOException {
DefaultTerminalFactory dtf = new DefaultTerminalFactory();
Terminal terminal = dtf.createTerminal();
terminal.putCharacter('H');
terminal.putCharacter('e');
terminal.putCharacter('l');
terminal.putCharacter('l');
terminal.putCharacter('o');
terminal.flush();
}
}
This doesn't work:
public class Legendsdb {
public static void main(String[] args) throws IOException {
DefaultTerminalFactory dtf = new DefaultTerminalFactory();
SwingTerminalFrame terminal = dtf.createSwingTerminal();
// also happens with Terminal terminal = dtf.createSwingTerminal();
terminal.putCharacter('H');
terminal.putCharacter('e');
terminal.putCharacter('l');
terminal.putCharacter('l');
terminal.putCharacter('o');
terminal.flush();
}
}
Returns:
Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
Metadata
Metadata
Assignees
Labels
No labels