Question

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?

Was it helpful?

Solution

- 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;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top