diff --git a/src/org/aavso/tools/vstar/ui/dialog/plugin/manager/PluginManagementDialog.java b/src/org/aavso/tools/vstar/ui/dialog/plugin/manager/PluginManagementDialog.java index 69b6f483..2fd58690 100644 --- a/src/org/aavso/tools/vstar/ui/dialog/plugin/manager/PluginManagementDialog.java +++ b/src/org/aavso/tools/vstar/ui/dialog/plugin/manager/PluginManagementDialog.java @@ -473,13 +473,12 @@ public Component getListCellRendererComponent(JList list, String desc = (String) pluginListModel.get(index); Font f = l.getFont(); if (manager.isLocal(desc)) { - //l.setText("[Y] " + desc); l.setFont(f.deriveFont(f.getStyle() | Font.BOLD)); - } else { - //l.setText("[N] " + desc); - l.setFont(f.deriveFont(f.getStyle() | ~Font.BOLD)); + if (!manager.arePluginsEqual(desc)) { + l.setForeground(Color.GRAY); + } } return l; - } + } } } diff --git a/src/org/aavso/tools/vstar/ui/dialog/plugin/manager/PluginManager.java b/src/org/aavso/tools/vstar/ui/dialog/plugin/manager/PluginManager.java index 9aed55c7..24910b4c 100644 --- a/src/org/aavso/tools/vstar/ui/dialog/plugin/manager/PluginManager.java +++ b/src/org/aavso/tools/vstar/ui/dialog/plugin/manager/PluginManager.java @@ -983,19 +983,16 @@ private List getBytesFromURL(URL url) throws IOException { List byteList = new ArrayList(); InputStream stream = url.openStream(); try { - int len = stream.available(); - while (len > 0) { - byte[] bytes = new byte[len]; - stream.read(bytes, 0, len); - for (byte b : bytes) { - byteList.add(b); + byte[] buf = new byte[4096]; + int len; + while ((len = stream.read(buf)) > 0) { + for (int i = 0; i < len; i++) { + byteList.add(buf[i]); } - len = stream.available(); } } finally { stream.close(); } - return byteList; }