Package org.fest.swing.fixture
Class Containers
java.lang.Object
org.fest.swing.fixture.Containers
Understands utility methods related to
Container
s.- Since:
- 1.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FrameFixture
frameFixtureFor
(Container contentPane) static JFrame
static FrameFixture
showInFrame
(Container contentPane)
-
Field Details
-
CREATED_FRAME_NAME
Name of theJFrame
s created by this class.- See Also:
-
-
Constructor Details
-
Containers
private Containers()
-
-
Method Details
-
showInFrame
Creates a new
and uses the givenJFrame
as its content pane. The createdContainer
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 ofRobot
Robot
. Only one instance ofRobot
can exist per test class.- Parameters:
contentPane
- theContainer
to use as content pane for theJFrame
to create.- Returns:
- the created
FrameFixture
. - See Also:
-
frameFixtureFor
Creates a new
and uses the givenJFrame
as its content pane. The createdContainer
JFrame
is wrapped by a
. UnlikeFrameFixture
, this method does not display the createdshowInFrame(Container)
JFrame
.Note:This method creates a new
. When using this method, please do not create any additional instances ofRobot
Robot
. Only one instance ofRobot
can exist per test class.- Parameters:
contentPane
- theContainer
to use as content pane for theJFrame
to create.- Returns:
- the created
FrameFixture
. - See Also:
-
frameFor
Creates a new
and uses the givenJFrame
as its content pane. The createdContainer
JFrame
has the name specified by
. This method is executed in the Event Dispatch Thread (EDT.)CREATED_FRAME_NAME
- Parameters:
contentPane
- theContainer
to use as content pane for theJFrame
to create.- Returns:
- the created
JFrame
.
-