Giter Site home page Giter Site logo

swing-glasspane-popup's Introduction

Swing Glasspane Popup

Java Swing UI popup dialog custom using glasspane with flatlaf include the animation style, and drawer menu

sample darkย  sample light

Installation

This project library do not available in maven central. so you can install with the jar library

  • Copy jar library file to the root project. exp : library/swing-glasspane-popup-1.5.0.jar
  • Add this code to pom.xml
<dependency>
    <groupId>raven.popup</groupId>
    <artifactId>swing-glasspane-popup</artifactId>
    <version>1.5.0</version>
    <scope>system</scope>
    <systemPath>${basedir}/library/swing-glasspane-popup-1.5.0.jar</systemPath>
</dependency>
  • Other library are use with this library
<dependency>
  <groupId>com.formdev</groupId>
  <artifactId>flatlaf</artifactId>
  <version>3.4</version>
</dependency>

<dependency>
  <groupId>com.formdev</groupId>
  <artifactId>flatlaf-extras</artifactId>
  <version>3.4</version>
</dependency>

<dependency>
    <groupId>com.miglayout</groupId>
    <artifactId>miglayout-swing</artifactId>
    <version>11.3</version>
</dependency>

libraries

  • FlatLaf - FlatLaf library for the modern UI design theme
  • MigLayout - MigLayout library for flexible layout management

Sample Code

//  Install with jframe

GlassPanePopup.install(jframe);

//  Show glasspane popup

String action[] = {"Cancel", "OK"};
GlassPanePopup.showPopup(new SimplePopupBorder(component, "Sample Message", action, new PopupCallbackAction() {
    @Override
    public void action(PopupController controller, int action) {
        if (action == 0) {
            //  action cancel
        } else if (action == 1) {
            //  action ok
        }
    }
}));

Push and Pop with name

GlassPanePopup.push(childComponent, "popupname");

GlassPanePopup.pop("popupname");

SimplePopupBorder

public SimplePopupBorder(Component component,
                         String title,
                         SimplePopupBorderOption option,
                         String[] action,
                         PopupCallbackAction callbackAction);
new SimplePopupBorderOption()
                    .setRoundBorder(30)
                    .setWidth(500)
                    .useScroll();

swing-glasspane-popup's People

Contributors

dj-raven avatar

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.