mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-25 22:18:48 -04:00
shorter text at the "missing shape" shape.
This commit is contained in:
parent
99d9f5a558
commit
da8e2f3d4d
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user