On Fri, 20 Sep 2013 11:15:58 -0700 Landon Blake <sunburned.surve...@gmail.com> wrote: > Has anyone extracted the LayerViewPanel as a stand-alone widget for > Swing Programs?
I've used the LayerViewPanel and TreeLayerNamePanel in SMT - SAR Manager Toolkit http://sarmanager.sourceforge.net/ > I was thinking about doing this, or of coding something similar from > scratch, but I wanted to ask here first. Current OpenJump places some constraints on what seems to be able to be done easily. I had to make a few changes to get things to work, see: http://sourceforge.net/p/sarmanager/code/HEAD/tree/trunk/SMT/lib/openjump1.4.3alpha_rev2524.patch I also found that I needed to embedd these into a class that extended a JInternalFrame: public class MapInternalFrame extends JInternalFrame implements LayerManagerProxy, LayerViewPanelProxy, TaskFrameProxy, LayerNamePanel, LayerNamePanelProxy, SelectionManagerProxy { ... http://sourceforge.net/p/sarmanager/code/HEAD/tree/trunk/SMT/src/net/aa3sd/SMT/ui/MapInternalFrame.java I haven't gone digging very far, but it did find dependencies in the OpenJump classes/interfaces on JInternalFrame (rather than the more general JComponent) that appeared to prevent (unless I was missing something) things like embedding a LayerViewPanel in a JPanel and a TreeLayerNamePanel in another JPanel without there being an enclosing JInternalFrame. And, greetings to all. Have been lurking for a while, but haven't had a chance to introduce myself, or describe what I've been trying to accomplish with OpenJump. I keep hoping I'll have time to contribute, particularly to improving support for projections, but haven't had a chance to yet. Great platform, thanks to everyone involved for all the good work. -Paul -- Paul J. Morris Biodiversity Informatics Manager Harvard University Herbaria/Museum of Comparative Zoölogy m...@morris.net AA3SD PGP public key available ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel