This is the thread where I will dump all my GUI related question(instead of creating tons of topics).
First question, Java Swing spinning loading component - YouTube
Cant someone give me a hind which class and method I can create this?
Printable View
This is the thread where I will dump all my GUI related question(instead of creating tons of topics).
First question, Java Swing spinning loading component - YouTube
Cant someone give me a hind which class and method I can create this?
Most of us prefer that you create a separate thread for a new question. Your questions are not for your benefit alone but also for the benefit of future viewers of this site, and it would be best for all to allow for easy topic searches. On that note, you'd be best served to use specific thread headings.
You can create something like that with a JLabel that has a custom paintComponent override and uses a Swing Timer.Quote:
First question, Java Swing spinning loading component - YouTube
Cant someone give me a hind which class and method I can create this?
okey, one thread per question.
btw, I think I will ditch the idea about that spinning loading thing(its to confusing, I get back into it later).
Instead, I am trying to create a JDialog that is semi-modal.
Example, I when my program is encrypting a file, there should be a modal JDialog(without any buttons) that should say "Please wait, program working...". But in the same time, the encryption process should continue(a modal JDialog would freeze that operation if I am correct).
So, tips on how to create a semi-modal dialog?
Use a modal dialog. The encryption process will need to be done in a background thread, one that is started just before displaying your dialog (or progress monitor of some sort). If you use a SwingWorker for encryption, there are several ways to easily monitor it so that you'll know when its done such as by using a PropertyChangeListener and listen to the SwingWorker's state property to see if it is SwingWorker.StateValue.DONE. The API will show you how to do this.