diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-05 17:12:46 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-05 17:12:46 +0000 |
commit | 71dc119b2769269578aa0e84e75cf5dbf3c625e8 (patch) | |
tree | af260094959c348e1f0bb91510abe385fa8ec824 /client/trunk | |
parent | 0abc3d2b8c1d41984c288bfed93b8ab35da47d5e (diff) | |
download | instadisc-71dc119b2769269578aa0e84e75cf5dbf3c625e8.tar.gz instadisc-71dc119b2769269578aa0e84e75cf5dbf3c625e8.tar.bz2 instadisc-71dc119b2769269578aa0e84e75cf5dbf3c625e8.zip |
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).
Diffstat (limited to 'client/trunk')
-rw-r--r-- | client/trunk/src/com/fourisland/instadisc/IDSubscriptionListCellRenderer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; | |||
17 | class IDSubscriptionListCellRenderer extends JLabel implements ListCellRenderer { | 17 | class IDSubscriptionListCellRenderer extends JLabel implements ListCellRenderer { |
18 | 18 | ||
19 | public Component getListCellRendererComponent(JList arg0, Object arg1, int arg2, boolean arg3, boolean arg4) { | 19 | public Component getListCellRendererComponent(JList arg0, Object arg1, int arg2, boolean arg3, boolean arg4) { |
20 | this.setText(((Subscription) arg1).getTitle()); | 20 | this.setText(((Subscription) arg1).getTitle() + " (" + ((Subscription) arg1).getCategory() + ")"); |
21 | 21 | ||
22 | if (arg3) { | 22 | if (arg3) { |
23 | this.setForeground(arg0.getSelectionForeground()); | 23 | this.setForeground(arg0.getSelectionForeground()); |