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


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

Re: JTree within JScrollP

From "tomaszewski.p" <tomaszewski.p@THRWHITE.remove-dii-this>
Subject Re: JTree within JScrollP
Message-ID <g9d7m1$6oh$1@inews.gazeta.pl> (permalink)
Newsgroups comp.lang.java.gui
References <69535338-c5a3-4946-bf2d-a00a247e38bf@25g2000hsx.googlegroups.com>
Date 2011-04-27 15:48 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui


Uzytkownik "JSchneider" <johannes@familieschneider.info> napisal w
wiadomosci
news:69535338-c5a3-4946-bf2d-a00a247e38bf@25g2000hsx.googlegroups.com...
> Thanks for your reply, but I think I didn't explain my problem enough:
>
>
> In your example the tree is scrolled to the newly added entry:
>
>  public void treeNodesInserted(TreeModelEvent event) {
>     tree.scrollPathToVisible(event.getTreePath());
>  }
>
> but that behaviour interrupts the user. Instead it is necessary that
> the same entries are shown --> the user doesn't even recognize any
> changes...
>
> If you try this code, you will see the flickering (scrollPathToVisible
> is trickering a repaint...):
>
[...]

Hi,

  Everything looks fine in Your solution. The only thing with scrollbar is
resizing and I assume that is correct behaviour (JRE 1.6.0_7, Vista, Nvidia
GF 8400).

Przemek

---
 * 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 | NextPrevious in thread | Find similar | Unroll thread


Thread

JTree within JScrollPane: "JSchneider" <jschneider@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
  Re: JTree within JScrollP "tomaszewski.p" <tomaszewski.p@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
    Re: JTree within JScrollP "JSchneider" <jschneider@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
      Re: JTree within JScrollP "tomaszewski.p" <tomaszewski.p@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000

csiph-web