WIP161202

thobaben_diagram
Harald Wolff 2016-12-02 09:17:14 +01:00
parent 74a3486a84
commit c9d8f46f15
4 changed files with 14 additions and 2 deletions

View File

@ -229,7 +229,7 @@ public class TableMapper extends AbstractTableModel
{
Object v = fetchValue(instance);
if (v.getClass().isArray() && (extractField != null)){
if ((v!=null) && v.getClass().isArray() && (extractField != null)){
v = ((Object[])v)[extractField];
}

View File

@ -0,0 +1,11 @@
package org.hwo.ui;
import java.awt.Component;
public interface EditorComponent {
public Component asComponent();
public void setEditorValue(Object value);
public Object getEditorValue();
}

View File

@ -55,6 +55,7 @@ public class KeyStrokeHelper {
else
focused = JComponent.WHEN_FOCUSED;
component.registerKeyboardAction(new KeyStrokeActionListener(keyCode), KeyStroke.getKeyStroke(keyCode, 0), focused);
return this;
}

View File

@ -43,7 +43,7 @@ public class SimplePlotLabeler implements PlotLabeler {
);
} else if (digits == 0){
return String.format("%1.2f",value);
} else if (digits > 0){
} else {
return String.format(
String.format("%%%d.2f",digits),
value