hide the cursor
This commit is contained in:
parent
92f1a7282a
commit
28989f2511
|
@ -3,6 +3,7 @@ package de.ctdo.crashtest.gui;
|
|||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -20,6 +21,11 @@ public class MainGui extends JFrame implements IGuiControl {
|
|||
setExtendedState(Frame.MAXIMIZED_BOTH);
|
||||
setUndecorated(true);
|
||||
|
||||
setCursor(getToolkit().createCustomCursor( new BufferedImage(3, 3, BufferedImage.TYPE_INT_ARGB),
|
||||
new Point(0, 0), "null"));
|
||||
textWall.setCursor(getToolkit().createCustomCursor( new BufferedImage(3, 3, BufferedImage.TYPE_INT_ARGB),
|
||||
new Point(0, 0), "null"));
|
||||
|
||||
addKeyListener(new KeyAdapter() {
|
||||
@Override
|
||||
public void keyTyped(KeyEvent e) {
|
||||
|
@ -118,7 +124,8 @@ public class MainGui extends JFrame implements IGuiControl {
|
|||
final Runnable runnable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
extraField.setText(text + " ");
|
||||
String txt = text.substring(0, Math.min(text.length(), 8));
|
||||
extraField.setText(txt + " ");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue