Giter VIP home page Giter VIP logo

devzendo / quaqua Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 27.14 MB

A Mavenisation of the Quaqua Mac OSX Swing Look and Feel (Java library) Quaqua Look and Feel (C) 2003-2010, Werner Randelshofer. Mavenisation by Matt Gumbley, DevZendo.org - for problems with Mavenisation, see Matt; for issues with Quaqua, see the Quaqua home page. For full license details, see http://randelshofer.ch/quaqua/license.html

Shell 53.43% Java 46.57%

quaqua's Introduction

Making use of Quaqua via Maven
------------------------------

Add the following dependency to your pom.xml:
    <dependency>
        <groupId>org.devzendo</groupId>
        <artifactId>quaqua</artifactId>
        <version>9.1</version>
    </dependency>

Ensure that org.devzendo quaqua-9.1.jar is on your classpath.

Ensure that the org.devzendo libquaqua-9.1.zip containing Quaqua's native
libraries is unzipped during your package phase, and is placed somewhere that
will be present on your classpath during execution. In the following snippet, I
extract this zip into the location where DevZendo's CrossPlatformLauncherPlugin
will place all libraries, for a Mac OSX GUI .app:

    <!--
      Copy the Quaqua native libraries into the correct location in the
      Mac OS X launcher structure created above.
    -->
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
            <execution>
                <id>unpack-quaqua-dependencies</id>
                <phase>package</phase>
                <goals>
                    <goal>unpack</goal>
                </goals>
                <configuration>
                    <artifactItems>
                        <artifactItem>
                            <groupId>org.devzendo</groupId>
                            <artifactId>libquaqua</artifactId>
                            <version>9.1</version>
                            <type>zip</type>
                            <overWrite>true</overWrite>
                            <includes>*</includes>
                            <outputDirectory>
                                ${project.build.directory}/macosx/${appName}.app/Contents/Resources/Java/lib
                            </outputDirectory>
                        </artifactItem>
                    </artifactItems>
                    <!-- other configurations here -->
                </configuration>
            </execution>
        </executions>
    </plugin>

For more info on the CrossPlatformLauncherPlugin, please see
https://devzendo.github.io/dev/xplp/

In your code, you can then:
UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");

quaqua's People

Contributors

devzendo avatar

Watchers

James Cloos avatar  avatar  avatar

quaqua's Issues

Please remove use of getPeer() method in QuaquaRootPaneUI.java

On machine with JDK 9 and up will cause exception due to deprecated/removed method:

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 'java.awt.peer.ComponentPeer java.awt.Container.getPeer()'
	at ch.randelshofer.quaqua.QuaquaRootPaneUI.updateWindowModified(QuaquaRootPaneUI.java:334)
	at ch.randelshofer.quaqua.QuaquaRootPaneUI.access$300(QuaquaRootPaneUI.java:32)
	at ch.randelshofer.quaqua.QuaquaRootPaneUI$RootPaneAncestorListener.ancestorAdded(QuaquaRootPaneUI.java:624)
	at java.desktop/javax.swing.AncestorNotifier.fireAncestorAdded(AncestorNotifier.java:86)
	at java.desktop/javax.swing.AncestorNotifier.componentShown(AncestorNotifier.java:193)
	at java.desktop/java.awt.Component.processComponentEvent(Component.java:6468)
	at java.desktop/java.awt.Component.processEvent(Component.java:6416)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)

Possible solution can find here:

https://bugs.openjdk.java.net/browse/JDK-8134422

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.