private void createLabel(String message, int x, int y) {
        Insets insets = container.getInsets();
        JLabel label = new JLabel(message);
        Dimension size = label.getPreferredSize();
        label.setBounds(insets.left + x, insets.top + y,
                size.width, size.height);
        container.add(label);
    }