File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Swing / AWT / SWT
java geoTools api: refresh of my gui when a Feature source is update
Joined: Jul 23, 2010
Jul 23, 2010 09:01:30
I have built a
gui that show some icons representing some Features taken from my Postgres database (with postGis integration) in the following way:
SimpleFeatureSource fs = dataStore.getFeatureSource("location"); //where location is my db table
Style style = createStyle(fs);
CachingFeatureSource cfs = new CachingFeatureSource(fs);
mapCtx.addLayer(cfs, style); //where mapCtx is my DefaultMapContext
Example of my feature: a man walking, so his position on the gui have to change (the data in the database are update by an external software).
Now, can I simulate the moving of my icon (man) on my java gui?
I was thinking to a listener that alert me when something in my db table has changed, then maybe a repaint of my map, but I can't find example and the right API.
Please, can someone help me?
I agree. Here's the link:
subject: java geoTools api: refresh of my gui when a Feature source is update
Reading an executable jar's manifest - here's how
JDBC Date support
Database problem with Gui
Java application Microsoft SQL server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014