com.darwinsys.notepad.ToDo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of darwinsys-api Show documentation
Show all versions of darwinsys-api Show documentation
Ian Darwin's assorted Java stuff,
assembled as an API.
package com.darwinsys.notepad;
import java.io.IOException;
import java.util.prefs.Preferences;
/** A trivial TODO editor (not a real TODO PIM!) showing use of
* NotePad with a provided Preferences node.
*/
public class ToDo {
/** Pass Preferences node so we dont get same location as Notepad */
static Preferences prefs = Preferences.userNodeForPackage(ToDo.class);
public static void main(String[] args) throws IOException {
Thread.currentThread().setName("ToDo");
String fileName = System.getProperty("user.home") + "/" + "TODO.txt";
Notepad n = new Notepad(prefs);
n.doLoad(fileName);
}
}