From 691e9bd74e51abc051e66bc25ba4c3693294d08b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 22 Mar 2012 19:35:53 +0100 Subject: [PATCH] Override toString() for better display in a combo box. --- src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java b/src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java index 96cdd3b..386fe1d 100644 --- a/src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java +++ b/src/de/todesbaum/util/freenet/fcp2/ClientPutDir.java @@ -70,6 +70,18 @@ public class ClientPutDir> extends ClientPut { return name; } + // + // OBJECT METHODS + // + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return name.substring(0, 1).toUpperCase() + name.substring(1); + } + } /** The default file of the directory. */ -- 2.7.4