X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fsession%2FSwingSessionInfo.java;h=dcba27da5dc37a2778e4aa02ad5eb5483dab058d;hb=c447c6e5759db7ac9bbb05cc1b3618dd38230335;hp=55a6d8d4f5858d11fb57bdf3e3e2a08deaf9e148;hpb=e16dda65585466c8987bd1efd718431450a96605;p=fanfix.git diff --git a/src/jexer/session/SwingSessionInfo.java b/src/jexer/session/SwingSessionInfo.java index 55a6d8d..dcba27d 100644 --- a/src/jexer/session/SwingSessionInfo.java +++ b/src/jexer/session/SwingSessionInfo.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2016 Kevin Lamonte + * Copyright (C) 2017 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -66,12 +66,12 @@ public final class SwingSessionInfo implements SessionInfo { /** * Text window width. */ - private int windowWidth = 132; + private int windowWidth = 80; /** * Text window height. */ - private int windowHeight = 40; + private int windowHeight = 25; /** * Username getter. @@ -133,13 +133,17 @@ public final class SwingSessionInfo implements SessionInfo { * @param frame the Swing Frame * @param textWidth the width of a cell in pixels * @param textHeight the height of a cell in pixels + * @param windowWidth the number of text columns to start with + * @param windowHeight the number of text rows to start with */ public SwingSessionInfo(final Frame frame, final int textWidth, - final int textHeight) { + final int textHeight, final int windowWidth, final int windowHeight) { - this.frame = frame; - this.textWidth = textWidth; - this.textHeight = textHeight; + this.frame = frame; + this.textWidth = textWidth; + this.textHeight = textHeight; + this.windowWidth = windowWidth; + this.windowHeight = windowHeight; } /**