• Post Reply Bookmark Topic Watch Topic
  • New Topic

GImage: how to get the name of the .jpg file?  RSS feed

 
vojin djukic
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I wonder how to get the name of the .jpg file that is used for GImage object?

GImage img = new GImage ("bell.jpg", 250, 200");

add (img);

I can get informations about coordinates with img.getX() and img.getY() methods, but is there a method that will return string "bell.jpg" ?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Umm what is GImage?
 
J. Kevin Robbins
Bartender
Posts: 1801
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the JavaDoc here, there is no such method.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's apparently not a final class, so it should be trivial to extend it and add a String field, providing only the two constructors that actually take a String name parameter.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!