摘要 |
<p>PROBLEM TO BE SOLVED: To provide a Caret display control method which utilizes only a function provided by Java and universally and also simply realizes a caret (Caret) function in a panel (Panel) class. SOLUTION: A rectangular area which corresponds to the display position of a designated Panel and is provided with a size that is the same as it is painted over with a Caret color and Caret is produced in an offline screen image of double buffering corresponding to the Panel by drawing a character shown at the display position there with a color that takes an XOR of the Caret color and a character color. It is copied to the Panel and the Caret is shown. Also, the Caret is blinked and shown by alternately repeating the display and non-display of the rectangular area part.</p> |