showConsole(showjconsole);
showNews.setVisible(false);
- final Desktop me = this;
- // Thread off the news reader, in case there are connection problems.
- new Thread( new Runnable() {
- @Override
- public void run()
- {
- Cache.log.debug("Starting news thread.");
-
- jvnews = new BlogReader(me);
- showNews.setVisible(true);
- Cache.log.debug("Completed news thread.");
- }
- }).start();
this.addWindowListener(new WindowAdapter()
{
});
}
+ public void checkForNews()
+ {
+ final Desktop me = this;
+ // Thread off the news reader, in case there are connection problems.
+ addDialogThread(new Runnable() {
+ @Override
+ public void run()
+ {
+ Cache.log.debug("Starting news thread.");
+
+ jvnews = new BlogReader(me);
+ showNews.setVisible(true);
+ Cache.log.debug("Completed news thread.");
+ }
+ });
+ }
protected void showNews_actionPerformed(ActionEvent e)
{
showNews(showNews.isSelected());