first see this image:window
To understand my question you have to see the image first. So, I have made a program in netbeans(java) which can convert simple and easy codes ( like: Print "sum") into actual java codes (i.e. System.out.print("sum");). Now what I want to do is create a button in the window marked a (1) that is RUN, which when clicked will show a new window like the bluej output box terminal marked as (2) in the image which will show the ouput of the generated code like what is shown in bluej after compiling it. Using this students will be able to instantly type codes and see the output of their programs very fast.
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {
// I want to know what code should i put here that will return the ouput.
}
for more info visit my website: http://fdti.weebly.com