摇摆工作在不同平台不同 [英] Swing Works different on different Platform

查看:241
本文介绍了摇摆工作在不同平台不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用屏幕录制的Java Swing Xuggler 5.4 。我已经在Windows 8 64位开发它。它适用于Windows的工作非常好。但在Linux环境客户端,没有什么工作。我已经彻底搜查,但没有得到任何解决方案。我已经检查这个<一个href=\"http://stackoverflow.com/questions/2662740/why-java-swing-behaves-different-on-different-systems\">thread ,但它并没有为我工作。

I have made a Screen Recorder using Java Swing and Xuggler 5.4. I have developed it in Windows 8 64 bit. It's working excellent for Windows. But at client side on Linux's environment , nothing is working. I have searched thoroughly but not getting any solutions. I have checked this thread , but it didn't work for me.

然后我试图在Linux中创建简单的透明窗口,但它也不能正常工作。我是不是能够通过调整大小面板点击。我已经使用了相同的 JRE版本(1.7)两种。有我想念尽可能摇摆而言了解Java的跨平台支持?
请给我一些建议...

Then I tried to create simple Transparent window in Linux but it's also not working. I was not able to click through the Resizeable Panel. I have used the same JRE version (1.7) for both. Have I miss understood Java's Cross Platform Support as far as Swing is concerned? Please Give Me Some Advice...

推荐答案

我一直觉得日志记录,以随时为您最好的调试工具!很多时候,java的调试器带你进入的API,你不必去每一次。记录你的变量值,以及通用的'我已经达到了,直到这一点的陈述让生活轻松了许多。

I have always found logging to be the best debugging tool at your disposal! Many a times, java debuggers take you into APIs where you need not go every time. Logging values of your variables, and generic 'I have reached till this point' statements make life a lot easier.

所以,我想你有你的code做了充足的记录。这可能给你发生了什么客户端系统上的线索。
在正确的环境变量设置?他们是否指向你需要正确的Java版本。
如果有一些特定的屏幕捕获需求(插件/模块/ API)你的code的,是他们可在Linux的M / C?
像@MadProgrammer说,到最后,Java有与本机图形API交谈呈现您的屏幕。
我会尝试调试它以这种方式 -

So, I suppose you have ample logging done in your code. That could give you clues on what's happening on your client's system. Are the right environment variables set? Are they pointing to the correct Java versions you need. If there are some specific Screen capturing requirements(plugins / modules / API) your code has, are they available on the Linux m/c? Like @MadProgrammer said, in the end, Java has to talk with the native graphics APIs to render your screen. I would try to debug it in this way -


  1. 检查是否我的主屏负载或无(禁用屏幕捕捉功能了一会儿)。

  2. 如果不是,越挖越深。

  3. 检查捕获屏幕(音频和视频)的所有必需的组件是否可用。

  4. 检查是否code正与适当的权限来控制你可能需要的H / W的设备上运行。

这篇关于摇摆工作在不同平台不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆