• Register
0 votes

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

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 19 views
0 votes
1 answer 94 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 117 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 25 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 mphil 2.3k points
0 votes
1 answer 373 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