|
hmm... I would think ((TextField)myJPanel.getComponent(textFieldIndex)) .setText("new text"); would work as well, butI'm not sure...
Also, try not to mix AWT components (extend Component, class names are just xxx) with Swing components (extend JComponent, class names are Jxxx). Names may not all follow the basic xxx or Jxxx pattern, but most do.
__________________
So you came along and found Java? Randomly?
Well then, you're just like me!
|