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?
Asked
Active
Viewed 305 times
1 Answers
1
- 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;

Kumar Vivek Mitra
- 33,294
- 6
- 48
- 75
-
Right. Now I see that the windows I simply modified the position of the frame leaving it almost entirely off-screen. If you do that in Ubuntu the frame is played to another screen ... – marlonjke Dec 12 '12 at 03:31