Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Wojtek Newsgroups: comp.lang.java.programmer Subject: Scrolling invisible scroll bar Date: Thu, 25 Apr 2013 11:24:41 -0700 Organization: A noiseless patient Spider Lines: 26 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: mx05.eternal-september.org; posting-host="96cb79d4e9996f0118fe420f36ddf6f0"; logging-data="24638"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mHy1jkDECAvKHEKgrP6XMuchrzPOxJFg=" X-Newsreader: MesNews/1.08.03.00-gb Cancel-Lock: sha1:K4qnQCjL5taeQUQFiSHyYC/Cfqo= Xref: csiph.com comp.lang.java.programmer:23649 I have a table holding various values. I want to have a totals area below the table showing, well, column totals. I have created a table which holds the totals below the main table. The totals table does not have headers and the columns are aligned with the main table. However when the user sizes a column to the right or sizes the form smaller, a horizontal scroll bar appears in the main table. Moving the scroll bar shifts the columns. I want to be able to also shift the columns in the totals table, BUT I do not want a scroll bar in the totals table. In a listener, when I try to set the "selection" value on the total table's horizontal bar I get an NPE, which makes sense as there IS no horizontal bar. Is there any way to shift the columns in sync with the main table? Oh, I'm using SWT. -- Wojtek :-)