hallo ihr lieben wenn ich
einfüge makiert er das immer rot siehe screen
![]()
MySQL-Abfrage(n)
1 panel1.addComponent(new TextField(15, ""));
[spoiler][/spoiler]
was hat das zu beuten ??
|
|
MySQL-Abfrage(n) |
1 |
panel1.addComponent(new TextField(15, "")); |
|
|
MySQL-Abfrage(n) |
1 |
panel1.addComponent(new TextField1(15, "")); |
Benutzer, die sich für diesen Beitrag bedankt haben:
|
|
MySQL-Abfrage(n) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
ublic class TextField implements Component {
private int[] foreground, background;
private String text;
private byte width;
public TextField(int width) {
foreground = new int[] { 0x00, 0x00, 0x00 };
background = new int[] { 0xFF, 0xFF, 0xFF };
text = text;
this.width = (byte) width;
}
public ComponentType getType() {
return ComponentType.TEXT_FIELD;
}
public int[] getForeground() {
return foreground;
}
public void setForeground(int[] foreground) {
this.foreground = foreground;
}
public int[] getBackground() {
return background;
}
public void setBackground(int[] background) {
this.background = background;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public byte getWidth() {
return width;
}
}
|
|
|
MySQL-Abfrage(n) |
1 |
panel1.addComponent(new TextField(15, "")); |
[/spoiler]