Package com.ms.awt |
![]() Previous |
![]() Microsoft Packages |
![]() Index |
![]() Next |
public class CaretX { // Constructors public CaretX(Component c, int w, int h); // Methods public void finalize(); public void show(); public void hide(); public void setPos(Point p); public void setPos(int px, int py); }
The CaretX class creates a text caret (a flashing block) for the given component. The caret has a settable width and height, can be displayed at a given point, and temporarily hidden and shown as needed.
public CaretX(Component c, int w, int h)Creates a text caret for the given component.
Parameter Description c The component. w Width of the caret. h Height of the caret.
public void finalize()Removes and deletes a caret.
Return Value:
No return value.
public void show()Shows the caret.
Return Value:
No return value.
public void hide()Hides the caret.
Return Value:
No return value.
public void setPos(Point p)Sets the caret position to the coordinates of the given point.
Return Value:
No return value.
Parameter Description p The point.
public void setPos(int px, int py)Sets the caret position to the given coordinates.
Return Value:
No return value.
Parameter Description px The x-coordinate. py The y-coordinate.