ListBox.beginUpdate

Overview | Methods | Fields | This Package | All Packages

ListBox.beginUpdate

Maintains performance while items are added to the list box one at a time by preventing the ListBox control from painting until the endUpdate method is called.

Syntax

public final void beginUpdate()

Remarks

The preferred way to insert items is to use the setItems method to add an array of items to a list box at once. However, if you want to add items one at a time, use this method to prevent the ListBox control from painting during these operations. Call the endUpdate method when all the items have been added to the list box so that the control can resume painting.