Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ScrollableThumbnail Nullpointer(an working example somewhere?)
ScrollableThumbnail Nullpointer [message #755644] Wed, 09 November 2011 03:21
Ludwig Moser is currently offline Ludwig Moser
Messages: 328
Registered: July 2009
Senior Member
		ScrollPane scroll = new ScrollPane();
		scroll.setBounds(panel.getBounds());
		ScrollableThumbnail thumbnail = new ScrollableThumbnail();
		thumbnail.setViewport(scroll.getViewport());
		thumbnail.setBorder(new GroupBoxBorder("Overview Figure"));
		thumbnail.setSource(source);

which ends in
Quote:
java.lang.NullPointerException
at org.eclipse.draw2d.parts.ScrollableThumbnail.reconfigureSelectorBounds(ScrollableThumbnail.java:249)
at org.eclipse.draw2d.parts.ScrollableThumbnail.setScales(ScrollableThumbnail.java:273)
at org.eclipse.draw2d.parts.Thumbnail.setSource(Thumbnail.java:533)
at draw2d.tw.DrawingBoard.createThumbnail(DrawingBoard.java:177)
at draw2d.tw.DrawingBoard.updateMiniMap(DrawingBoard.java:150)
at draw2d.tw.DrawingBoard.createMiniMap(DrawingBoard.java:141)
at draw2d.tw.DrawingBoard.<init>(DrawingBoard.java:128)
at draw2d.tw.ConstructionBoard.createContents(ConstructionBoard.java:106)
at draw2d.tw.ConstructionBoard.open(ConstructionBoard.java:51)
at draw2d.tw.ConstructionBoard.main(ConstructionBoard.java:40)


what am i missing?
Previous Topic:Command Stack change and save action
Next Topic:[Draw2D] change icon of Label depending on Zoom
Goto Forum:
  


Current Time: Sun Aug 31 00:26:15 EDT 2014

Powered by FUDForum. Page generated in 0.06510 seconds