• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java cup visibility  RSS feed

 
Ramaprasad Kolla
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Howdy all?

Can any one explain me when a java cup(java logo) will be shown in the title bar (leftmost before any title text) of a JDialog while displaying any information?
Also when it (Java logo) will not be shown?

Thanks in advance!!

Ramprasad
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDialog gets its logo/cup from it's parent.
so, if the parent has none, it won't either.
if you schange the parent loge (frame.setIconImage(..)) it will also be seen in the dialog

now, all the above is irrelevant if the dialog is not resizable
dialog.setResizable(false) = no logo
 
Ramaprasad Kolla
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael.
I have use and its fine now.

Thanks again
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!