Code Monkey home page Code Monkey logo

cjwizard's Introduction

PLEASE NOTE: SPUPORT FOR JAVA 7 IS ENDING, AND THE CJWIZARD PROJECT'S SUPPORT POLICY IS CHANGING.

Going forward, each new CJWizard release will officially support usage of the library with all OpenJDK versions that have long-term support, PLUS the version that is current, at release time. This change will be effective with the next release of CJWizard.

CJWizard

CJWizard is a library for creating swing based wizard dialogs in Java.

This library is meant to be an improvement on the Java Wizard library, formerly at https://wizard.dev.java.net/; that library offered a good framework for simple wizards, but it dictated a great deal of what you can do - justified by the java usability guidelines. However, not all of the restrictions are justified by those guidelines. For example, it is particularly difficult to change the type of widget used on the left side of the wizards (it is initially an image with the list of wizard pages displayed over top of it). Making this area interactive, as a global navigation tool, is non-trivial.

In addition, it is extremely cumbersome to define complex wizards that change their branching behavior at runtime. Generally, the Java Wizard API is difficult to use, and at times contradictory.

That said, we've learned a lot from the Java Wizard API, and some of those ideas have been incorporated into CJWizard.

Take a look at the FAQ and QuickStartGuide to get going, and send me questions if you have any.

Screenshots

This shows CJWizard in action, with a custom PageTemplate (drawing the list of dialog pages on the left) that wraps around a !TitledPageTemplate (drawing the underlined title of the !WizardPage). The Windows L&F was used to make it look like a native app. (The Finish button is enabled because the surrounding app is robust to missing data, and allows for the user to come back to the wizard at a later date, if needed. Generally, and by default, the Finish button is disabled if it is not explicitly enabled, which often happens in the render() method of the last !WizardPage)

sample dialog

Maven coordinates

CJWizard is now hosted in Lobos Studios' java-dev repository.

To use the repo with Gradle:

repositories {
    mavenCentral()
    maven {
        url "https://repos.lobosstudios.com/repository/java-dev/"
    }
}

dependencies {
    // this is just an example; the other Maven artifacts are
    // still available, same as before.
    implementation "com.github.cjwizard:cjwizard:[VERSION]"
}

To use it with Maven:

    <repositories>
        <repository>
            <id>lobosstudios-nexus-java-dev</id>
            <name>Lobos Studios java-dev</name>
            <url>https://repos.lobosstudios.com/repository/java-dev/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.cjwizard</groupId>
            <artifactId>cjwizard</artifactId>
            <version>[VERSION]</version>
        </dependency>
    </dependencies>

repos.lobosstudios.com runs on a Sonatype Nexus server. Repos hosted on Nexus require the slash at the end of the URL. Don't forget it...

Documentation

See docs folder

Requirements

To use this library you need

  • Java 7 or later

Dependencies

This library depends on

  • slf4j-api

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.