X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FSwingSessionInfo.java;h=28668fd346d7012000a6887e54fac459bf1d04ea;hb=a69ed767c9c07cf35cf1c5f7821fc009cfe79cd2;hp=b4c0b59d9f3c6868518dc470a39a7f06fc192401;hpb=d6ee0801333ff93dffd851f4c1a44519c96c371d;p=nikiroo-utils.git diff --git a/src/jexer/backend/SwingSessionInfo.java b/src/jexer/backend/SwingSessionInfo.java index b4c0b59..28668fd 100644 --- a/src/jexer/backend/SwingSessionInfo.java +++ b/src/jexer/backend/SwingSessionInfo.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -35,7 +35,7 @@ import java.awt.Insets; * Swing to support queryWindowSize(). The username is blank, language is * "en_US", with a 80x25 text window. */ -public final class SwingSessionInfo implements SessionInfo { +public class SwingSessionInfo implements SessionInfo { // ------------------------------------------------------------------------ // Variables -------------------------------------------------------------- @@ -187,7 +187,6 @@ public final class SwingSessionInfo implements SessionInfo { swing.getWidth(), swing.getHeight(), windowWidth, windowHeight); */ - } // ------------------------------------------------------------------------ @@ -207,4 +206,13 @@ public final class SwingSessionInfo implements SessionInfo { this.textHeight = textHeight; } + /** + * Getter for the underlying Swing component. + * + * @return the SwingComponent + */ + public SwingComponent getSwingComponent() { + return swing; + } + }