Path: news.mathworks.com!not-for-mail
From: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Enlarging size of toolbars
Date: Fri, 29 Feb 2008 15:14:02 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 35
Message-ID: <fq97fq$old$1@fred.mathworks.com>
References: <31128702.1203057471171.JavaMail.jakarta@nitrogen.mathforum.org> <fq4pih$s8e$1@fred.mathworks.com> <fq7mco$9tb$1@fred.mathworks.com>
Reply-To: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1204298042 25261 172.30.248.37 (29 Feb 2008 15:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 29 Feb 2008 15:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:454565


"Andrea Tagliasacchi" <ata2@nospam.cs.sfu.ca> wrote 
> [....]
> 
> Hello Yair, you described to me two solutions, the first
> accessing the java structure behind uipushtool, the second
> adding directly JComponents into the toolbar.
> 
> Are both of them undocumented (thus unreliable) or adding
> objects to jToolbar is a somehow safer solution? Also, this
> would work only in recent MATLAB releases if I am not wrong,
> since when the standard GUI has been implemented in JAVA,
right?
> 
> Thanks, 
> Andrea

Undocumented does NOT necessarily mean unreliable - it
simply means that you cannot expect it to be bug-free, nor
to be maintained in a future Matlab version (although it
might). As long as it works in your specific Matlab
installation and you don't need to worry about distribution
to clients etc., then it shouldn't worry you.

Java has been around since Matlab 6, ages ago. The best way
to check your specific case is to type the commands I
specified into your Command Window - if it works then you're
all set. That's all there is to it - no need for any paranoia...

Finally, you're mixing things up: My entire post uses the
undocumented jToolbar - using JComponents is simply a
variation of the basic solution that I presented. If you're
not proficient in Java then the variation is probably not
for you.

Yair