X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTWidget.java;h=0d7d5bb8f99396be6a3c238d4175b10b5482440e;hb=3d3e09e625a95ca9b005166f4a9924c9aadfc65c;hp=012ed756c3a60adf4f40bf72e9c54954a3c28e98;hpb=51e46b3e9d457882e5dad35b79b0bd0d11654f04;p=fanfix.git diff --git a/src/jexer/TWidget.java b/src/jexer/TWidget.java index 012ed75..0d7d5bb 100644 --- a/src/jexer/TWidget.java +++ b/src/jexer/TWidget.java @@ -2163,6 +2163,21 @@ public abstract class TWidget implements Comparable { return new TRadioGroup(this, x, y, label); } + /** + * Convenience function to add a radio button group to this + * container/window. + * + * @param x column relative to parent + * @param y row relative to parent + * @param width width of group + * @param label label to display on the group box + */ + public final TRadioGroup addRadioGroup(final int x, final int y, + final int width, final String label) { + + return new TRadioGroup(this, x, y, width, label); + } + /** * Convenience function to add a text field to this container/window. *