This is basically a Java code converter. It involves a GUI let user input class type, name and method. To store the values, I\'ve created a class VirtualClass
with
From information you posted, seems strange that you initiate VirtualClass stObject
into actionPerformed
method. Its mean that each time you recreate your object.
Make your VirtualClass stObject
to be global for example, like:
private VirtualClass stObject;
...
stObject = new VirtualClass();
private class Handler implements ActionListener{
public void actionPerformed(ActionEvent event){
...
stObject.createClass(cName, mName, isP);