Package org.fest.swing.fixture
Class Containers
java.lang.Object
org.fest.swing.fixture.Containers
Understands utility methods related to
Containers.- Since:
- 1.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FrameFixtureframeFixtureFor(Container contentPane) static JFramestatic FrameFixtureshowInFrame(Container contentPane)
-
Field Details
-
CREATED_FRAME_NAME
Name of theJFrames created by this class.- See Also:
-
-
Constructor Details
-
Containers
private Containers()
-
-
Method Details
-
showInFrame
Creates a newand uses the givenJFrameas its content pane. The createdContainerJFrameis wrapped and displayed by a.FrameFixtureNote:This method creates a new
. When using this method, please do not create any additional instances ofRobotRobot. Only one instance ofRobotcan exist per test class.- Parameters:
contentPane- theContainerto use as content pane for theJFrameto create.- Returns:
- the created
FrameFixture. - See Also:
-
frameFixtureFor
Creates a newand uses the givenJFrameas its content pane. The createdContainerJFrameis 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 ofRobotRobot. Only one instance ofRobotcan exist per test class.- Parameters:
contentPane- theContainerto use as content pane for theJFrameto create.- Returns:
- the created
FrameFixture. - See Also:
-
frameFor
Creates a newand uses the givenJFrameas its content pane. The createdContainerJFramehas the name specified by. This method is executed in the Event Dispatch Thread (EDT.)CREATED_FRAME_NAME- Parameters:
contentPane- theContainerto use as content pane for theJFrameto create.- Returns:
- the created
JFrame.
-