سؤال

I developed a auto-hide toolbar in Windows. Basically this toolbar appear on the screen when the mouse is moved to the right corner of the screen. Now I'm trying to run the same program on Ubuntu 12.10 but the bar is switching between the 4 screens of Unity. How can I fix this?

هل كانت مفيدة؟

المحلول

- Use Toolkit to get the Screen width and height

Eg:

Toolkit tool = Toolkit.getDefaultToolkit();
Dimension dim = tool.getScreenSize();
int screenWidth = dim.width;
int screenHeight = dim.height;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top