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 - ImageWidget should be resizable
Summary: ImageWidget should be resizable
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 15:58 UTC by Geertjan Wielenga
Modified: 2010-04-01 14:49 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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