From 71dc119b2769269578aa0e84e75cf5dbf3c625e8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 5 Aug 2008 17:12:46 +0000 Subject: Client: Modified IDSubscriptionListCellRenderer Changed it to show the category of a subscription in parentheses next to the title (for those cases where there are more than one subscriptions with the same title). --- .../src/com/fourisland/instadisc/IDSubscriptionListCellRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/trunk/src/com/fourisland/instadisc/IDSubscriptionListCellRenderer.java b/client/trunk/src/com/fourisland/instadisc/IDSubscriptionListCellRenderer.java index 546f3ac..b08c556 100644 --- a/client/trunk/src/com/fourisland/instadisc/IDSubscriptionListCellRenderer.java +++ b/client/trunk/src/com/fourisland/instadisc/IDSubscriptionListCellRenderer.java @@ -17,7 +17,7 @@ import javax.swing.ListCellRenderer; class IDSubscriptionListCellRenderer extends JLabel implements ListCellRenderer { public Component getListCellRendererComponent(JList arg0, Object arg1, int arg2, boolean arg3, boolean arg4) { - this.setText(((Subscription) arg1).getTitle()); + this.setText(((Subscription) arg1).getTitle() + " (" + ((Subscription) arg1).getCategory() + ")"); if (arg3) { this.setForeground(arg0.getSelectionForeground()); -- cgit 1.4.1