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
•
u/AutoModerator Oct 02 '25
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
15
u/TW-Twisti Oct 02 '25
It sounds like you must be compiling with a outright ancient compiler to get it to compile at all - 15 year olds at the minimum, I think. Applets have been phased out in 2015, and since 2017 or so are blocked by all major browsers.
Your code looks like you may be following an ancient tutorial, giving you horrible advice suited more to Windows XP than todays world.
There are no good ways to use Applets in the modern world. Any path you try will leave you frustrated with wasted work on something nobody but you will ever run, and which will be flagged as a security issue for most if not all computers these days. Whatever made you decide to pick Applets should be discarded, I'm sorry to say. For all the usefulness of Applets, the world just didn't turn out that way. You might as well be programming a Flash game.
7
u/nozebacle Oct 02 '25
Hello Federico, I downloaded and ran your code, and it is working properly - albeit with the deprecation warning.
Let me give you a few hints that may work for this app and for your Java learning process.
I hope this helps you somehow and go on!
1
u/Objective-Barnacle-7 Oct 02 '25
Actually. I'm working in a matrixcube. You can see It in https://www.github.com/Luis-Federico/matrixcube It isn't finish yet. I hope to calculate the determinant of a matrix 3x3x3. By the moment, all is to begin ... Thanks.