Forums Register Login

Should I learning Swing or applets?

+Pie Number of slices to send: Send
Hello
in my tutorial I arrive to applet chapter.
on of my old freind(C++/java fan)told me than dont waste your time to learning applet and swing and ...
populer browsers will not support them in near future.is it right ? cause I saw people asking a lot of question about them so seems they are important.
thanks
1
+Pie Number of slices to send: Send
Applets are deprecated and modern browsers disable them by default. You should not waste time on them.

Swing is used for more than just applets, so it might be worthwhile for creating desktop apps (though I believe that JavaFX is preferred).

If your aim is to create applications that run in the browser, then no, neither applets or Swing are viable. Web applications are not created using desktop GUI systems such as Swing.
1
+Pie Number of slices to send: Send
 

Greg Sully wrote:cause I saw people asking a lot of question about them so seems they are important.



It usually takes people about five years before they let go of ideas which are obsolete, at least in the programming business. It's only been a couple of years since applets were finally rejected by the browser writers for their security failures, so you can expect people to be asking your question for a few more years.
+Pie Number of slices to send: Send
thanks for clarification.
+Pie Number of slices to send: Send
 

Paul Clapham wrote:. . . It usually takes people about five years before they let go of ideas which are obsolete . . .

Unfortunately some of us in academia still seem to teach things which were obsolete or superseded twelve or fifteen years ago.
2
+Pie Number of slices to send: Send
Applets, alas, are a good idea whose timing was bad and then on top of that, there was the whole security debacle.

When applets first arrived, Microsoft got all snitty because they tried to embrace, extend, and extinguish Java and got slapped down in court. Thus, Java support was an expensive (in bandwidth/time) add-on to Windows that no one wanted to mess with. The Internet got faster, so the download issue got less (although a 78MB download is nothing to dismiss lightly). But by then there was a mess because too many different versions of Java were in use, and the mechanisms to co-ordinate them were lacking. Who want 7 different JVM versions at once? By the time bandwidth AND disk space became essentially non-issues, we then had the ruckus about all the security holes despite the idea that Java was a language with security built-in. So applets have been a spectacular failure.

Swing, on the other hand, is less so. Swing is actually one of 3 primary GUI platforms for Java. There was the original - AWT - which was weak and ugly, Swing, which built AWT into something decent, and SWT, which was a third-party GUI not created or supported directly by Sun, later Oracle. SWT is actually quite popular. The IBM-written Eclipse IDE is written in it, as are the GUI utilities for the Pentaho Business Intelligence suite from Hitachi Corp.

The nice thing about Java GUIs is that they are OS-independent. You can run a Swing-based Java app on Windows, MacOS, Linux and whatever Unixes are still kicking around. As well as  several more obscure java hosts. That makes it good for "universal" applications. Among the examples that take advantage of this write-once/run-anywhere capability are the ArgoUML design tool, the Universal GCode Sender (I've been playing with CNC equipment lately), and a high-performance video editor called ProjectX.

Although applets are a lost cause, there is still a way to get web users up and running on Java apps. The JNLP standard allows the fetching and caching of Java apps (not applets) from the web. This is the preferred way of installing ArgoUML, for example. Because JNLP is an app system, you don't run in a browser, you run as an independent OS process and the applet sandbox does not apply. There's no special coding required, either. Any Java app can be managed via jnlp.
please buy my thing and then I'll have more money:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1124 times.
Similar Threads
setBackground method problem?
bouquet and brickbats for HFSJ
Need a help on developing multicolored textarea for chat application
Applet works in Eclipse but not browser
Game Tutorials -->> Exploring Browser Support for Java 2
Thread Boost feature
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:21:56.