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


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

How to know when does a J

From lichuan.nj@gmail.com.remove-dii-this
Subject How to know when does a J
Message-ID <1178876544.944041.88940@q75g2000hsh.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
Hello everyone, I would like to ask something.

I have few tabs, each contains a JTree in a JPanel to display a
(large) hierarchy. When I give the menu command to populate the trees
from an external file, I want only that tree in the currently visible
tab to be built. And when I switch to another tab later, it will does
the delayed instantiation.

The question is how can I get the visibility of a JTree contain in a
JPanel? isVisible, isShown on JTree seem not working. What is it the
semantics of isVisible, isShown for components in a tab? Yes I can
detect the visibility of the container JPanel insterd, but it breaks
in the boundary of several components in my program...

Thanks a lot in advance!

Chuan Li

---
 * 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

How to know when does a J lichuan.nj@gmail.com.remove-dii-this - 2011-04-27 15:34 +0000
  Re: How to know when does "visionset" <visionset@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
  Re: How to know when does "bcr666" <bcr666@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
    Re: How to know when does lichuan.nj@gmail.com.remove-dii-this - 2011-04-27 15:34 +0000

csiph-web