refactor and remove excess imports (JAL-943)
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 22 Sep 2011 16:20:55 +0000 (17:20 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 22 Sep 2011 16:20:55 +0000 (17:20 +0100)
src/jalview/gui/BlogReader.java
src/jalview/gui/Desktop.java

index 3b7df48..2759eff 100644 (file)
@@ -16,7 +16,6 @@ import java.awt.event.WindowAdapter;
 import java.awt.event.WindowEvent;
 import java.beans.PropertyChangeListener;
 import java.text.DateFormat;
-import java.text.SimpleDateFormat;
 import java.util.ArrayList;
 import java.util.Calendar;
 import java.util.Collections;
@@ -46,14 +45,11 @@ import javax.swing.event.HyperlinkEvent;
 import javax.swing.event.HyperlinkListener;
 import javax.swing.event.ListSelectionEvent;
 import javax.swing.event.ListSelectionListener;
-import javax.swing.text.DateFormatter;
 
-import org.robsite.jswingreader.action.AboutAction;
 import org.robsite.jswingreader.action.MarkChannelAsRead;
 import org.robsite.jswingreader.action.MarkChannelAsUnread;
 import org.robsite.jswingreader.action.MarkItemAsRead;
 import org.robsite.jswingreader.action.MarkItemAsUnread;
-import org.robsite.jswingreader.action.RefreshChannelAction;
 import org.robsite.jswingreader.action.UpdatableAction;
 import org.robsite.jswingreader.model.Channel;
 import org.robsite.jswingreader.model.ChannelListModel;
@@ -63,9 +59,6 @@ import org.robsite.jswingreader.ui.BlogContentPane;
 import org.robsite.jswingreader.ui.ItemReadTimer;
 import org.robsite.jswingreader.ui.Main;
 import org.robsite.jswingreader.ui.util.ContextMenuMouseAdapter;
-import org.robsite.jswingreader.util.BrowserUtils;
-
-import quicktime.std.movies.media.TextDescription;
 
 /**
  * Blog reading window, adapted from JSwingReader's
index a5778a7..bb84612 100644 (file)
@@ -349,11 +349,12 @@ public class Desktop extends jalview.jbgui.GDesktop implements
   {
     showNews(showNews.isSelected());
   }
-  void showNews(boolean default1)
+  void showNews(boolean visible)
   {
     {
-      jvnews.setVisible(default1);
-      if (default1)
+      jvnews.setVisible(visible);
+      showNews.setSelected(visible);
+      if (visible)
       {
         jvnews.refreshNews();
         jvnews.toFront();