🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #858

Re: maximise swing application window hides windows taskbar

#858
From: John McGrath [TeamB]
Date: Sun, 10 Oct 2004 04:08
31 lines
2127 bytes
On 10/9/2004 at 7:22:28 AM, David Bolsover wrote:

> looks like a bug in UIManager.getCrossPlatformLookAndFeelClassName()

It does look like a bug, but not in
getCrossPlatformLookAndFeelClassName().  That just returns the name of the
cross-platform look-and-feel class, which is the string
"javax.swing.plaf.metal.MetalLookAndFeel".

The problem is not related to the Metal look-and-feel, or for that matter,
to any look-and-feel.  When the Frame is set to Undecorated, the window
takes up the entire screen when it is maximized.

It is affected by calling JFrame.setDefaultLookAndFeelDecorated(true), but
that is just a convenience method that asks the look-and-feel to provide
decorations and also sets the Frame to undecorated(), assuming that the
look-and-feel can provide the decorations.

You can find more information on the problem here, including a workaround
for the problem:

    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4737788

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <4168b5c4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4166dd19$1@newsgroups.borland.com> <41679a62@newsgroups.borland.com> <4167c9c5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,ac1a4bd9a75c0fee
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: maximise swing application window hides windows taskbar
Newsgroups: borland.public.jbuilder.java.swing
References: <4166dd19$1@newsgroups.borland.com> <41679a62@newsgroups.borland.com> <4167c9c5@newsgroups.borland.com>
User-Agent: XanaNews/1.16.4.6
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.197.204.193
Message-ID: <4168b5c4@newsgroups.borland.com>
Date: 9 Oct 2004 21:08:36 -0700
X-Trace: newsgroups.borland.com 1097381316 151.197.204.193 (9 Oct 2004 21:08:36 -0700)
Lines: 31
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail