mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 22:41:59 -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) {
|
public MissingShape(String elementName, Exception cause) {
|
||||||
this.message = Lang.get("msg_missingShape_N", elementName);
|
this.message = Lang.get("msg_missingShape_N", elementName);
|
||||||
this.cause = getMessage(cause);
|
this.cause = cause.getMessage();
|
||||||
}
|
|
||||||
|
|
||||||
private String getMessage(Throwable e) {
|
|
||||||
String message = e.getMessage();
|
|
||||||
if (e.getCause() != null)
|
|
||||||
message += "; " + getMessage(e.getCause());
|
|
||||||
return message;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -244,8 +244,6 @@ public final class EditorFactory {
|
|||||||
protected void paintComponent(Graphics graphics) {
|
protected void paintComponent(Graphics graphics) {
|
||||||
graphics.setColor(Color.WHITE);
|
graphics.setColor(Color.WHITE);
|
||||||
graphics.fillRect(0, 0, getWidth(), getHeight());
|
graphics.fillRect(0, 0, getWidth(), getHeight());
|
||||||
graphics.setColor(getBackground());
|
|
||||||
graphics.fillRect(0, 0, getWidth(), getHeight());
|
|
||||||
super.paintComponent(graphics);
|
super.paintComponent(graphics);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user