org.webswing.javafx.toolkit.adaper.JWindowAdapter Maven / Gradle / Ivy
package org.webswing.javafx.toolkit.adaper;
import javax.swing.JDialog;
import javax.swing.JRootPane;
import javax.swing.JWindow;
import java.awt.Window;
public class JWindowAdapter extends JDialog implements WindowAdapter {
public JWindowAdapter(Window parent) {
super(parent);
setUndecorated(true);
getRootPane().setWindowDecorationStyle(JRootPane.NONE);
setFocusableWindowState(false);
setType(java.awt.Window.Type.POPUP);
}
@Override
public Window getThis() {
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy