This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic