Adding a rotary tool to jDialog in java

I work in a desktop application. In my application, I perform a login operation when a user enters their ID and password. The login page is created in java swings using jDialog. When a user enters their credentials, it takes several minutes to verify the user. I want to add a tool for segments with the message β€œWait”, which will be displayed when you click the β€œNext” button.

I had no swing control that could be used as a cropping tool. During the search, I realized that ajax loader.jpg can be used as a tool for trimming, but not getting how I can use it in my jDialog.

Please suggest me some way to add a cutting tool.

+6
java swing
source share
2 answers

Ajax has a spinning tool that can be used directly by putting a label in jPanel / jDialog and importing it as an icon image.

Here is a link where you can get tools for creating ajax

http://www.andrewdavidson.com/articles/spinning-wait-icons/

Thank you for your valuable suggestions and response.

+3
source share

You can use the JProgressBar, making a bunch and changing the value of progress. Also note that the SwingX project offers a login dialog that does this for you.

+2
source share

All Articles