| javax.swing.JLabel net.sourceforge.squirrel_sql.fw.gui.TimePanel
TimePanel | public class TimePanel extends JLabel implements ActionListener(Code) | | Time panel. This will show the current time.
A timer to update the time is started when the component
is added to its parent and stopped when removed from its parent.
author: Colin Bell |
Constructor Summary | |
public | TimePanel() Default ctor. |
TimePanel | public TimePanel()(Code) | | Default ctor.
|
actionPerformed | public void actionPerformed(ActionEvent evt)(Code) | | Update component with the current time.
Parameters: evt - The current event. |
addNotify | public void addNotify()(Code) | | Add component to its parent. Start the timer for auto-update.
|
getPreferredSize | public Dimension getPreferredSize()(Code) | | Return the preferred size of this component.
the preferred size of this component. |
removeNotify | public void removeNotify()(Code) | | Remove component from its parent. Stop the timer.
|
|
|