0

I want to combine a console application with a GUI in netbeans.I tried to do it using a jButton.I want to get the output of

the console application into a jTextArea.There is a function called private static void printBytes(byte[] data, String

name)in the console application.when calling that function have to do as follow.
printBytes(activeKey,"After permuted choice 1 table- Active key:");
For this I have to pass the 2nd parameter to the text box.I created an object of the jTextArea called ta and gave ;
printBytes(activeKey,ta.append("After permuted choice 1 table- Active key:"));
It gave an error called cannot convert void type into string.
Then I tried as follow.
String a="After permuted choice 1 table- Active key:"
printBytes(activeKey,ta.getText(a));
It also didn't work.
Someone please tell me how to do it.What i want to do is somehow connect my console application to GUI and getting the

output on the GUI.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by JamesCherrill
0

It gave an error called cannot convert void type into string.

Have a closer look at that error message - it should give you the exact line number where it happens. Then look at that line and find out which variable is null.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.