Re: Ugrading jFrame from jkd 1.3.1 to 1.5.0




eselick@xxxxxxxxx wrote:
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

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.

.



Relevant Pages

  • Ugrading jFrame from jkd 1.3.1 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. ...
    (comp.lang.java.gui)
  • Re: danger JLabel.settext() in another thread
    ... > I was wondering how dangerous calling JLabel.setText from a thread ... > other than the event dispatching thread. ... It's illegal because it will eventually conflict with whatever Swing is ... symptoms depend strongly on the timing within the virtual machine, ...
    (comp.lang.java.programmer)