Results 1 to 4 of 4

Thread: a pop-up/modal dialogue for n seconds...

  1. #1
    Join Date
    Aug 2005
    Location
    London (the English one!)
    Posts
    378

    Question 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. #2

    Post 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

  3. #3
    Join Date
    Aug 2005
    Location
    London (the English one!)
    Posts
    378

    Default 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

  4. #4

    Smile

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •