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


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

How to clip child from layout manager

X-Received by 10.66.191.130 with SMTP id gy2mr1916485pac.19.1365181415659; Fri, 05 Apr 2013 10:03:35 -0700 (PDT)
X-Received by 10.182.86.168 with SMTP id q8mr280307obz.3.1365181415373; Fri, 05 Apr 2013 10:03:35 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!ok2no3802169pbb.1!news-out.google.com!q9ni26440pba.1!nntp.google.com!rn1no13126145pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.gui
Date Fri, 5 Apr 2013 10:03:34 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=130.76.32.52; posting-account=_7xgmwoAAADi7iXKBO-oX5zbCfSzsCV0
NNTP-Posting-Host 130.76.32.52
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <7a07006d-a3a8-4e09-b3a3-1cd9ee01328f@googlegroups.com> (permalink)
Subject How to clip child from layout manager
From FredK <fred.l.kleinschmidt@gmail.com>
Injection-Date Fri, 05 Apr 2013 17:03:35 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.gui:5320

Show key headers only | View raw


I have a custom layout manager.
If the Swing container that uses this manager is too small to layout
the children at preferred sizes, I want to clip one or more of them.

I do not want to set the child's size smaller than its desired size.

For example, suppose the child's desired width is 100. I want to
place it at x=250 with width = 100, but I want to clip part of it so
that the first 40 pixels are clipped. The end result will be
that its position is [250,350] but only the child's [60,100] part
is visible ( occupying the region [290,350] ).
-- 
Fred  K

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


Thread

How to clip child from layout manager FredK <fred.l.kleinschmidt@gmail.com> - 2013-04-05 10:03 -0700
  Re: How to clip child from layout manager markspace <markspace@nospam.nospam> - 2013-04-05 16:28 -0700
    Re: How to clip child from layout manager FredK <fred.l.kleinschmidt@gmail.com> - 2013-04-08 07:38 -0700
      Re: How to clip child from layout manager markspace <markspace@nospam.nospam> - 2013-04-08 10:00 -0700
  Re: How to clip child from layout manager Roedy Green <see_website@mindprod.com.invalid> - 2013-04-05 20:51 -0700
  Re: How to clip child from layout manager Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-04-08 14:08 -0700

csiph-web