From: Thorsten K. <Tho...@gm...> - 2005-03-06 20:40:05
|
On Sunday 06 March 2005 17:09, Hiroo Hayashi wrote: > I could find the method in trouble. But I guess the method open file > directly (?). You have to open a file as DriverUtil.createNewPatch() > does. > > InputStream fileIn = driver.getClass().getResourceAsStream(fileName); ooof! Isn't there a simpler method? So far I can see this would require some lines of code to derive the filename, load the file into a buffer and forward it to ImageIcon() - and it would require an error handling. If there is no other way - how about a new util function in the core library? I copied this part of code from the Yamaha driver, a "grep" tells me that changes have to be made in: MIDIboxFM/MIDIboxFMDrumEditor.java MIDIboxFM/MIDIboxFMPatchEditor.java RolandJV80/RolandJV80PatchEditor.java WaldorfPulse/WaldorfPulseSingleEditor.java YamahaDX100/YamahaDX100SingleEditor.java YamahaFS1R/YamahaFS1RVoiceEditor.java YamahaTX81z/YamahaTX81zSingleEditor.java Best Regards, Thorsten. |