New to Jgo, While trying to override JGoText.doStartEdit as following, compile error because JGoTextEdit.getComponent is undefined. Do I miss something or this is no longer supported?
public void doStartEdit(JGoView view, Point vc) {
super.doStartEdit(view, vc);
JGoTextEdit edit = view.getEditControl();
if (edit != null) {
JComponent comp = edit.getComponent(view);
if (comp != null && comp instanceof JTextField) {
JTextField jtext = (JTextField)comp;
jtext.setColumns(40);
}
}
}
super.doStartEdit(view, vc);
JGoTextEdit edit = view.getEditControl();
if (edit != null) {
JComponent comp = edit.getComponent(view);
if (comp != null && comp instanceof JTextField) {
JTextField jtext = (JTextField)comp;
jtext.setColumns(40);
}
}
}