Re: Ugrading jFrame from jkd 1.3.1 to 1.5.0
- From: "Daniel Pitts" <googlegroupie@xxxxxxxxxxxxx>
- Date: 25 Oct 2006 16:55:03 -0700
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.
.
- References:
- Ugrading jFrame from jkd 1.3.1 to 1.5.0
- From: eselick
- Ugrading jFrame from jkd 1.3.1 to 1.5.0
- Prev by Date: Re: Ugrading jFrame from jkd 1.3.1 to 1.5.0
- Next by Date: Re: JOptionPane and the EDT
- Previous by thread: Re: Ugrading jFrame from jkd 1.3.1 to 1.5.0
- Next by thread: JTable cell editor question
- Index(es):
Relevant Pages
|
|