Skip to content

Commit

Permalink
Uni Tests AddRemove: Remove dead code ..
Browse files Browse the repository at this point in the history
  • Loading branch information
sgothel committed Feb 16, 2013
1 parent 1cee0f1 commit 87b5d10
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,6 @@ public static void initClass() {
public static void releaseClass() {
}

protected JPanel createParkingSlot(final JFrame[] top, final int width, final int height)
throws InterruptedException, InvocationTargetException
{
final JPanel[] jPanel = new JPanel[] { null };
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
jPanel[0] = new JPanel();
jPanel[0].setLayout(new BorderLayout());

final JFrame jFrame1 = new JFrame("Parking Slot");
// jFrame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jFrame1.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); // equivalent to Frame, use windowClosing event!
jFrame1.getContentPane().add(jPanel[0]);
jFrame1.setSize(width, height);

top[0] = jFrame1;
} } );
return jPanel[0];
}

protected JPanel create(final JFrame[] top, final int width, final int height, final int num)
throws InterruptedException, InvocationTargetException
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,6 @@ public static void initClass() {
public static void releaseClass() {
}

protected JPanel createParkingSlot(final JFrame[] top, final int width, final int height)
throws InterruptedException, InvocationTargetException
{
final JPanel[] jPanel = new JPanel[] { null };
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
jPanel[0] = new JPanel();
jPanel[0].setLayout(new BorderLayout());

final JFrame jFrame1 = new JFrame("Parking Slot");
// jFrame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jFrame1.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); // equivalent to Frame, use windowClosing event!
jFrame1.getContentPane().add(jPanel[0]);
jFrame1.setSize(width, height);

top[0] = jFrame1;
} } );
return jPanel[0];
}

protected JPanel create(final JFrame[] top, final int width, final int height, final int num)
throws InterruptedException, InvocationTargetException
{
Expand Down

0 comments on commit 87b5d10

Please sign in to comment.