Yoav Mor
2012-12-24 12:15:11 UTC
I've been trying to add a ribbon UI to my figure GUI and I made some progress.
First, I downloaded Flamingo jar file from here:
http://www.shemnon.com/speling/
Then I did :
javaaddpath('flamingo-6.3.jar');
jR = org.pushingpixels.flamingo.api.ribbon.JRibbon();
f = figure('units','pixels');
pos = get(f,'position');
mypanel = javax.swing.JPanel(java.awt.BorderLayout);
mypanel.add(jR);
jR.setVisible(true);
[obj, hcontainer] = javacomponent(mypanel, [0,0,pos(3:4)], f);
This actually works and shows an empty ribbon...
Now I'm trying to add the actual ribbon band with the buttons and I can't seem to figure out how to do in using the Java / Matlab interface.
I found a tutorial here:
http://java.dzone.com/articles/flamingo-tutorial
If anyone could lend me a hand, I'd be very grateful...
Thanks.
Y.
First, I downloaded Flamingo jar file from here:
http://www.shemnon.com/speling/
Then I did :
javaaddpath('flamingo-6.3.jar');
jR = org.pushingpixels.flamingo.api.ribbon.JRibbon();
f = figure('units','pixels');
pos = get(f,'position');
mypanel = javax.swing.JPanel(java.awt.BorderLayout);
mypanel.add(jR);
jR.setVisible(true);
[obj, hcontainer] = javacomponent(mypanel, [0,0,pos(3:4)], f);
This actually works and shows an empty ribbon...
Now I'm trying to add the actual ribbon band with the buttons and I can't seem to figure out how to do in using the Java / Matlab interface.
I found a tutorial here:
http://java.dzone.com/articles/flamingo-tutorial
If anyone could lend me a hand, I'd be very grateful...
Thanks.
Y.