Here you can find the source of getPersistentExtendedStateMask(JFrame frame)
Parameter | Description |
---|---|
frame | the source JFrame |
public static int getPersistentExtendedStateMask(JFrame frame)
//package com.java2s; /*/*w w w .j a v a2s. c o m*/ * Copyright (C) 2009 Illya Yalovyy * Use is subject to license terms. */ import javax.swing.JFrame; public class Main { private static final String FRAME_PERSISTENT_EXTENDED_STATE_MASK = "FrameState.persistentExtendedStateMask"; /** * Gets {@code JFrame} extended state mask for this frame. Defaults to * Integer.MAX_VALUE (all bits set). * * @param frame the source {@code JFrame} * @return extended state mask from the source */ public static int getPersistentExtendedStateMask(JFrame frame) { Object res = frame.getRootPane().getClientProperty(FRAME_PERSISTENT_EXTENDED_STATE_MASK); if (res instanceof Integer) { return (Integer) res; } return Integer.MAX_VALUE; } }