Java Swing O Reilly component layers, it is (Tomcat web server)
Java Swing O Reilly component layers, it is widely preferred that you call these methods, instead of directly invoking paint(). public void paintImmediately(int x, int y, int w, int h) public void paintImmediately(Rectangle r) These methods force an immediate repaint of the specified region in the component. This method is invoked by the repaint manager when it is time for the component to draw itself; the programmer should not call this method. This method may move to java.awt.Component in the future. public void revalidate() Adds the current component to the repaint manager’s revalidation queue, which is located on the system event queue. public void computeVisibleRect(Rectangle visibleRect) Calculates a Rectangle that represents the intersection of the component’s own visible rectangle and each of its ancestors. The result is placed in the visibleRect property and is used to determine how much of a component is drawn to the screen. 3.3.4.4 Focus public void requestFocus() Shifts the focus to this component if the requestFocusEnabled property is true. public boolean requestDefaultFocus() Shifts the focus to a default component, typically the first focus-traversable component in the current container. If the method is unable to find such a component, it returns false. public void grabFocus() Used by focus managers to shift the focus to this component, regardless of the state of the requestFocusEnabled property. Because of this, it is generally better to use requestFocus() instead of this method. public boolean hasFocus() Returns true if this component currently has the focus. This method is defined in java.awt.Component in JDK 1.2. 3.3.4.5 Keyboard Actions public void registerKeyboardAction(ActionListener anAction, String aCommand,KeyStroke aKeyStroke, int aCondition) public void registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke,int aCondition) These methods register a specific keyboard action with the component. When the keystroke aKeyStroke occurs under the appropriate conditions, JComponent invokes the - 71 -
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check Vision professional web hosting services