AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

adding an internaljframe to a jdesktopplane using an interna

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed May 16, 2007 12:18 am    Post subject: adding an internaljframe to a jdesktopplane using an interna Reply with quote



I'm running multiple internaljFrame application, and i have a jtree to
select what internaljFrame i want to open. each frame is a class to
itself, because I'm using packages. I'm not able to get a new
internaljframe to open (more like become visible) in the jdesktopplane
of my container frame, what I'm trying at the min is using a method in
the desktopFrame called addtodesktopane() which i call in my
selectjtree.

public void addToDesktopPane(ViewDataInternalFrame aInternalFrame)
{
if(aInternalFrame == null)
{
System.out.println("Frame empty");
}
System.out.println("add to desk top check");
aInternalFrame.setLocation(30,30);
aInternalFrame.setVisible(true);
desktopPane.add(aInternalFrame);
}

Object nodeInfo = node.getUserObject();
if (node.isLeaf())
{
DesktopJFrame desktopJFrame = new DesktopJFrame();
CollumNodeInfo info = (CollumNodeInfo)nodeInfo;
ViewDataInternalFrame view = new
ViewDataInternalFrame(info.getCollumDaoCall());
//view.setLocation(30,30);
//view.setVisible(true);
desktopJFrame.addToDesktopPane(view);
}

it's really got be beat so any help is welcome
Back to top
Andrew Thompson
Guest





PostPosted: Wed May 16, 2007 7:10 am    Post subject: Re: adding an internaljframe to a jdesktopplane using an int Reply with quote



iszekeell (AT) gmail (DOT) com wrote:
...
Quote:
it's really got be beat so any help is welcome

You might get more help if you post an SSCCE* to the group.
* <http://www.physci.org/codes/sscce.html>

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200705/1
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.