datazuul / yoyoplayer

Automatically exported from code.google.com/p/yoyoplayer
0 stars 1 forks source link

i can't use by en version fedora10 #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. my system is fedora10 ,languages :en
2. when type :java -jar YOYOPlayer.jar 
3. display the following errors

Exception in thread "main" java.lang.NullPointerException
    at com.hadeslee.yoyoplayer.player.ui.Main.setLocation(Main.java:577)
    at java.awt.Window.init(Window.java:404)
    at java.awt.Window.<init>(Window.java:438)
    at java.awt.Frame.<init>(Frame.java:419)
    at java.awt.Frame.<init>(Frame.java:384)
    at javax.swing.JFrame.<init>(JFrame.java:180)
    at com.hadeslee.yoyoplayer.player.ui.Main.<init>(Main.java:68)
    at com.hadeslee.yoyoplayer.player.ui.Main.main(Main.java:86)

Original issue reported on code.google.com by suziwen1@gmail.com on 3 Aug 2009 at 2:52

GoogleCodeExporter commented 9 years ago
oh , sorry i forget chmod.......

but ,i found the new problem...
信息: 初始化的isNormal:true
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
javax/swing/JList$DropLocation
    at com.hadeslee.yoyoplayer.playlist.PlayListUI.initDragList(PlayListUI.java:274)
    at com.hadeslee.yoyoplayer.playlist.PlayListUI.initUI(PlayListUI.java:204)
    at com.hadeslee.yoyoplayer.playlist.PlayListUI.loadUI(PlayListUI.java:156)
    at com.hadeslee.yoyoplayer.player.ui.Main.loadUI(Main.java:176)
    at com.hadeslee.yoyoplayer.player.ui.Main$1.run(Main.java:90)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Original comment by suziwen1@gmail.com on 3 Aug 2009 at 3:36

GoogleCodeExporter commented 9 years ago
oh ,JDK1。6。。。。

Original comment by suziwen1@gmail.com on 3 Aug 2009 at 3:39

GoogleCodeExporter commented 9 years ago
使用1。6就报第一个错。。。。。

Original comment by suziwen1@gmail.com on 3 Aug 2009 at 3:46

GoogleCodeExporter commented 9 years ago
更新最新的JDK1.6才能正常运行,不过在英文版的FEDORA10上不能
正确显示文字

Original comment by suziwen1@gmail.com on 4 Aug 2009 at 3:33

GoogleCodeExporter commented 9 years ago
中文版的FEDORA也不能正确显示文字

Original comment by suziwen1@gmail.com on 4 Aug 2009 at 3:38

GoogleCodeExporter commented 9 years ago
可能也是字体文件缺失的问题,我以后会尝试自带一个字体��
�件,以防止在各个不同的系统上字
体映射出问题的情况
问一下,你用JAVA运行别的有中文的程序,中文显示会正常吗�
��

Original comment by hadeslee...@gmail.com on 5 Aug 2009 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by hadeslee...@gmail.com on 6 Aug 2009 at 4:00

GoogleCodeExporter commented 9 years ago
Index: com/hadeslee/yoyoplayer/player/ui/Main.java
===================================================================
--- com/hadeslee/yoyoplayer/player/ui/Main.java (版本 60)
+++ com/hadeslee/yoyoplayer/player/ui/Main.java (工作副本)
@@ -574,13 +574,13 @@
                 plWin.setLocation(now.x + dis.x, now.y + dis.y);
             }
         }
-        if (eqWin != null && (config.isSnapEqWindow()) || !eqWin.isShowing()) {
+        if (eqWin != null && (config.isSnapEqWindow() || !eqWin.isShowing())) {
             Point dis = config.getDisEq();
             if (dis != null) {
                 eqWin.setLocation(now.x + dis.x, now.y + dis.y);
             }
         }
-        if (lrcWin != null && (config.isSnapLrcWindow()) || 
!lrcWin.isShowing()) {
+        if (lrcWin != null && (config.isSnapLrcWindow() || 
!lrcWin.isShowing())) {
             Point dis = config.getDisLrc();
             if (dis != null) {
                 lrcWin.setLocation(now.x + dis.x, now.y + dis.y);

Original comment by zhoushu...@gmail.com on 5 Mar 2010 at 6:58

GoogleCodeExporter commented 9 years ago
这个bug不是字体问题,是coding的时候笔误,括号写错位置了��
�具体参见上一comment的patch。
我也是昨天才下载这个玩的,打开直接NPE,这个笔误直接导��
�启动不起来。

Original comment by zhoushu...@gmail.com on 5 Mar 2010 at 7:37

GoogleCodeExporter commented 9 years ago
恩,我的也有这个问题,在win下面

Original comment by wangchao...@gmail.com on 28 Aug 2010 at 6:40

GoogleCodeExporter commented 9 years ago
但是我是刚刚check out 
的最新版本,不知道为啥也不行,版本62,已经有了楼上的pat
ch

Original comment by wangchao...@gmail.com on 28 Aug 2010 at 6:47

GoogleCodeExporter commented 9 years ago
9楼是对的,是config为Null引发的问题,但是不知道为啥trunk里�
��还是没有修正。。。

Original comment by wangchao...@gmail.com on 28 Aug 2010 at 6:55