shorter text at the "missing shape" shape.

This commit is contained in:
hneemann 2017-05-26 21:51:33 +02:00
parent 99d9f5a558
commit da8e2f3d4d
2 changed files with 1 additions and 10 deletions

View File

@ -28,14 +28,7 @@ public class MissingShape implements Shape {
*/
public MissingShape(String elementName, Exception cause) {
this.message = Lang.get("msg_missingShape_N", elementName);
this.cause = getMessage(cause);
}
private String getMessage(Throwable e) {
String message = e.getMessage();
if (e.getCause() != null)
message += "; " + getMessage(e.getCause());
return message;
this.cause = cause.getMessage();
}
@Override

View File

@ -244,8 +244,6 @@ public final class EditorFactory {
protected void paintComponent(Graphics graphics) {
graphics.setColor(Color.WHITE);
graphics.fillRect(0, 0, getWidth(), getHeight());
graphics.setColor(getBackground());
graphics.fillRect(0, 0, getWidth(), getHeight());
super.paintComponent(graphics);
}
};