Chapter SeventeenAnnotations

17.1. Introduction

As the user edits files in your application’s text-based editor, you can use marks in the Source Editor and its sidebars to annotate code. You do this by providing an annotation which consists of an underline or highlight in the editor together with a glyph in the left sidebar, or a mark in the right sidebar, or both. When the user hovers over the glyph or mark, they display a tooltip with some information about the annotation. The mark in the right sidebar can be clicked to navigate quickly to the line where the annotation occurred. By providing annotations, you can enable users, for example, to fix errors in the code as they happen, instead of browsing a long list of compilation errors at the ...

Get Rich Client Programming: Plugging into the NetBeans Platform now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.