Results 1 to 2 of 2

Thread: event dispatch thread and JProgressBar

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    1

    Question event dispatch thread and JProgressBar

    I m a Java programmer (J2SE). The main problem is that i m working in a industry so there is no body to solve my problem.

    I have one problem, if u solve this then i will be very thankful to u.

    I want to see the immediate effect of swing command like lblStatus.setText(?).. and jProgressBar.setValue(?)... For this purpose, i used invokeAndWait() method but error appears: "u can't run this method in event-dispatch thread" similarly, Thread.getCurrentThread().sync() and doLayout() method also failed...

    plz send me solution on my given e-mail ID and also a cc to <[email protected]>

    Thanks,
    GAJESH TRIPATHI (mca)

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: event dispatch thread and JProgressBar

    We usually just answer in the forum and expect the e-mail notification to take care of things.

    JLabel.setText() and JProgressBar.setValue() usually trigger an immediate redraw of the component anyway, so what is the exact situation where you're experiencing a delay?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width