-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b27
-
generic
-
generic
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2163411 | 6u14 | Sergey Malenkov | P3 | Closed | Fixed | b02 |
The spec ( http://java.sun.com/javase/6/docs/api/javax/swing/border/TitledBorder.html#getBaseline(java.awt.Component,%20int,%20int) ) says:
Throws:
IllegalArgumentException - if width or height is < 0
For example, the following lines of code will throw nothing:
new TitledBorder("123").getBaseline( new Button(), -1, 0 );
new TitledBorder("123").getBaseline( new Component() {}, Integer.MIN_VALUE, 0 );
Throws:
IllegalArgumentException - if width or height is < 0
For example, the following lines of code will throw nothing:
new TitledBorder("123").getBaseline( new Button(), -1, 0 );
new TitledBorder("123").getBaseline( new Component() {}, Integer.MIN_VALUE, 0 );
- backported by
-
JDK-2163411 javax.swing.border.TitledBorder.getBaseline() doesn't throw IAE when width is < 0
- Closed