Article View: borland.public.jbuilder.java.swing
Article #9625Re: Unresizable Window and custom icon
From: John P. McGrath
Date: Wed, 23 Feb 2000 00:00
Date: Wed, 23 Feb 2000 00:00
19 lines
1117 bytes
1117 bytes
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>
Technical Details
Message-ID:
<MPG.131d3eea854ede7d9897b3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38B255FE.3FC2121D@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b259bd2e839bfa2a X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: Unresizable Window and custom icon Date: 2000/02/23 Message-ID: <MPG.131d3eea854ede7d9897b3@forums.borland.com> X-Deja-AN: 588708858 References: <38B255FE.3FC2121D@hotmail.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing