Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

paul p

macrumors newbie
Original poster
May 7, 2007
4
0
I have developed a java application using an undecorated JFrame spanning two monitors. I've set the size of the Jframe to 2048x768, which occupies the complete area of the two monitors except for the mac menu bar at the top of the main monitor. How can I get rid of the menu bar while my application is runnning so I can use all the monitor space?

paul p
 

Allanist

macrumors newbie
Mar 18, 2007
25
0
You may want to look java.awt.GraphicsEnvironment etc.
Maybe something like:
Code:
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(frame);
 

paul p

macrumors newbie
Original poster
May 7, 2007
4
0
Thanks for the suggestions. :) However fullscreen exclusive mode is what I tried to use in the past but the Mac will not give me a 2048x768 in fullscreen mode and span over the two monitors. I could try and make the main display fullscreen at 1024x768 and the other an undecorated frame of 1024x768, but this is messy and I have aready developed the code for a an XP PC using fullscreen 2048x768 and it works fine. So I have opted for an undecorated frame of 2048x768 for the Mac, however I now need to get rid of the menu to have the full display over the two monitors.
 

paul p

macrumors newbie
Original poster
May 7, 2007
4
0
Thanks for the suggestion. I am heading done that road with JNI in mind.:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.