Hi im new to java and i have been finding it hard use a user-defined class into another class while trying to append the results of that method into a java GUI label.
This is the GUI Source code
enter image description here
This is the Method i wanted to use
enter image description here
private void CalcButtonActionPerformed(java.awt.event.ActionEvent evt) {
int num1 = Integer.parseInt(Input.getText());
String results = Grading.Grading(num1);
Output.setText();
}
The code isn’t completed because i ran out of solutions 🙁
How do i get the results of the imported method into a label?
New contributor
Darshananand Mohana Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.