🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12284

Re: JdbNavToolBar questions

#12284
From: Chow Kwan Yu
Date: Thu, 28 Jan 1999 00:00
39 lines
1959 bytes
Hi,

I have tried many combinations of those related methods, but still
can't fix the problem.  The images go upward and the texts go
downward that parts of them go out of visible range.  Their
vertical positions simply not re-calculated...

I've already tried this piece of code.  But it doesn't work.
      navBar.setMinimumSize(new Dimension(360, 40));
      navBar.setMaximumSize(new Dimension(360, 40));
      navBar.setPreferredSize(new Dimension(360, 40));
      navBar.validate();

Matt Krevs wrote:
> 
> Try calling setMinimumSize() so that the component is never allowed to be
> too small. If this doesnt work, override getMinimumSize().
> 
> Call validate() to force a container to 'redraw' itself
> 
> Chow Kwan Yu wrote in message <36AE69E2.1E29@intellect.com.hk>...
> >Hello,
> >
> >When JdbNavToolBar is resized smaller to certain extend, it doesn't
> >re-layout itself.  The images go upward that only the lower parts of the
> >images can be seen, and the texts are squeezed to "..." only.
> >
> >I'd like to ask:
> >
> >1. how can I re-layout the internal buttons of JdbNavToolBar?
> >I tried doLayout(), updateUI(), setSize()... I still can't handle to do
> >this.
> >
> >2. how can I show only the images of buttons in a JdbNavToolBar instead
> >of images + texts?
> >
> >Thank you so much in advance.
> >
> >Chow Kwan Yu
Technical Details
Message-ID: <36B09FE9.F36@intellect.com.hk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36AE69E2.1E29@intellect.com.hk> <78lf7n$ia2@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6464852409f694f9
X-Google-Attributes: gid111d45,public
From: Chow Kwan Yu <bee@intellect.com.hk>
Subject: Re: JdbNavToolBar questions
Date: 1999/01/28
Message-ID: <36B09FE9.F36@intellect.com.hk>
X-Deja-AN: 437773193
Content-Transfer-Encoding: 7bit
References: <36AE69E2.1E29@intellect.com.hk> <78lf7n$ia2@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Intellect Technology
Mime-Version: 1.0
Reply-To: bee@intellect.com.hk
Newsgroups: borland.public.jbuilder.java.swing