🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16022

JDialog Frame Icon

#16022
From: Bob Pfingsten
Date: Wed, 07 Apr 1999 00:00
11 lines
939 bytes
I have an instance of a JDialog which gets its frame from an instance of a
JFrame.  My question is this I am able to change the main (JFrame)
application icon using:

    ImageIcon icon = new ImageIcon("my icon path");
    this.setIconImage(icon.getImage());

However when I display my JDialog it has the boiler plate Coffee Cup icon.
Should'nt the dialogs icon be the same as the frames?  If not how can I
change my JDialogs window icon?  Any assistance would be greatly
appreciated.
Technical Details
Message-ID: <7egcit$9l5@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2dc6826a37c6f323,start
X-Google-Attributes: gidf74b3,public
From: "Bob Pfingsten" <bobp@dev-tech.com>
Subject: JDialog Frame Icon
Date: 1999/04/07
Message-ID: <7egcit$9l5@forums.borland.com>
X-Deja-AN: 463753037
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language