• Register
0 votes
822 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 12 views
12 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 9.2k points
0 votes
1 answer 46 views
0 votes
1 answer 103 views
103 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 274 views
274 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
2 answers 199 views
199 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
0 votes
1 answer 10 views
0 votes
1 answer 36 views
36 views
Problem : Currently I am learning Java. I have written code in Java but it gives me below error “Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Minesweeper.main(Minesweeper.java:5)”. I am unable to understand above error. How can I fix above error.
asked Feb 22, 2020 mphil 2.3k points
0 votes
1 answer 487 views
487 views
Problem : I am getting bellow error while compiling Arraylist exception in thread "main" java.lang.indexoutofboundsexception: index: 0, size: 0
asked Oct 19, 2019 peterlaw 6.9k points
2 votes
1 answer 20 views
20 views
Problem: I am beginner to jTable. I have already attached the jTable to JDBC database. But I don’t know how to retrieve them. My requirement is the saved data must be shown if I restart my program but currently it is not working for me. I have ... studentName"); String myshool = myrs.getString("schoolName"); String myjoining = myrs.getString("joiningDate"); } Can somebody solve my problem ?
asked Mar 24, 2020 morrisBson 3.2k points
0 votes
2 answers 238 views
238 views
Problem : Currently I am working on my app for Android but I am getting following error while working with the SharedPreferences. I am very new to Android App Programming. I am trying to debug it from past 2 days but unable to find the solution ... " android:inputType="number" android:key="capitalownership" android:title="@string/capitalownership" /> Can somebody help me in resolving this error?
asked Feb 17, 2020 mphil 2.3k points