Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: add a uicontainer or uipanel to a JPanel
Date: Fri, 10 Aug 2007 11:45:34 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 64
Message-ID: <f9hj4u$2ck$1@fred.mathworks.com>
References: <f9fvpk$t63$1@fred.mathworks.com> <f9hcmr$dhk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186746334 2452 172.30.248.36 (10 Aug 2007 11:45:34 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 10 Aug 2007 11:45:34 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1077063
Xref: news.mathworks.com comp.soft-sys.matlab:423361



Hi Arwel,

I thought as much.  I saw your original posting and Yair
Altman's comments and was hoping to do something similar. 
I'm sure this must be possible but it's starting to feel
akin to banging my head against a brick wall.

Going down the Java route for plotting isn't something I
really want to do as MATLAB is so good at this.  I'm just
disappointed that I will have to resort to creating a
"second class" GUI.

Thank you very much for your reply and I agree that this
would be very useful to a lot of people.

Kind Regards

Andrew


"Arwel Hughes" <a.v.hughes@rl.ac.uk> wrote in message
<f9hcmr$dhk$1@fred.mathworks.com>...
> Hi Andrew,
> I've tried this too but got nowhere. It really does look 
> like the matlab graphics are in some sort of Java 
> containers (you can see this by running Yair Altman's find 
> Obj 
> http://www.mathworks.com/matlabcentral/fileexchange/loadFile
> .do?objectId=14317&objectType=file)
> But they seem to be weird Mathworks wrappers for the java 
> objects rather than the 'real' thing. My hope was that I 
> could plot a Matlab graph (hidden), and then just grab the 
> relevant content pane and put that in a java frame. But I 
> got nowhere unfortunately. 
> I'm currently resorting to doing all the plotting in Java 
> (using JFreeChart), which isn't quite as nice.
> If you do find out how to do this, it would be very useful 
> for lots of people I think.
> Cheers
> Arwel 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> "Andrew Watson" <andruwatson@yahoo.co.uk> wrote in message 
> <f9fvpk$t63$1@fred.mathworks.com>...
> > I would like to add either a uipanel or uicontainer that 
> has
> > MATLAB graphics children to a JPanel.  After an evening of
> > playing around with this but to no avail I thought I'd 
> open
> > it up to a wider audience.  Any suggestions would be very
> > much appreciated.
> > 
> > Thanks in advance
> > 
> > Andrew
>