Announcement Announcement Module
Collapse
No announcement yet.
a pop-up/modal dialogue for n seconds... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • a pop-up/modal dialogue for n seconds...

    Hi *,

    How would you create a dialog that would appear on top of everything else for say n seconds when a given async event happens?

    At the moment, I did a modal (OK) dialog but my users do not want to have to click on it... so it could disappear after 2 secs...

    Any suggestions welcomed!

    Thanks & regards from London,

    Benoit

  • #2
    subclass BusyIndicator

    Hi Benoit,

    I think you could easily subclass the
    Code:
    org.springframework.richclient.progress.BusyIndicator
    to provide a modal component which sits on everything and shows whatever...

    hth and greetz from Germany,
    Sebastian

    Comment


    • #3
      anything easier?

      Hi Sebastian

      Anything easier? like using JOptionPane? or some kind of dialog based stuff?
      If I understand correctly, I'd have to create a panel and show, keep a thread and then hide it... The busyIndicator just puts an hourglass on a component... I'd like the component to pop up, 2 secs and then disappear...

      Thanks

      Benoit

      Comment


      • #4
        Hi Benoit,

        when I'm right the BusyIndicator sits on the GlassPane and shows the hourglass... But if you would implement your own kind of BusyIndicator for your specific usecase you could provide some kind of transparent message for the short time...

        take a look at the link below... a thread about providing messages on GlassPanes...

        http://forum.java.sun.com/thread.jsp...sageID=3994619

        best regards,
        sebastian

        Comment

        Working...
        X