org.webswing.javafx.toolkit.adaper.JFrameAdapter Maven / Gradle / Ivy
package org.webswing.javafx.toolkit.adaper;
import javax.swing.JFrame;
import javax.swing.JRootPane;
import java.awt.Window;
public class JFrameAdapter extends JFrame implements WindowAdapter {
public JFrameAdapter(boolean titled) {
super();
if (!titled) {
setUndecorated(true);
getRootPane().setWindowDecorationStyle(JRootPane.NONE);
}
}
@Override
public Window getThis() {
return this;
}
@Override
public void setModal(boolean b) {
//do nothing
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy