From: SourceForge.net <no...@so...> - 2006-01-12 13:55:14
|
Bugs item #1362469, was opened at 2005-11-20 21:51 Message generated for change (Comment added) made by eddyanthony You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=1362469&group_id=25576 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: User Interface Group: 5.9.4 Status: Open Resolution: None Priority: 7 Submitted By: Eddy Anthony (eddyanthony) Assigned to: Tod Milam (tmilam) Summary: [5.9.4] GUI missing buttons in Mac system Initial Comment: Some changes introduced in the main line have resulted in the absence of buttons in the native Mac interface. If I switch to the Java interface the buttons return. For Example the Source tabs buttons now look like this: LoadUnloadAllRemoveAll RefreshWebsiteCustomise This of coarse makes things a bit confusing. I first noticed this in the alphabuilds when the Font Smoothing feature was introduced. ---------------------------------------------------------------------- >Comment By: Eddy Anthony (eddyanthony) Date: 2006-01-12 08:55 Message: Logged In: YES user_id=886893 This happened around the time the Font smoothing feature was added. There were some comments about this posted in the Open Discussion forum: http://sourceforge.net/forum/forum.php? thread_id=1413315&forum_id=80535 Here is a repost of the relevant bits: Problem: Buttons don't look like buttons -- there are no background, they simply show as text and clicking them doesn't change the look (i.e. buttons don't depress or highlight). Probable Cause: When you set the borders to null in Mac OS X, it makes the "aqua" style of the buttons disappear. Most likely, all buttons have their borders being set to null or another simple mistake that fails on OS X alone, I suspect. (I'm making a guess that this is the problem you're having on a mac since I haven't found the place in the source code this is done -- if you point me to the place in the source code all these buttons are created or their style is changed, I can tell you how to fix this -- I've done it before). Solution: Each time you create a JButton and want to set the border to null, branch around whether it is on a Mac, and on a Mac, don't set the borders to null. (below see link to code on how to check whether you're running on a Mac). Problem: Menus show up inside windows instead of in the Mac OS menubar. Solution: To get the menus to show up in the mac os menubar, you just need a few lines of code in your first main method, before you do anything else (if you do this after initializing the GUI or making any GUI items, etc., it will have no effect): if (ControlThisComputer.isRunningOnMacOS()) { System.setProperty("com.apple.macos.useScreenMenuBar", "true"); System.setProperty("apple.laf.useScreenMenuBar", "true"); } (source code to ControlThisComputer is at http://cvs.sourceforge.net/ viewcvs.py/*checkout*/jspsurveylib/jspsurveylib/org/browsecode/helpers/ controlcomputer/ControlThisComputer.java?rev=1.13) Aaron Powers - mindframes ---------------------------------------------------------------------- Comment By: Tod Milam (tmilam) Date: 2006-01-12 08:47 Message: Logged In: YES user_id=777206 Devon - yes, I'll take a look. ---------------------------------------------------------------------- Comment By: Devon Jones (soulcatcher) Date: 2006-01-11 22:50 Message: Logged In: YES user_id=107647 tod, you were gonna deal with mac issues, correct? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=1362469&group_id=25576 |