Rank: 26207 based on downloads (last 30 days) and 0 files submitted
Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Martin View all
Updated File Comments Rating
22 Apr 2009 UISplitPane - Split a container (figure/frame/uipanel) into two resizable sub-containers Split a container (figure/frame/uipanel) into two resizable sub-containers, like Java's JSplitPane Author: Yair Altman

Hello, I found the following JAVA exception if the divider is dregged using the right mouse button after button release:

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: com.mathworks.hg.peer.HGPanel cannot be cast to javax.swing.JComponent
at javax.swing.plaf.basic.BasicLookAndFeel$AWTEventHelper.eventDispatched(Unknown Source)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit.notifyAWTEventListeners(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

I use R2008b.
Martin

22 Apr 2009 UISplitPane - Split a container (figure/frame/uipanel) into two resizable sub-containers Split a container (figure/frame/uipanel) into two resizable sub-containers, like Java's JSplitPane Author: Yair Altman

Sorry, it is in R2008b ...

22 Apr 2009 SYSTRAY - set/get system-tray icons on your computer's desktop sets icons in the system-tray of your computer's desktop & enables setting/getting icon properties Author: Yair Altman

Hello Yair, as your other submissions this one is very nice too. Unfortunately if I click the systray icon in MATLAB R2008b (Java 1.6.0_04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode) there is an exception. With MATLAB R2008a everything works excellent.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.mwswing.desk.DTDocumentBar.wantsToHandle(DTDocumentBar.java:1215)
at com.mathworks.mwswing.desk.DTSelectionManager.eventDispatched(DTSelectionManager.java:291)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Unknown Source)
at java.awt.Toolkit.notifyAWTEventListeners(Unknown Source)
at java.awt.TrayIcon.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Perhaps are you able to fix this so that I am able to use systray.m.

With kind regards
Martin

 

MATLAB Central Terms of Use

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 Terms prior to use.

Contact us at files@mathworks.com