Code Monkey home page Code Monkey logo

fx-guice's Introduction

fx-guice

Build Status

This library provides some useful classes that help you integrate Google Guice into your JavaFX based applications.

The idea for that class was born after I read an article on fxexperience.com (http://fxexperience.com/2011/10/fxml-guice/). Therefore,... credits go to 'Richard Bair' for the initial idea.

A compiled and ready-to-use version of this library can be found in the Sonatype OSS Maven Repository (oss.sonatype.org). To use the library in your Maven based projects just add the following lines to your 'pom.xml':

<dependency>
  <groupId>com.cathive.fx</groupId>
  <artifactId>fx-guice</artifactId>
  <version>${fx-guice.version}</version>
</dependency>

In your project all you need to do is create an application class that extends com.cathive.fx.guice.GuiceApplication instead of the javafx.application.Application class that ships with JavaFX.

Next step: instead of using javafx.fxml.FXMLLoader to load FXML files you use com.cathive.fx.guice.GuiceFXMLLoader... that's basically it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.