Hi, I have a JInternalFrame with a JDialog that has a JPanel. The panel has a JLabel. The label shows the status of database connection. But,when executed the label displays only the last text value ie. Database Connection Successful .... I tried validate, repaint. But it did not help. Please help. The relevant code is below :
To me this is last value that is set to lbldbinfo. If that is the label that is displaying the data base status. This is correct.
It might not be displaying the text set in the below code. as it might be connecting to the data base executing the code above. This can be verified by using a System.out.println statement. The possible solution is to use a delay timer before connecting the data base.