 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed May 16, 2007 12:18 am Post subject: adding an internaljframe to a jdesktopplane using an interna |
|
|
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
|
Posted: Wed May 16, 2007 7:10 am Post subject: Re: adding an internaljframe to a jdesktopplane using an int |
|
|
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 |
|
 |
|
|
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
|
|