18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BUILDING APPLICATIONS WITH VISUAL JAVABEANS<br />

public void onStartDialog(ICustomizeDialogEventsOnStartDialogEvent<br />

arg0) throws IOException {<br />

toolbar.setCustomize(true);<br />

}<br />

public void onCloseDialog(ICustomizeDialogEventsOnCloseDialogEvent<br />

arg0) throws IOException {<br />

toolbar.setCustomize(false);<br />

java.awt.EventQueue.invokeLater (<br />

new Runnable () {<br />

public void run () {<br />

customizeCB.setSelected(false);<br />

}<br />

}<br />

);<br />

}<br />

});<br />

8. Run the application and check the Customize check box to put the toolbar<br />

into customize mode and open the Customize dialog box.<br />

9. On the Commands tab, select the Graphic Element category and drag the<br />

Select Elements command to the toolbar to add it there. By right-clicking an<br />

item on the toolbar, you can adjust the appearance in terms of style and<br />

grouping.<br />

10. Close the Customize Toolbar Item dialog box to stop customizing the application.<br />

Use the Select tool to move the text element containing today’s date.<br />

328 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!