01: /*
02: * @(#)OverlayableTextField.java 8/10/2007
03: *
04: * Copyright 2002 - 2007 JIDE Software Inc. All rights reserved.
05: */
06:
07: package com.jidesoft.swing;
08:
09: import javax.swing.*;
10: import javax.swing.text.Document;
11:
12: public class OverlayTextField extends JTextField {
13: public OverlayTextField() {
14: }
15:
16: public OverlayTextField(String text) {
17: super (text);
18: }
19:
20: public OverlayTextField(int columns) {
21: super (columns);
22: }
23:
24: public OverlayTextField(String text, int columns) {
25: super (text, columns);
26: }
27:
28: public OverlayTextField(Document doc, String text, int columns) {
29: super (doc, text, columns);
30: }
31:
32: @Override
33: public void repaint(long tm, int x, int y, int width, int height) {
34: super.repaint(tm, x, y, width, height);
35: OverlayableUtils.repaintOverlayable(this);
36: }
37:
38: }
|