NITPICKING: show() is deprecated

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

NITPICKING: show() is deprecated

Postby kleist » Fri Aug 13, 2004 4:58 am

Dear all,

I'm a bit curious about the call to show() in main() of JFrames created by Swing Designer 2.0.0 (also in 2.0.1 from 2004-08-07).

Is this just an omission, or are there compatibility issues involved?!?
Karl Johan Kleist
Systems Analyst, Kleist IT Consulting, Sweden
kleist
 
Posts: 5
Joined: Fri Aug 13, 2004 2:43 am
Location: Trelleborg, Sweden

Re: NITPICKING: show() is deprecated

Postby Eric Clayberg » Fri Aug 13, 2004 8:23 am

kleist wrote:I'm a bit curious about the call to show() in main() of JFrames created by Swing Designer 2.0.0 (also in 2.0.1 from 2004-08-07).
Is this just an omission, or are there compatibility issues involved?!?

When and in whoch version of Java is show() deprecated? What is the alternative? Keep in mind that we need to generate code that will work in JDK 1.3 and on.
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

Postby kleist » Fri Aug 13, 2004 8:34 am

Uh oh: Sorry for not having checked this better. Depreciation occurred in 1.5 (or rather will occur, and the release will be named 5.0 eh?).

But I'm pretty sure that setVisible(true) is equivalent also in 1.3.
Karl Johan Kleist
Systems Analyst, Kleist IT Consulting, Sweden
kleist
 
Posts: 5
Joined: Fri Aug 13, 2004 2:43 am
Location: Trelleborg, Sweden

Postby Eric Clayberg » Fri Aug 13, 2004 11:43 am

kleist wrote:But I'm pretty sure that setVisible(true) is equivalent also in 1.3.

OK. We can use setVisible(true) instead (Designer itself doesn't care).
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: Google [Bot] and 1 guest