This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 170884

Summary: ImageWidget should be resizable
Product: platform Reporter: Geertjan Wielenga <geertjan>
Component: GraphAssignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Geertjan Wielenga 2009-08-25 15:58:35 UTC
API for ImageWidget needs tp change: "scale" field with setter and getter is needed for ImageWidget. Based on the value
of "scale", a particular gr.drawImage should be called. This works for me, more or less:

gr.drawImage(image, 0, 0, getBounds().width, getBounds().height, 0, 0, width, height, observer);
Comment 1 Geertjan Wielenga 2009-08-25 16:02:14 UTC
Related article:

http://java.dzone.com/news/how-add-resize-functionality-v