Java Swing (Simple web server) O Reilly actionPerformed() method of the
Java Swing O Reilly actionPerformed() method of the object implementing anAction. If the programmer desires, the action command can be set to aCommand. The conditions involved are listed in Table 3.7. public void unregisterKeyboardAction(KeyStroke aKeyStroke) Unregisters a keyboard action from the component. public int getConditionForKeyStroke(KeyStroke aKeyStroke) Returns the conditions defined for the keyboard action triggered by aKeyStroke. public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke) Returns the Action that is registered to be triggered by aKeyStroke. public void resetKeyboardActions() Clears all keyboard actions for the component. protected void processComponentKeyEvent(KeyEvent e) This protected method is called if there are no keyboard actions matching the keystroke directed at the component. The method currently does nothing; you can override it in your own components to perform component-specific keyboard handling. 3.3.4.6 Tooltips public String getToolTipText(MouseEvent event) Retrieves the text used for the component’s tooltip, given the appropriate mouse event. JComponent always returns the current toolTipText property. However, you can override this method in your own component if you want to return different strings based on various mouse events. public Point getToolTipLocation(MouseEvent event) Currently returns null. You can override it in your own component to specify the local component coordinates where its tooltip should be displayed. If the method returns null, Swing chooses a location for you. public JToolTip createToolTip() Returns a new instance of JToolTip by default. If you want to extend the JToolTip class with a tooltip creation of your own, you can override this method in your components, forcing it to return the new class to the tooltip manager. 3.3.4.7 Client Properties public final Object getClientProperty(Object key) Searches the client property list for the Object specified under the appropriate key. It returns null if no object is found. - 72 -
Note: In case you are looking for affordable webhost to host and run your web application check Vision http web server services