From: David ‘Bombe’ Roden Date: Thu, 22 Mar 2012 18:35:53 +0000 (+0100) Subject: Override toString() for better display in a combo box. X-Git-Tag: 0.10^2~18 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=691e9bd74e51abc051e66bc25ba4c3693294d08b;p=jSite.git Override toString() for better display in a combo box. --- 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. */