import javax.swing.JFrame; //导入方法依赖的package包/类
public Instructions(JFrame f, int frameBoundX, int frameBoundY) {
// Font
InputStream is = Menu.class.getResourceAsStream("Cheap Potatoes.ttf");
try {
font = Font.createFont(Font.TRUETYPE_FONT, is);
} catch (FontFormatException | IOException e1) {
// TODO Auto-generated catch
// block
e1.printStackTrace();
}
//Main Panel of Instructions Section created here
JPanel instrPanel = new JPanel();
instrPanel.setLayout(null);
setBounds(0,0,frameBoundX, frameBoundY);
//Logo
JLabel logoLabel = new JLabel("GEOTRIX", SwingConstants.CENTER);
sizedFont = font.deriveFont(68f);
logoLabel.setFont(sizedFont);
logoLabel.setBounds(frameBoundX / 2 - 200, (frameBoundY-520)/ 2, 400, 190);
JBu