• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Could we remove the Java cup icon from JFileChooser dialog?

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I am wondering if we could remove the Java cup icon from JFileChooser dialog. It seems it is impossible. Any suggestion?
Thanks.
Jeff
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A similar question was posted at the Sun site on JDialogs. The answer for those is that it uses the parent frames icon. I will keep looking and see if JFileChooser is mentioned.

The answers there all say to set your parent frames icon and it uses that.
[This message has been edited by Paul Stevens (edited September 20, 2001).]
 
Jeff Chang
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Paul.
My problem is same as that posted on JDC discussion forum: the JFileChooser extends a JDialog not a JFrame, so the Java cup icon still exists.
Jeff

 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Works for me. Shows the same icon as the parent frame. Can't make it different than the parent frame though.
And if you want no icon for the JFileChooser and an icon for the parent frame. Set the frame icon to a clear gif before calling the JFileChooser and set back after.
[This message has been edited by Paul Stevens (edited September 20, 2001).]
 
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic