Modifier and Type | Field and Description |
---|---|
static String |
CREATED_FRAME_NAME
Name of the
JFrame s created by this class. |
Modifier and Type | Method and Description |
---|---|
static FrameFixture |
frameFixtureFor(Container contentPane)
|
static JFrame |
frameFor(Container contentPane)
|
static FrameFixture |
showInFrame(Container contentPane)
|
public static final String CREATED_FRAME_NAME
JFrame
s created by this class.@RunsInEDT public static FrameFixture showInFrame(Container contentPane)
JFrame
and uses the given Container
as its content pane.
The created JFrame
is wrapped and displayed by a FrameFixture
.
Note:This method creates a new
. When using this method, please do not
create any additional instances of Robot
Robot
. Only one instance of Robot
can exist per
test class.
contentPane
- the Container
to use as content pane for the JFrame
to create.FrameFixture
.frameFor(Container)
@RunsInEDT public static FrameFixture frameFixtureFor(Container contentPane)
JFrame
and uses the given Container
as its content pane.
The created JFrame
is wrapped by a FrameFixture
. Unlike
showInFrame(Container)
, this method does not display the created
JFrame
.
Note:This method creates a new
. When using this method, please do not
create any additional instances of Robot
Robot
. Only one instance of Robot
can exist per
test class.
contentPane
- the Container
to use as content pane for the JFrame
to create.FrameFixture
.frameFor(Container)
@RunsInEDT public static JFrame frameFor(Container contentPane)
JFrame
and uses the given Container
as its content pane.
The created JFrame
has the name specified by CREATED_FRAME_NAME
. This method
is executed in the Event Dispatch Thread (EDT.)contentPane
- the Container
to use as content pane for the JFrame
to create.JFrame
.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.