JDK-4303490 : Collections interface for JDesktopPane
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.2
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_98
  • CPU: x86
  • Submitted: 2000-01-10
  • Updated: 2001-07-10
  • Resolved: 2001-07-10
Related Reports
Duplicate :  
Description

Name: mc57594			Date: 01/09/2000


java version "1.2.2"
Classic VM (build JDK-1.2.2-W, native threads, symcjit)

Currently JDesktopPane, or rather Container needs to be retroffited to have the
collections interface because for example, lets say I subclass JInternalFrame
and I add these subclassed frames to the desktop.  Well, in order to search the
desktop I have to retrieve all the frames, and then lets say search for a
specific title.  Well, once I've found the the frame I want, retreiving them
all and then upcasting back to my subclassed JInternalFrame will not work.

Actually, there are multiple areas of Swing that would benefit from a similar
retroffiting.  Once that comes to mind quickly is JList and its relationship to
the Vector class.
(Review ID: 99753) 
======================================================================

Comments
WORK AROUND Name: mc57594 Date: 01/09/2000 Implement a secondary ArrayList for the frames, or any other workable collection. ======================================================================
11-06-2004

EVALUATION A more general variant of this is logged as 4304287, which I'm closing this as a duplicate of. scott.violet@eng 2001-07-10
10-07-2001