[Jscroll-user] getDesktopPane()
Brought to you by:
tom_tessier
|
From: Hugh S. <hfs...@op...> - 2003-07-13 22:44:14
|
I am trying to use JScrollDesktopPane as a replacement for JDeskTopPane for
all the reasons mentioned. However JInternalFrame provides a method
getDesktopPane described in the API as "Convenience method that searches the
ancestor hierarchy for a JDesktop instance." How can I obtain a reference to
JScrollDesktopPane to replicate that method? Here's an example of a method I
call from one of my JInternalFrame objects:
protected void createCampaignFrame(){
Campaign campy = new Campaign();
campy.setClientId(getClientId());
CampaignFrame cf = new CampaignFrame(navSource, campy);
this.getDesktopPane().add(cf);
cf.setVisible(true);
try{
cf.setSelected(true);
}catch (PropertyVetoException e){
e.printStackTrace();
}
}
Thanks for any suggestions
Hugh Scully
Senior Software Engineer - Principal
Beacon Software LLC
hs...@be...
http://www.beaconsoftware.net
|