This content has been marked as final. Show 5 replies
>It comes to a point where it is cheaper to rewrite the code using the new classes, than attempt to maintain the code using the old classes.
Maintaining some old code..>
As a completely untested interim fix (and 'acid test' as to whether a JComponent will behave as required), you might try swapping out just the Label for a JLabel. Normally it is a no-no to mix Swing and AWT, but so long as the JLabel has no tooltip, it should cause no problems (as far as I can tell without testing).
>Cool ( that did not occur to me ;). Don't forget to call ..
Well.. I guess I will use a non-editable java.awt.TextField (which works) ..>
..so it behaves like a Label. You might also try just..
>Probably a good choice.
..instead of mixing swing with awt..>
BTW those terms are Swing (a proper name) and AWT (an abbreviation).