You would need to add a trigger to the database and you would need to have a thread in your java app check to see if the trigger has fired. For example, you could have a trigger set a flag in your database and have a thread that checks for that flag every x seconds.
I implemented a tooltip by extending the BasicToolTipUI and overriding the paint method. Most of the time this works fine and I have multiple lines on my tooltip. But, sometimes when the tooltip appears centered (i.e. the mouse is in the middle of the tooltip) it shows up as an empty gray box.
[This message has been edited by Matt Hansen (edited October 04, 2001).]
Also, if you implement ComponentListener you can catch the componentResized and update your image location. [This message has been edited by Matt Hansen (edited October 04, 2001).] [This message has been edited by Matt Hansen (edited October 04, 2001).]
I have not worked with applets before. But, when I run this it runs the init method instead of main. Maybe this is normal for applets? Anyway, when I run your code in jBuilder5 the main method is never called so the look and feel is never set. [This message has been edited by Matt Hansen (edited October 03, 2001).]
In order to implement multi-line tooltip in a JTable I'm trying to extend the DefaultTableCellRenderer to override createToolTip to use my MultiLineToolTip. When I override createToolTip for a JButton it works fine and I can get a multi-line tooltip. But, when I try to override it in my extended DefaultTableCellRenderer the method never gets called. Any suggestions? Here's my code (there's not much to it):
If you want the JLabel to store the url and display some different text. i.e. it says 'My Link' and clicking on it takes you to http://www.somewebpage.com You probably need to implement your own JLabel which has a url field and a getURL method. [This message has been edited by Matt Hansen (edited September 28, 2001).]