r/javahelp • • 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

12 comments sorted by

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)

2

u/Objective-Barnacle-7 Oct 02 '25

Thanks a lot. Really you are very kind. I encourage you to see my project "Mluis1.java" in the same direction ( https://www.github.com/Luis-Federico/cubo" ) I uploaded It a minute ago. This time I do it in Canvas. The cuestion is that I 'm interesting in merge my projects in one alone. Your help is really very apareciate. When I will do it, you will know It.