Skip to content
arigesher edited this page Dec 25, 2012 · 37 revisions

Palantir Logo

Cinch - annotations to make MVC easy

About

Cinch makes MVC in Swing easy. Cinch is a Java library used by developers to simplify writing certain types of GUI code.

When developing Swing applications it's very easy to fall into the trap of not separating out Models and Controllers. It's all too easy to just store the state of that boolean in the checkbox itself, or that String in the JTextField. The design goal behind Cinch was to make it easier to apply MVC than to not by reducing much of the typical Swing friction and boilerplate.

Cinch uses Java annotations to reflectively wire up Models, Views, and Controllers.

The [Introduction to Cinch and MVC](wiki/Introducing Cinch and MVC) will give you a quick sense of how Cinch changes the Swing equation, with or without MVC, for Java.

Get it

Build it from source

Cinch uses maven to manage its external dependencies and handle building the software from source. It should build on any system that has maven and a proper JDK installed.

To build the project, just go into the top-level directory and type mvn. Output of the build will be in a created directory named target/dist.

Documentation

Project Resources

Authors

Dan Cervelli

License

Cinch is made available under the Apache 2.0 License.

Copyright 2011 Palantir Technologies

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.