आप प्रकार "संपत्ति को" उपयोगिता "" आपको बस इतना करना होगा अपने JFrame सेट करने के लिए है "और वहाँ यह! "
यह कम से कम जावा 1.7 के तहत काम करता है, यह टाइप.पॉपअप के बजाय उपरोक्त "myframe" .setType (Type.UTILITY) जैसा ही है। परीक्षण प्रकार पॉपअप (जीत 7 के तहत) टास्कबार से इसे हटाने के लिए काम नहीं करता है, Type.UTILITY करता है।
असज्जित वांछित परिणाम
public class Window extends Container implements Accessible {
/**
* Enumeration of available <i>window types</i>.
*
* A window type defines the generic visual appearance and behavior of a
* top-level window. For example, the type may affect the kind of
* decorations of a decorated {@code Frame} or {@code Dialog} instance.
* <p>
* Some platforms may not fully support a certain window type. Depending on
* the level of support, some properties of the window type may be
* disobeyed.
*
* @see #getType
* @see #setType
* @since 1.7
*/
public static enum Type {
/**
* Represents a <i>normal</i> window.
*
* This is the default type for objects of the {@code Window} class or
* its descendants. Use this type for regular top-level windows.
*/
NORMAL,
/**
* Represents a <i>utility</i> window.
*
* A utility window is usually a small window such as a toolbar or a
* palette. The native system may render the window with smaller
* title-bar if the window is either a {@code Frame} or a {@code
* Dialog} object, and if it has its decorations enabled.
*/
UTILITY,
/**
* Represents a <i>popup</i> window.
*
* A popup window is a temporary window such as a drop-down menu or a
* tooltip. On some platforms, windows of that type may be forcibly
* made undecorated even if they are instances of the {@code Frame} or
* {@code Dialog} class, and have decorations enabled.
*/
POPUP
}
दुर्भाग्य से, कम से कम उस सिस्टम पर अनिश्चित 'जेएफआरएएम' विंडो टास्कबार में दिखाई देती है, जिसे मैं अभी परीक्षण कर रहा हूं (विंडोज 7)। –
आह, पहले पढ़ने पर याद किया। फिर आप एक गैर-मोडल 'JDialog' का उपयोग करना चाहते हैं। यह वही व्यवहार करेगा, लेकिन टाइटलबार पर न्यूनतम/अधिकतम बटन नहीं होगा क्योंकि टास्कबार उपस्थिति के बिना कम से कम कोई समझ नहीं आता है। अब, यदि आप एक अधिसूचना पॉपअप करने की कोशिश कर रहे हैं जहां इसकी कोई शीर्षक पट्टी नहीं है, कोई सीमा नहीं है, और कोई टास्कबार उपस्थिति नहीं है, तो आप JWindow को देखना चाहेंगे। –