Article View: borland.public.jbuilder.java.swing
Article #7901Re: Change title bar
From: John McGrath TeamB
Date: Sun, 26 Nov 2000 00:00
Date: Sun, 26 Nov 2000 00:00
26 lines
1428 bytes
1428 bytes
On Wed, 22 Nov 2000 14:41:54 +0100, Franco Pettinari wrote:
> I'd like to know if exists a method to change the windows
> title bar with mine title bar in a java application.
Java allows you to set the title and icon for a Frame, but not much
more. The title bar is drawn by the native operating system, so you
cannot take full control of it.
If you want to control other aspects of the title bar, I can think of
two approaches that may work, but neither is very pretty.
1) Write native code accessed through JNI to control the title bar.
2) Use a Window rather than a Frame, and implement all of the functions
that you want in Java code. That means that you will have to draw the
title bar, create your own title bar buttons, handle window dragging
and resizing, etc.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.148ab32e5a04922d989d61@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3a1bcc45$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7a0b8ccd03e171d4 X-Google-Attributes: gid111d45,public From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Subject: Re: Change title bar Date: 2000/11/26 Message-ID: <MPG.148ab32e5a04922d989d61@forums.borland.com> X-Deja-AN: 697852270 References: <3a1bcc45$1_2@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing