Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: FEST-Swing 1.1
-
Fix Version/s: FEST-Swing 1.2a1
-
Component/s: Swing
-
Labels:None
-
Number of attachments :
Description
From Hayden Shorter:
Thanks for the great project ![]()
To test my JPanel in isolation I need to put them in a frame to make them "showing" with the following code:
/**
* Creates a frame to show the provided panel.
*
* @param panel
* @param robot
* @throws java.awt.HeadlessException
*/
private void showPanel(final JPanel panel, Robot robot) throws
HeadlessException {
Frame app = new Frame();
app.setSize(panel.getSize());
app.add(panel);
FrameFixture frame = new FrameFixture(robot, app);
frame.show();
}
It's not appropriate for me to start the whole frame as there are a number of panels and dependencies. It would be good if the FEST-Swing API allowed something like the above. I'm sure there are a number of components this applies to, not just JPanels.
Original report: Issue 296 (Google Code)