public TicketMachinePanel(TicketMachine machine) { this.machine = machine; setPreferredSize(new Dimension(600, 600)); setLayout(new BorderLayout()); insert = new JTextField(); statusLabel = new JLabel("Welcome! Insert money to begin. (Press ENTER after input)"); printbutton = new JButton("Print your ticket to Console!");