• Post Reply Bookmark Topic Watch Topic
  • New Topic

Could we remove the Java cup icon from JFileChooser dialog?  RSS feed

 
Jeff Chang
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!