r/javahelp • u/Objective-Barnacle-7 • Oct 02 '25
JApplet has been deprecated.
I made an application in java but I get the following message in my screen "warning: [removal] JApplet in javax.swing has been deprecated and marked for removal". My application run very well and you can see it in the following direction: "https://www.github.com/Luis-Federico/cubo" but I want to can that this warning don't appears ¿Somebody can to help me ?
6
Upvotes
View all comments
Show parent comment
3
u/nozebacle Oct 02 '25
I made an updated version of your code that may be of use to understand my previous comments. It is functionally equivalent to your version: I just clean the code, deleted dead code, changed the name of the classes, removed the JApplet, and improved a few things regarding the initialization of the window.
I hope it is useful.
The upgraded Polygon6 class: (https://smalldev.tools/share-bin/U1yg0X9c)
The upgraded MFederico class: (https://smalldev.tools/share-bin/VXQKJpSx)
The upgraded constructor class: (https://smalldev.tools/share-bin/HZa5esoa)