Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set action event

 
Roldan Baldo
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


the imageResizable variable is changing its values but the effect is not changed, the picture is the same,.. i get the value of imageResizable after it resizes and it return
a smaller image. but when i click the button it doesnt take its effect.
 
Rob Spoor
Sheriff
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I never see you use it. If I do a search on your code I find 3 occurrences: the declaration, the initialization to null and the setting in the action performed method.
 
Roldan Baldo
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im sorry i forgot to write the last 2 lines there. and it works now. but i have a little problem about the picture



when i performed this method im going to resize the picture into smaller, it seems that the picture is more pixeleted, unlike the orig one. the pic became ugly, did i miss something about manipulating images using BufferedImage?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic