112 |
*/ |
*/ |
113 |
public void actionPerformed(ActionEvent event) |
public void actionPerformed(ActionEvent event) |
114 |
{ |
{ |
115 |
// FIXME: Implement me. Tookit.getSystemClipboard should be used |
getTextComponent(event).copy(); |
|
// for that. |
|
116 |
} |
} |
117 |
} |
} |
118 |
|
|
143 |
*/ |
*/ |
144 |
public void actionPerformed(ActionEvent event) |
public void actionPerformed(ActionEvent event) |
145 |
{ |
{ |
146 |
// FIXME: Implement me. Tookit.getSystemClipboard should be used |
getTextComponent(event).cut(); |
|
// for that. |
|
147 |
} |
} |
148 |
} |
} |
149 |
|
|
172 |
*/ |
*/ |
173 |
public void actionPerformed(ActionEvent event) |
public void actionPerformed(ActionEvent event) |
174 |
{ |
{ |
175 |
// FIXME: Implement me. Tookit.getSystemClipboard should be used |
getTextComponent(event).paste(); |
|
// for that. |
|
176 |
} |
} |
177 |
} |
} |
178 |
|
|
213 |
return; |
return; |
214 |
|
|
215 |
JTextComponent t = getTextComponent(event); |
JTextComponent t = getTextComponent(event); |
216 |
if (t != null) |
if (t != null && t.isEnabled() && t.isEditable()) |
217 |
{ |
t.replaceSelection(event.getActionCommand()); |
218 |
try |
} |
|
{ |
|
|
t.getDocument().insertString(t.getCaret().getDot(), |
|
|
event.getActionCommand(), null); |
|
|
} |
|
|
catch (BadLocationException be) |
|
|
{ |
|
|
// FIXME: we're not authorized to throw this.. swallow it? |
|
|
} |
|
|
} |
|
|
} |
|
219 |
} |
} |
220 |
|
|
221 |
/** |
/** |
296 |
*/ |
*/ |
297 |
public void actionPerformed(ActionEvent event) |
public void actionPerformed(ActionEvent event) |
298 |
{ |
{ |
299 |
// FIXME: Implement this. |
JTextComponent t = getTextComponent(event); |
300 |
|
t.replaceSelection("\t"); |
301 |
} |
} |
302 |
} |
} |
303 |
|
|