Reputation: 49
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?
Upvotes: 0
Views: 353
Reputation: 33544
- 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;
Upvotes: 1