Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / October 2006

Tip: Looking for answers? Try searching our database.

Ugrading jFrame from jkd 1.3.1 to 1.5.0

Thread view: 
eselick@gmail.com - 25 Oct 2006 21:07 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.