Article View: borland.public.jbuilder.java.swing
Article #9635Re: Unresizable Window and custom icon
From: Thomas Cheah
Date: Thu, 24 Feb 2000 00:00
Date: Thu, 24 Feb 2000 00:00
42 lines
2053 bytes
2053 bytes
Hi John, Thanks for your reply! But what if I want a unresizable window with title bar? A window without a titlebar seems doesn't prove any useful. Thanks! Regards, Thomas. "John P. McGrath" wrote: > On Tue, 22 Feb 2000 17:25:19 +0800, Thomas Cheah wrote: > > > 1. How do I create a window (in AWT and Swing) which is unresizable, > > i.e. the border can't be dragged to resize and no maximize button > > (in Windows), or no Full size (in Solaris). > > A Frame in Java is resizable. A Window is not, but it does not have a > title bar, and it does not support automatic moving either. > > > 2. Can I change the icon of a window rather than use the default > > Java icon? > > You can set the icon of a Frame with frame.setIconImage(Image). A Window > has no title bar, and therefore no Icon. > > -- > John P. McGrath > <JPMcGrath@fast.net> > <jpm@nscs.fast.net> -- |�`�.��.���`�.��.���`�.��.���`�.��.����| | Email mailto:cheahcs@tm.net.my | | mailto:thomascheah@hotmail.com | |�`�.��.���`�.��.���`�.��.���`�.��.����| | Homepage http://surf.to/thomascheah | | Huge books links! Free softwares! | | (last updated on 12th Sept, 1998) | �`�.��.���`�.��.���`�.��.���`�.��.����
Technical Details
Message-ID:
<38B4A64F.FA1F4677@hotmail.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38B255FE.3FC2121D@hotmail.com> <MPG.131d3eea854ede7d9897b3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,b259bd2e839bfa2a X-Google-Attributes: gid111d45,public From: Thomas Cheah <thomascheah@hotmail.com> Subject: Re: Unresizable Window and custom icon Date: 2000/02/24 Message-ID: <38B4A64F.FA1F4677@hotmail.com> X-Deja-AN: 589126879 Content-Transfer-Encoding: 8bit References: <38B255FE.3FC2121D@hotmail.com> <MPG.131d3eea854ede7d9897b3@forums.borland.com> To: "John P. McGrath" <JPMcGrath@fast.net> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing