X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTRadioButton.java;h=b4170ba82cbd579494e2967f0055e5ecedfe09ac;hb=a69ed767c9c07cf35cf1c5f7821fc009cfe79cd2;hp=da077037daec96a0474406fc9158a47a76072a58;hpb=d625990deaa2c24624adc9fbd3fcab58891f5aef;p=fanfix.git diff --git a/src/jexer/TRadioButton.java b/src/jexer/TRadioButton.java index da07703..b4170ba 100644 --- a/src/jexer/TRadioButton.java +++ b/src/jexer/TRadioButton.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"), @@ -158,15 +158,14 @@ public class TRadioButton extends TWidget { radioButtonColor = getTheme().getColor("tradiobutton.inactive"); } - getScreen().putCharXY(0, 0, '(', radioButtonColor); + putCharXY(0, 0, '(', radioButtonColor); if (selected) { - getScreen().putCharXY(1, 0, GraphicsChars.CP437[0x07], - radioButtonColor); + putCharXY(1, 0, GraphicsChars.CP437[0x07], radioButtonColor); } else { - getScreen().putCharXY(1, 0, ' ', radioButtonColor); + putCharXY(1, 0, ' ', radioButtonColor); } - getScreen().putCharXY(2, 0, ')', radioButtonColor); - getScreen().putStringXY(4, 0, label, radioButtonColor); + putCharXY(2, 0, ')', radioButtonColor); + putStringXY(4, 0, label, radioButtonColor); } // ------------------------------------------------------------------------