Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > full-screen hide menubar

full-screen hide menubar
Thread Tools
Fresh-Faced Recruit
Join Date: May 2002
Status: Offline
Reply With Quote
May 7, 2002, 10:14 AM
 
I want to run a Java application full-screen with no menubar - can't find a way to do this in OSX - anyone have an idea? BTW I'm using GL4Java and the app is running on a 933Mhz G4 with GeForce4MX.
     
Junior Member
Join Date: Dec 2000
Location: Boston, MA USA
Status: Offline
Reply With Quote
May 7, 2002, 02:48 PM
 
Originally posted by cogat:
<STRONG>I want to run a Java application full-screen with no menubar - can't find a way to do this in OSX - anyone have an idea? BTW I'm using GL4Java and the app is running on a 933Mhz G4 with GeForce4MX.</STRONG>
I know how to do this in Cocoa. I'm not quite sure how this relates to Java, although I know OS X does have some fancy features incorporating the two. Heres how you do it (quite easily) in Cocoa.

By creating a subclass of NSWindow, you can use a method (not sure of the exact name--I'm at work) called setLevel: or setWindowLevel: or something like that to set the windows placement level on the screen to NSScreenSaverLevel (again--not sure exact name), which appears above everything, Dock, Menu Bar, everything.

I believe the setLevel: method needs to be used very early on in the window's life, possibly before it is displayed for the first time, so I'm not sure how or when to call it from Java.

- Ross
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:55 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2