Skip to main content

JXBusyLabel in JDialog

1 reply [Last post]
bfalchuk
Offline
Joined: 2012-10-02
Points: 0

I am wanting to put a simple JXBusyLabel into a Swing JDialog that I can then make visible and not when i want to. So the containment is:

JDialog d (with borderLayout)
->JXPanel p (with borderLayout)
--->JXBusyLabel label

d.setSize(200,80);
d.setLocation(300,300);
d.setVisible(b);

I also perform:

p.setBusy(true);

but while the JDialog is appearing, neither the BusyLabel's text nor icon are showing up.

Are there known "gotchas" with this combination of components?

Is there a better way to make a simple modal popup that shows the SwingX busy spinner?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kleopatra
Offline
Joined: 2003-06-11
Points: 0

(forum running nuts - I'm sure to have replied yesterday and seen the answer ...

Should work, there are no gotchas I'm aware of. Consider to show a small runnable example that demonstrates the problem.

Cheers
Jeanette