Hi Folks
We need to upgrade our Java app to 1.5.0.
Everything is coded in Swing and the first user screen extends JFrame.
There is a jTextBox and a JPasswordField on the screen. Under 1.3.1
these fields functioned correctly. Under 1.5.1 there is no cursor and
the fields are effectively read only. Both fields have setEnabled set
to true.
Any ideas?
Elliot
Andrew Thompson - 25 Oct 2006 23:24 GMT
...
> We need to upgrade our Java app to 1.5.0.
No you don't. I just last night built a project intended
for Java 1.3+. After compilation against the 1.4 jar,
requesting a 1.3 class version, it runs just fine under
Java 1.5.
> Everything is coded in Swing and the first user screen extends JFrame.
>
[quoted text clipped - 4 lines]
>
> Any ideas?
Submit an code example that demonstrates this behaviour.
Andrew T.
Daniel Pitts - 26 Oct 2006 00:55 GMT
> Hi Folks
>
[quoted text clipped - 10 lines]
>
> Elliot
Without any example code, my best guess is that you're not following
the one thread model of Swing.
Make sure any methods you call on swing components are called from the
event dispatching thread.
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/SwingUtilities.html
Look at isEventDispatchingThread() and invokeLater()/invokeNow()
That's the only advice I can give with such sparse details.