5758596061626364656667
JButton remove = new JButton("-"); remove.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent event) { stack.pop(); } } ); JScrollPane scroll = new JScrollPane(stack);