Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
Welcome to Help
How to use this library?
I dropped in JLink.jar in to my projects lib folder. Then what? What should I invoke?
Dr. Jason Barraclough
Hi there forumans!
At the moment the new library version is capable of displaying pages only. Have a look at the code inside JLinkFeatures.java and this will demonstrate a Swing application that creates IBM worksheets and A4 pages on a grey background. If you are wishing to create flowchart graphics, you can either use the older version (old API not to be supported) or wait 3 months when I add in the new features, or come up with some code to extend the base as it is. At the moment I am at university so I have precious little time to work on it for 3 months...
Generally speaking, the use of the new API of JLink is as follows:
You need a JFrame.
Add a JScrollPane to the JFrame.
Inside the JScrollPane add a JLCanvas object.
Create a JLWorksheet (this is the IBM worksheet).
Set the page type of the JLWorksheet by calling JLWorksheet.setJLWorksheetType(JLPage.PAGE_A4)
use the JLCanvas.addNewContainer(JLWorksheet) method.
Show the JFrame.
This creates a JFrame with a scrollable A4 IBM worksheet for flowcharting. This will then be able to add flow-symbols onto it in a few months.
Hope this has provided some insight...
If you do decide to go down the path of using test version 1 however, open up the source code of the JLAuthoringTool.java and there is some code there that creates flowcharts on A4 pages which you will find useful in creating actual flowchart graphics.