• Register
0 votes
1.1k views

Problem :

I want to input some of the details about student to my program. But when I press a save button its giving me the below listed exception error:

"Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet."

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

You have the code of your own program that you have not yet shown to us, likely in the ActionListener or in the method that one of the ActionListener's calls, that usually throws such an exception. So you need to find it, and fix it as simple as that.

As noted by many of the exception's own the Stacktrace message will always tell you what lines are causing you the exception, but again, I am very sure that it will be in the method that has been created by the NetBeans and that looks something like the below one:

// The X shown below is some number
private void jButtonXActionPerformed(java.awt.event.ActionEvent evt) {
    throws new UnsupportedOperationException("Not supported yet.");
}

To fix this error you just need to remove your throws statement and instead of that you just need to add the code that should be called when your button is pressed.

This method of solving the error have helped many coders to fix there toughest of errors in minimum time.

9 7 4
38,600 points

Related questions

0 votes
1 answer 10 views
10 views
Problem: Can anyone tell me the solution of this problem? exception in thread "main" java.lang.unsupportedoperationexception: not supported yet.
asked Mar 25 Ifra 24.4k points
0 votes
1 answer 76 views
76 views
Problem: exception in thread "awt-eventqueue-0" java.lang.numberformatexception: for input string: ""
asked Feb 18 Lucky Guy 1.5k points
0 votes
1 answer 39 views
39 views
What could the reason, why it is working in eclipse and not in standalone?
asked Jan 24 TeamScript 13.5k points
0 votes
1 answer 33 views
33 views
Hello I'm a new programmer at an high school level as a result I do not know much about programming and am getting quite a few errors which have been resolved while others I completely do not understand.
asked Dec 7, 2020 TeamScript 13.5k points
0 votes
1 answer 78 views
0 votes
1 answer 114 views
114 views
Problem : I am getting bellow error repeatedly exception in thread "awt-eventqueue-0" java.lang.nullpointerexception
asked Oct 31, 2019 peterlaw 6.9k points
0 votes
2 answers 530 views
530 views
Problem : I got bellow message from my code Exception in thread "main" java.lang.ArithmeticException: / by zero
asked Nov 1, 2019 peterlaw 6.9k points
0 votes
1 answer 5 views
5 views
Problem: Hello! I do not have a lot of knowledge about Java and I keep trying random stuff that I find on the web. I saw following program somewhere: import java.util.HashMap; import java.util.Map; public class Main { public static void main(String[] ... .util.HashMap$KeyIterator.next(HashMap.java:1469) at Main.main(Main.java:13) Please explain why this exception is being thrown by this program.
asked Mar 31 Code Learner 9.2k points
0 votes
1 answer 2 views
2 views
Problem: Hello ... Can anyone tell me that why I got this error? exception: java.lang.nullpointerexception ejbclass="productratesservices.getserviceoptions"
asked Apr 1 Ifra 24.4k points
0 votes
2 answers 265 views
265 views
Problem : I am new to string handling & getting below error while trying to execute a program java.lang.stringindexoutofboundsexception: string index out of range: 0
asked Oct 23, 2019 peterlaw 6.9k points