• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java cup visibility

 
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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!