Progress bar when loading applet

Well, let's say I have a Java applet that takes some time to load (~ 5 seconds). It gets mysql-connector.jar and loads. Well .. instead of a gray box with a coffee logo ... can I make it a simple progress indicator with a percentage?

Thanks.

+4
source share
2 answers

If you need a mysql connector, it looks like your application is quite complicated, and you should at least consider using java webstart. From faq:

How does Java Web Start relate to Java Plug-in technology (applets)?

Both approaches are very similar. The main difference is the user experience. If a Java application / applet needs to interact with a web page and be closely tied to a web browser, then applets can be a solution. On the other hand, if browser independence is important, then Java Web Start is the preferred deployment platform.

If you really want to make a progress bar, this page describes the solution , but it is not a trivial average.

+2
source

Source: https://habr.com/ru/post/1310710/


All Articles