Im having some issues getting the copy and paste methods from JTextComponent working
for my program i have an array of strings that will be the menu choices. "Copy" and "Paste" are two of these.
else if (e.getActionCommand().equalsIgnoreCase("Copy"))
{
JTextArea a = new JTextArea();
a.setEditable(true);
a.copy();
}
else if (e.getActionCommand().equalsIgnoreCase("Paste"))
{
JTextArea a = new JTextArea();
a.setEditable(true);
a.getSelectedText();
a.paste();
}
im getting no error messages but its not working. any help would be appreciated