Previous ION Java User's Guide: ION Java Class and Method Reference Next

createWindow()

The createWindow() method creates a drawing area of the given size, places that area in its own window frame, make the window the current destination for graphics output and returns the IDL window index of the new window. If a title is not specified, the default IDL windowing convention is used (IDL 0, IDL 1, ...).

Syntax

public int createWindow(int xsize, int ysize)

public int createWindow(int xsize, int ysize, String title)

public int createWindow(int index, int xsize, int ysize)

public int createWindow(int index, int xsize, int ysize, String title)

public int createWindow(int index, int xsize, int ysize, int xpos, int ypos, String title)

Return Value

This method returns the IDL window index of the newly created window.

Arguments

xsize

The width in pixels of the window to be created

ysize

The height in pixels of the window to be created

title

The title of the window to be created

index

The desired IDL window index of the window

Exceptions

None

Example

IONWindowingClient ionWin = New IONWindowingClient();  
int index = ionWin.createWindow( xsize, ysize, title);  

For another detailed example, see the window.java example located in the examples/src directory.

  IDL Online Help (March 06, 2007)