G
Gast
Gast
Hallo. habe eine Frage. kann man eine Enter taste simulieren, ausser mit der robot class?
z.B. mit KeyEvent oder so.
danke
z.B. mit KeyEvent oder so.
danke
source - the object that originated the event
id - an integer that identifies the event
command - a string that may specify a command (possibly one of several) associated with the event
Roar hat gesagt.:robot is blöd
JDialog dlg = new JDialog("WasAuchImmer");
JButtton okBtn = new JButton("OK");
dlg.add(okBtn, .......);
// jetzt kommts ;)
dlg.setDefaultButton(okBtn);