This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to set action event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to set action event" Watch "how to set action event" New topic
Author

how to set action event

Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99


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

Joined: Oct 27, 2005
Posts: 19651
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
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?
 
Don't get me started about those stupid light bulbs.
 
subject: how to set action event
 
Similar Threads
Symbol Not Found - What am I Missing?
Please help me solve my problem
can't add to JPanel after removeAll() is triggered by another swing component
How to resize an application to screen size?
Pressing a button to open a new window