plot.getPlotView().setComponentZOrder(topRightCornerResetButton, 0);
plot.getPlotView().setComponentZOrder(topLeftCornerResetButton, 0);
plot.getPlotView().setComponentZOrder(bottomRightCornerResetButton, 0);
plot.getPlotView().setComponentZOrder(bottomLeftCornerResetButton, 0);
SpringLayout layout = (SpringLayout) plot.getPlotView().getLayout();
XYPlotContents contents = plot.getPlotView().getContents();
layout.putConstraint(SpringLayout.NORTH, topRightCornerResetButton, 0, SpringLayout.NORTH, contents);
layout.putConstraint(SpringLayout.EAST, topRightCornerResetButton, 0, SpringLayout.EAST, contents);
layout.putConstraint(SpringLayout.NORTH, topLeftCornerResetButton, 0, SpringLayout.NORTH, contents);
layout.putConstraint(SpringLayout.WEST, topLeftCornerResetButton, 0, SpringLayout.WEST, contents);
layout.putConstraint(SpringLayout.SOUTH, bottomRightCornerResetButton, 0, SpringLayout.SOUTH, contents);