Java Swing - O Reilly protected FontMetrics getFontMetrics() Returns (Web hosting control panel)

Java Swing - O Reilly protected FontMetrics getFontMetrics() Returns the FontMetrics for the Font in use by the View’s Container. 23.2.8 The PasswordView Class PasswordView extends FieldView to render text using the JPasswordField’s echo character. If the component using this view is not a JPasswordField, it will not render anything. 23.2.8.1 Properties PasswordView does not modify any of the properties defined by its superclass, FieldView. The element property is set in the constructor. 23.2.8.2 Constructors public PasswordView(Element elem) Creates a new View for the given Element. 23.2.8.3 Protected Methods The only methods defined in this class are two protected methods called by FieldView’s paint() method and a third used by both of the others. As with FieldView, the x and y coordinates are view coordinates, while p0 and p1 are offsets in the Element being displayed. protected int drawEchoCharacter(Graphics g, int x, int y, char c) Draws the given character at the specified location. It returns the x-coordinate of the next character to be drawn (i.e., x plus the width of c). protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1)throws BadLocationException Draws the specified range of selected text using drawEchoCharacter() to draw each character in the component’s selected text color. If the view’s container is not a JPasswordField, nothing is drawn. protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1)throws BadLocationException Draws the specified range of unselected text, using drawEchoCharacter() to draw each character in the component’s foreground color. If the view’s container is not a JPasswordField, nothing is drawn. - 766
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Leave a Reply