01: /*
02: * MultiLineToolTip.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.gui.components;
13:
14: import javax.swing.JToolTip;
15:
16: public class MultiLineToolTip extends JToolTip {
17: private static final MultiLineToolTipUI SHARED_UI = new MultiLineToolTipUI();
18:
19: public MultiLineToolTip() {
20: setOpaque(true);
21: updateUI();
22: }
23:
24: public void updateUI() {
25: setUI(SHARED_UI);
26: }
27:
28: }
|