pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prophe ...@cargosoft.ru>
Subject Re: Replace column in table view
Date Fri, 30 Sep 2011 11:33:33 GMT
My code is:

	@Override
	public LocalManifest getContent() {
		LocalManifest content = new LocalManifest();
			
		if (selectedIndex!=-1){
			Bounds headerBounds = getHeaderBounds(selectedIndex);
			BufferedImage bImg = new BufferedImage(headerBounds.width,
headerBounds.height, BufferedImage.TYPE_INT_RGB);
		
			Graphics2D graphics =  bImg.createGraphics();
			paint(graphics);
			
			getGraphics().drawImage(bImg, 0, 0, null); 
	
			Picture p = new Picture(bImg); 
	        content.putImage(p);
		}
 
        return content;
	}

-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Replace-column-in-table-view-tp3375080p3382073.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Mime
View raw message