An open API service indexing awesome lists of open source software.

https://github.com/fwcd/sketch

2D drawing widget for Swing
https://github.com/fwcd/sketch

2d-graphics drawing-library swing vector-graphics

Last synced: 2 months ago
JSON representation

2D drawing widget for Swing

Awesome Lists containing this project

README

          

# Sketch
2D vector graphics drawing widget for Swing.

![Screenshot](screenshot.png)

## Getting Started
Adding a Sketch widget to an existing Swing application is simple:

```java
SketchBoardModel model = new SketchBoardModel();
SketchPaneView sketchPane = new SketchPaneView.Builder(model)
.colors(Color.BLACK, Color.MAGENTA, Color.YELLOW)
.foldMenus(false)
.build();
topLevelPanel.add(sketchPane.getComponent(), BorderLayout.CENTER);
```