import java.awt.Frame;public class Main { public static void main() { Frame frame = new Frame(); frame.setUndecorated(true); // Get the current decorated state boolean undecorated = frame.isUndecorated(); }}