O'Reilly logo

Rich Client Programming: Plugging into the NetBeans Platform by Geertjan Wielenga, Jaroslav Tulach, Tim Boudreau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required