コード例 #1
0
 /**
  * Shows the file of the specified file name, throwing a <tt>NullPointerExeption</tt> if the file
  * could not be found in the com/limegroup/gnutella/gui/resources directory.
  *
  * @param FILE_NAME the name of the file to load into the scrolling pane
  * @throws <tt>NullPointerExeption</tt> if the attempt to load the file fails
  */
 public void showFile(String FILE_NAME) {
   URL url = GUIMediator.getURLResource(FILE_NAME);
   if (url == null) {
     throw new NullPointerException("FILE COULD NOT BE LOADED");
   }
   try {
     EDITOR_PANE.setPage(url);
   } catch (IOException ioe) {
     throw new NullPointerException("FILE COULD NOT BE LOADED");
   }
 }