Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JMSG
>
Tutorial
> Create note
The following example shows you how to create a note.
import java.io.IOException; import com.independentsoft.msg.Message; import com.independentsoft.msg.NoteColor; public class Example { public static void main(String[] args) { try { Message note = new Message(); note.setMessageClass("IPM.StickyNote"); note.setSubject("Test"); note.setBody("Test"); note.setNoteColor(NoteColor.GREEN); note.setNoteTop(200); note.setNoteLeft(300); note.setNoteHeight(200); note.setNoteWidth(250); note.save("c:\\temp\\note.msg", true); } catch (IOException e) { e.printStackTrace(); } } }
Need help? Ask our developers:
Name*
Email*
Message*