Xoetrope

 Wiki : XPopUpWindow

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Carousel logo

XPopUpWindow

class com.xoetrope.svg.XPopUpWindow

A pop-up window which can be added to a component to display textual information.

1. Constructor


public XPopUpWindow( int x, int y, String text )

Constructor which is passed the coordinates of where the pop-up window is to be placed within the parent component, and a String containing the textual contents of the window.

2. Methods


1. setBounds

public void setBounds( int x, int y, int width, int height )


Or

public void setBounds( Rectangle r )

Sets the bounds of the pop-up window.

2. setContent

public void setContent( String content )

Sets the text that is to be displayed by the component.

3. getContent

public void getContent()

Returns the text that is to be displayed by the component.

4. setFontSize

public void setFontSize( int fontSize )

Sets the size of the font displayed within the pop-up window.

5. setFontSize

public void getFontSize()

Returns the font size currently used by the component.

6. paintComponent

public void paintComponent( Graphics g )

Paints the pop-up window within its parent component.

There are no comments on this page. [Add comment]

Page was generated in 0.4365 seconds