Thread Subject: Conflict between java component and FaceAlpha object

Subject: Conflict between java component and FaceAlpha object

From: Huy

Date: 28 Nov, 2007 11:59:14

Message: 1 of 1

I make one figure with one java component and an axes
contain the 'fill' object.
If we adjust the property 'FaceAlpha' of fill object, then
delete this object in the command window, the java
component will be disappeared.

I want to find the reason and how to solve this error.

Here is m file generating the figure.
%%%%%
fig = figure;
pos_jcolor_alpha = [0,0,200,400];
[jcolor, jcolorhdl] =
javacomponent(javax.swing.JColorChooser,pos_jcolor_alpha,fig);
set(jcolorhdl,'HandleVisibility','off');

%%
pos_jcolor_alpha = [200 0 400 500];
ha = axes('parent',fig,'units','pixel',...
    'position',pos_jcolor_alpha);hold on;

%%
im = imread('cameraman.tif');
imshow(im)
hf = fill([0 0 100 100],[0 100 100 80],'y');
set(hf,'FaceAlpha',.2)

%%


And typing this line in the command window

delete(hf)

The error will occur on JColorChooser component.


Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
java component Anh Huy Phan 28 Nov, 2007 07:00:24
facealpha Anh Huy Phan 28 Nov, 2007 07:00:24
fill Anh Huy Phan 28 Nov, 2007 07:00:24
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com