src/codeandchords/ModuleMenu.java
private void loadLyrics() 
	{
		int 	returnVal = this.lyricsFileChooser.showOpenDialog(null);
		String	curLine;
		// Remove the current lyrics:
		this.curLyrics.clear();
		this.curLyricsLine	= 0;
		
		if(returnVal == JFileChooser.APPROVE_OPTION)
		{
			File file	= this.lyricsFileChooser.getSelectedFile();
			
			try
			{
				BufferedReader in	= new BufferedReader(new FileReader(file));
				
				curLine	= in.readLine();

				while(curLine != null)
				{
					this.curLyrics.add(curLine);
					curLine	= in.readLine();
				} // while - read through file
				
				in.close();
			} catch (IOException ioe) {
				System.out.println("ModuleMenu.loadColorState: caught IOException " + ioe);
				ioe.printStackTrace();
			} // try/catch
		}
	}
/**
	 * Opens the lyric File Chooser and allows the user to choose a file from which to 
	 * load lyrics (each line of the file will be displayed individually on keypress).
	 */
Opens the lyric File Chooser and allows the user to choose a file from which to
load lyrics (each line of the file will be displayed individually on keypress).
Opens the lyric File Chooser and allows the user to choose a file from which to load lyrics ( each line of the file will be displayed individually on keypress ) .
private void loadLyrics() 
	{
		int 	returnVal = this.lyricsFileChooser.showOpenDialog(null);
		String	curLine;
		this.curLyrics.clear();
		this.curLyricsLine	= 0;
		if(returnVal == JFileChooser.APPROVE_OPTION)
		{
			File file	= this.lyricsFileChooser.getSelectedFile();
			try
			{
				BufferedReader in	= new BufferedReader(new FileReader(file));
				curLine	= in.readLine();
				while(curLine != null)
				{
					this.curLyrics.add(curLine);
					curLine	= in.readLine();
				} 
				in.close();
			} catch (IOException ioe) {
				System.out.println("ModuleMenu.loadColorState: caught IOException " + ioe);
				ioe.printStackTrace();
			} 
		}
	}
private void loadLyrics ( ) { int returnVal = this . lyricsFileChooser . showOpenDialog ( null ) ; String curLine ; this . curLyrics . clear ( ) ; this . curLyricsLine = 0 ; if ( returnVal == JFileChooser . APPROVE_OPTION ) { File file = this . lyricsFileChooser . getSelectedFile ( ) ; try { BufferedReader in = new BufferedReader ( new FileReader ( file ) ) ; curLine = in . readLine ( ) ; while ( curLine != null ) { this . curLyrics . add ( curLine ) ; curLine = in . readLine ( ) ; } in . close ( ) ; } catch ( IOException ioe ) { System . out . println ( "ModuleMenu.loadColorState: caught IOException " + ioe ) ; ioe . printStackTrace ( ) ; } } }
Opens the lyric File Chooser and allows the user to choose a file from which to
 load lyrics (each line of the file will be displayed individually on keypress).
Opens the lyric File Chooser and allows the user to choose a file from which to load lyrics ( each line of the file will be displayed individually on keypress ) .
// Remove the current lyrics: // while - read through file // try/catch