Menu

#2 JNamedTag lacks of a toString() method

v1.0 (example)
closed
nobody
None
5
2016-03-10
2010-01-15
Anonymous
No

Version swingstates_0.2_08_04_16
The JNamedTag label displayed in the StateMachineVisualization component is the result of the default Object toString() Method (wich is not that usefull).
It could be interesting to override the toString() method to make it return the name of the tag ?
Look for the QuinzeFrame.java in the attached zip and uncomment the following override to see the problem :

private JNamedTag clickableNumbers = new JNamedTag("clickableNumber"){
@Override
public String toString() {
return super.getName();
}
};

Discussion

  • Nobody/Anonymous

    zipped source files

     
  • Caroline Appert

    Caroline Appert - 2016-03-10

    Thank you. Fixed it.

     
  • Caroline Appert

    Caroline Appert - 2016-03-10
    • status: open --> closed
    • Group: --> v1.0 (example)
     

Log in to post a comment.

MongoDB Logo MongoDB