Skip to content

Commit 6d79394

Browse files
committed
set dropdown selected item to selected graphics style
1 parent 729d45e commit 6d79394

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/esri/samples/displayinformation/update_graphics/UpdateGraphicsSample.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ public void start(Stage stage) throws Exception {
185185
// store the selected graphic
186186
selectedGraphic = identifyGraphics.get().getGraphics().get(0);
187187
selectedGraphic.setSelected(true);
188+
String style = ((SimpleMarkerSymbol) selectedGraphic.getSymbol()).getStyle().toString();
189+
symbolBox.getSelectionModel().select(style);
188190
}
189191
} catch (Exception x) {
190192
// on any error, display the stack trace

0 commit comments

Comments
 (0)