jTracer
1.03
Stack trace visualization tool
Main Page
Related Pages
Packages
Classes
Files
File List
TextField.java
Go to the documentation of this file.
1
7
package
org.libcsdbg.jtracer.installer;
8
9
import
javax.swing.*;
10
import
javax.swing.text.*;
11
import
java.awt.*;
12
13
public
class
TextField
extends
JTextField
14
{
16
private
static
final
long
serialVersionUID
= 0x00;
17
18
19
TextField
(String text)
20
{
21
super(text);
22
//setFont(config.font);
23
setSelectionColor(Color.decode(
"0xEF7000"
));
24
setSelectedTextColor(Color.white);
25
setCaretColor(Color.red);
26
/* setHorizontalAlignment(JTextField.RIGHT); */
27
}
28
29
30
protected
Document
createDefaultModel
()
31
{
32
return
new
RegexDoc();
33
}
34
35
36
static
class
RegexDoc
extends
PlainDocument
37
{
39
private
static
final
long
serialVersionUID
= 0x00;
40
41
42
public
void
insertString(
int
offset, String input, AttributeSet set)
throws
BadLocationException
43
{
44
if
(input.length() == 0)
45
return
;
46
47
/* Compare with the regexp */
48
if
(
false
) {
49
Toolkit.getDefaultToolkit().beep();
50
return
;
51
}
52
53
super.insertString(offset, input, set);
54
}
55
}
56
}
57
org.libcsdbg.jtracer.installer.TextField
Definition:
TextField.java:13
org.libcsdbg.jtracer.installer.TextField.serialVersionUID
static final long serialVersionUID
Class version.
Definition:
TextField.java:16
org.libcsdbg.jtracer.installer.TextField.createDefaultModel
Document createDefaultModel()
Definition:
TextField.java:30
PlainDocument
JTextField
src
org
libcsdbg
jtracer
installer
TextField.java
Generated by
1.8.5