This content has been marked as final. Show 5 replies
Just as an aside, why are you coding in AWT in this day and age?
Maintaining some old code..
>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).
Well.. I guess I will use a non-editable java.awt.TextField (which works) instead of mixing swing with awt..
>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).