IllegalArgumentException: illegal component position

  • Share
  • Share

Applies to:


Description:
A runtime error that occurs when the argument passed is invalid.

Cause:
The argument might be placed in the incorrect set of parenthesis.

JAVA-API , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

  1. admin
    March 9th, 2009 at 18:22 | #1

    Make sure that you passed valid arguments. An example of an invalid argument is as follows:
    panel.add(new JLabel(“Losses:”), JLabel.RIGHT);
    where “JLabel.RIGHT” is an invalid second argument.

  1. No trackbacks yet.