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


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

SWT maximum size

From "adam.hinz" <adam.hinz@THRWHITE.remove-dii-this>
Subject SWT maximum size
Message-ID <1180969526.519926.198840@h2g2000hsg.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:35 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
I'm writing a layout manager for SWT, and I was wondering if there's a
nice way to set the maximum size of a shell.  Shells have the method
setMinimumSize(), but no corresponding one for maximum size.

In the layout manager's layout() method, I can check the size of the
component, and if it's too big I can call setSize() on that
component.  I'm wondering anyone knows a better way to do this?

-adam

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

SWT maximum size "adam.hinz" <adam.hinz@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
  Re: SWT maximum size "IchBin" <ichbin@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
    Re: SWT maximum size "adam.hinz" <adam.hinz@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000

csiph-web