Results 1 to 3 of 3
  1. #1
    mavaforumsm is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default JLabel is not refreshed from withing ActionPerformed

    I'm running rather complex Swing application. GUI has a status bar at the bottom, which contains JPanel and JLabel inside it . Static bar is a static object.
    At some point I'm running search query. 1st I open new JFrame as a search form. After search criteria is entered, child frame performs the DB query within ActionPerformed method. While it is performing the query I would like to display different messages in the MainFrame status bar. This is not happening. I can only see the very last message.

    I know it is a vague description. Any clues,help will be greatly appreciated.
    Thanks.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

  3. #3
    mavaforumsm is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by r035198x View Post
    Thanks. Very refreshing.

    After I modified the code and moved DB queries into its own thread, now all look as planned.

Similar Threads

  1. Adding a JLabel to a JPanel - jlabel not showing
    By Bongeh in forum New To Java
    Replies: 17
    Last Post: 04-06-2010, 11:02 PM
  2. Help with actionPerformed
    By mayhewj7 in forum New To Java
    Replies: 8
    Last Post: 02-10-2009, 06:45 PM
  3. trouble with actionPerformed
    By diggitydoggz in forum New To Java
    Replies: 2
    Last Post: 12-26-2008, 02:18 AM
  4. Help with actionPerformed Statements
    By wco5002 in forum New To Java
    Replies: 8
    Last Post: 03-26-2008, 04:02 AM
  5. actionPerformed problem
    By tomitzel in forum New To Java
    Replies: 1
    Last Post: 01-08-2008, 06:10 PM

Posting Permissions

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