|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
最近在打开matlab的时候有时会出现如下代码:
Using Toolbox Path Cache. Type "help toolbox_path_cache" for more info.
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Number of bits must be > 0
at java.awt.image.ColorModel.<init>(Unknown Source)
at java.awt.image.PackedColorModel.<init>(Unknown Source)
at java.awt.image.DirectColorModel.<init>(Unknown Source)
at sun.awt.Win32GraphicsConfig.makeColorModel(Native Method)
at sun.awt.Win32GraphicsConfig.getColorModel(Unknown Source)
at sun.awt.windows.WComponentPeer.getColorModel(Unknown Source)
at sun.awt.windows.WGraphics.getDeviceColorModel(Unknown Source)
at sun.awt.windows.WGraphics.lock(Unknown Source)
at sun.java2d.loops.LockableRaster.<init>(Unknown Source)
at sun.java2d.loops.RasterOutputManager.drawString(Unknown Source)
at sun.java2d.pipe.ValidatePipe.drawString(Unknown Source)
at sun.java2d.SunGraphics2D.drawString(Unknown Source)
at com.mathworks.mwt.decorations.WindowsXPDecorations.drawLabel(WindowsXPDecorations.java:410)
at com.mathworks.mwt.decorations.WindowsXPDecorations.drawButtonLabel(WindowsXPDecorations.java:397)
at com.mathworks.mwt.decorations.Decorations.drawButtonLabel(Decorations.java:367)
at com.mathworks.mwt.MWButton.drawButton(MWButton.java:1986)
at com.mathworks.mwt.MWButton.paint(MWButton.java:1803)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:307)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:336)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:307)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:336)
at com.mathworks.mwt.MWToolbar.paint(MWToolbar.java:539)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:307)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:336)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWFrame.paint(MWFrame.java:1235)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Number of bits must be > 0
at java.awt.image.ColorModel.<init>(Unknown Source)
at java.awt.image.PackedColorModel.<init>(Unknown Source)
at java.awt.image.DirectColorModel.<init>(Unknown Source)
at sun.awt.Win32GraphicsConfig.makeColorModel(Native Method)
at sun.awt.Win32GraphicsConfig.getColorModel(Unknown Source)
at sun.awt.Win32GraphicsConfig.getColorModel(Unknown Source)
at sun.awt.windows.WComponentPeer.getColorModel(Unknown Source)
at sun.awt.windows.WComponentPeer.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at com.mathworks.mwt.text.MWTextView$TextCanvas.paint(MWTextView.java:6731)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.text.MWTextView.paint(MWTextView.java:3166)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.text.MWTextComponent.paint(MWTextComponent.java:736)
at com.mathworks.mwt.MWTextField.paint(MWTextField.java:309)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:307)
at com.mathworks.mwt.MWCombobox.bufferedPaint(MWCombobox.java:728)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:336)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:307)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:336)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:307)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:336)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:307)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:336)
at com.mathworks.mwt.MWToolbar.paint(MWToolbar.java:539)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:307)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:336)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWFrame.paint(MWFrame.java:1235)
at com.mathworks.mwt.MWFrame.update(MWFrame.java:1323)
at com.mathworks.ide.desktop.DTExternalFrame.update(DTExternalFrame.java:551)
at sun.awt.RepaintArea.update(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
并且字体显示不正常
如果是电脑开机后直接使用就不会有这个问题 |
|