File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing

 
Asmita Rane
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to remove coffee cup image from left top of JFrame & JDialog, & showing our own custom image at that place.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
frame.setIconImage(...);
 
Olivier Legat
Ranch Hand
Posts: 176
Chrome Mac Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to what Micheal said. You can use the javax.swing.ImageIcon class to create an ImageIcon from a file in your computer using the constructor ImageIcon(String). Get use the method getImage() to use a parameter in Frame.setIconImage(Image)


 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Asmita,
Welcome to the Ranch. We are happy to have you here

To get the most out of the Ranch, it would be a good idea to use a meaningful title for your thread.
Having a thread titled "Swing" in the Swing forum is hardly intuitive for the readers

It might also be a good idea to check this out.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic