Panel btnPanel = new Panel();
btnPanel.setLayout(new GridLayout(commands.size(), 1));
for (int i = 0; i < commands.size(); i++) {
Command command = (Command) commands.get(i);
Button btn = new Button(command.getDescription());
command.setExecuter(this);
btn.addKeyListener(command);
btn.addActionListener(command);
btnPanel.add(btn);
}