Skip to main content

How to get graphics from java.awt.Component??

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
rjb
Offline
Joined: 2011-05-31

Hi I am using rapidminer it is giving me java.awt.component
from this component how can i get graphics
component.isDisplayable() is true
Graphics graphics1= Component.getGraphics();
graphics returns null