An odd bug w/creating a JList

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

An odd bug w/creating a JList

Postby IanHarac » Wed Nov 21, 2007 8:29 am

Just thought people should be aware of this:
a)I created a JList object, which had the default name 'list'.
b)I changed the name to something useful, i.e, "rateList".
c)My code suddenly grew errors.

When I checked the code, I found that a call to file.list() had become a call to file.rateList(). :)

Probably a good idea to make sure the default names for Java controls aren't used as function calls as well.

I am using Designer 6.4.1
IanHarac
 
Posts: 27
Joined: Wed Jan 10, 2007 7:04 am

Re: An odd bug w/creating a JList

Postby Eric Clayberg » Thu Nov 22, 2007 7:12 am

This has been fixed in the latest build.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest