Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme.md #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void start(Stage stage) {
Start painting by making a tool active on the canvas with the `PaintToolBuilder`:

```
PaintTool paintbrush = PaintToolBuilder.create(PaintToolType.PAINTBRUSH)
Tool paintbrush = PaintToolBuilder.create(PaintToolType.PAINTBRUSH)
.withStroke(StrokeBuilder.withShape().ofCircle(8).build())
.withStrokePaint(Color.RED)
.makeActiveOnCanvas(myCanvas)
Expand Down Expand Up @@ -430,3 +430,9 @@ If your canvas is not being garbage collected, verify that other objects are not
#### What about vector graphic tools (i.e., "draw" apps)?

Sorry, that's not the intent of this library. That said, many pieces of this library could be leveraged for such a tool...

### How to deal with exceptions arising from newer jdk versions?

The InaccessibleObjectException, which can be thrown when using newer jdk versions e.g., JDK 17.0.2, is solved when following the instructions
posted [here](https://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m).
When using the Intellij IDE, this [post](https://stackoverflow.com/questions/50938383/how-to-set-jvm-arguments-in-intellij-idea) shows how to add the required VM Options to your Project.