Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1626

adding an internaljframe

From "iszekeell" <iszekeell@THRWHITE.remove-dii-this>
Subject adding an internaljframe
Message-ID <1179256714.968331.221050@w5g2000hsg.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:34 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar | Unroll thread


Thread

adding an internaljframe "iszekeell" <iszekeell@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
  Re: adding an internaljfr "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000

csiph-web