Why does setOpaque(false) on Mac interfere with functionality of JSlider?

Hello, here is an SSCCE with a slider that works normally on my PC:
import javax.swing.*;
public class Foobar extends JApplet
     public  void init()
          JPanel panel = new JPanel();
          panel.setOpaque(false);
          panel.add(new JSlider());
          setContentPane(panel); 
}But on my sister's Mac, the slider functionality is broken: one cannot drag the thumb with the mouse. To move the thumb, she has to click on the rail. If I comment out the setOpaque(false) call, then everything works fine.
I need that setOpaque call and I want the program to work both on Mac and PC. Why does it break on the Mac and how to fix it? Thank you for your insight. Mark

So then you haven't actually ran that SSCCE on a MAC then? No, no, she ran it on her Mac, my sis. I asked her to run it several times, and she definitely cannot move the thumb. Now, if I comment out the setOpaque(false), then she can move it all right.
But, I found a workaround. I did not realize that before, that Apple actually does include the "cross-platform" look and feel, not only their own Aqua. On the Sun website, it sort of implies that Apple only has Aqua, but on Apple website, I found they also support the cross-platform look.
And voila, I changed to the cross-platform, and now, everything works. Not only the sliders in non-opaque panels, but I had also a HUGE number of other problems getting my app to work on the Mac, and now, with the cross-platform look, they all disappeared!!
Thank you.
Mark

Similar Messages

  • HT1338 Does Quicken Essentials for Mac work with Mountain Lion

    Does Quicken Essentials for Mac work with Mountain Lion

    Rather than hijacking someone elses thread (as you already have one) why not use it or post another, the OP here should be allowed to ther thread replied to.
    Your other thread on the same subject is here.

  • Why does my iphone 3gs not sync with contacts?

    why does my iphone 3gs not sync with contacts?  In fact it loses contacts during syncing.
    In Itunes it is set to automatically sync to the laptop and in info sync contacts is checked and all contacts are checked.

    On my Mac Pro, contacts and Thunderbird contacts are synced.  I want my Iphone to sync with the Contacts on the Mac Pro.  Incidently I am not using Icloud.  Is that the problem?

  • Why does my iMessage not work even with my apple ID signed in?

    Why does my iMessage not work even with my apple ID signed in?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom
    BTW- Your profile shows you have iOS 6.1.4 installed. The max iOS for an iPad is 6.1.3. iOS 6.1.4 is for iPhones only.

  • Why does apple release seri in beta with many problems

    why does apple release seri in beta with many problems

    terryfromprescott wrote:
    why does apple release seri in beta with many problems
    That is the point of a beta version.
    Software in the beta phase will generally have many more bugs in it than completed software, as well as speed/performance issues. The focus of beta testing is reducing impacts to users, often incorporating usability testing. "
    http://en.wikipedia.org/wiki/Beta_version#Beta

  • Why can't Outlook for Mac sync with iCal

    Why can't Outlook for Mac sync with iCal

    Because Microsoft didn't update their software to work with the new OS.

  • Why does my scanned docs. come out with all colored lines on it after going thru the top feed try?

    why does my scanned docs. come out with all colored lines on it after going thru the top feed try?

    hi there,
    could you provide the community with a little more information to help narrow troubleshooting? Things like your printer model and your operating system help out a lot.
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Why does my screen have a circle with contact name

    why does my screen have a circle with contact name

    it might be the recents feature showing up on the home screen, this can be switched off.Once you’ve completed the upgrade to iOS 8, head to Settings > Mail, Contacts, Calendars. Scroll down until you see the Contacts section and tap on Show In App Switcher. Here you’ll see the options for displaying contacts in the app switcher screen: your iPhone favorites, your recent contacts, or both. Note that if you enable both favorites and recent contacts, your favorites will be displayed first, and you’ll have to scroll to the right to see your recent contacts.

  • Why does Verizon not provide 3G coverage in Western Maryland (Garrett County) and why does it not have an agreement with US Cellular for such coverage?

    Why does Verizon not provide 3G coverage in Western Maryland (Garrett County) and why does it not have an agreement with US Cellular for such coverage?

        Thanks for the zip code pfekete. I looked into the coverage in your area and I do see you are in an extended 1X data coverage which explains why you're not connecting to 3G. What phone do you have? We may be able to advise you on how to adjust the settings so it picks up the strongest signal. I apologize for the inconvenience.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • Why does the flash update install mcaffee with out asking!!!

    Why does the flash update install mcaffee with out asking!!!

    Because McAffee pays to have their installer "bundled" with the update. It's not right, and the "blind installer" in the update (with no opt out) has been documented and reported.
    You can download the Adobe Flash Player installer directly (without any bundled installers) by clicking one of the following links.
    Flash Player for ActiveX (Internet Explorer)
    Flash Player Plug-in (All other browsers)
    Bookmark those for future use.

  • Why does my new MacBook pro retina with 16gb ram keep randomly freezing

    Why does my new MacBook pro retina with 16gb ram keep randomly freezing

    Hi ..
    A new Macbook Pro should not randomly freeze.
    You have 14 calendar days  from the time your items are delivered to initiate a return as noted here.

  • Why does Safari (or any other browser with up to date Flash player) not play Facebook videos?

    Why does Safari (or any other browser with up to date Flash player) not play Facebook videos?

    You're welcome. Glad I could help.
    If you haven't done so, using Disk Utility in your Applications/Utilities folder.
    Thanks for the and Aloha from Big Island.

  • Why does my battery die so quickly with iOS 7?

    Why does my battery die so quickly with iOS 7? Charged to 100%. Unplugged and opened up an hour later. Down to 88%. Why? No apps open.

    I think it might also be a bug, my 4S went down to 1% I could actually see it go down from 18% just like a watch. The phone started at about 60% and went down to 1% in about an hour but the useage still stated I had over 6 hours of stand by time, when I plugged in the phone to charge it jumped from 1% to 27%.

  • Why does safari, Word etc always open with last used item

    why does safari ,Word etc always open up with the last used item

    Disable Mac OS X Lion Resume & App Window Restore Completely

  • Why does mavericks mail freeze mac while downloading new mail

    why does my mac freeze up while new emails are being downloaded ?

    Same problems here, too. It started a few days ago. A lot of users seem to have this/these problem(s). Is there still no solution to this from Apple, apart from a complete reset of the iPad? Quite embarrassing issue for Apple - the "settings" are a quite important part of a computer, and one  that shouldn't freeze....
    Other forums suggest it is an iCloud problem (which might explain that contacts does not work - and the calendar without sync is meaningless anyway). After MobileMe, with which many users had similar problems, had to be replaced by iCloud, maybe iCloud  has to be replaced, too. MobileMe, iCloud, next is YouLoose, maybe. Hopefully Apple looks at its own wbsite and works on solutions.

Maybe you are looking for

  • Mac Pro (2013) with Mavericks and Mac Office Excel

    Using MAC Excel VBA, and obviously with my personally written Excel VBA application, I have discovered that in a multi-Workbook Excel app, I am unable to "Open" additional Workbooks (xlsm-type) successfully from any Workbook OTHER THAN with the very

  • Smooth Scrolling not available

    I tried to enable Smooth Scrolling in Adobe Reader by using Preferences -> Page Display, but the option is not even available for me to select. According to the Reader help pages, the last option on the page (below) should be "use smooth scrolling".

  • Arc.vi 's input "Radius" is distance from arc centre or distance from vector space centre 0,0

    Hi everybody, I am using PXI 7352 +UMI+2 servo Drives+motors which move a table in linear direction X and rotate it along Z axis C. How can I use Load Circular Arcvi if my  one axis is linear and other is rotary e.g. XC table. Thanks Surender Kumar R

  • IWeb family pack help

    I have the iweb family plan with a domain set up already..how do I create a new site/name for another domain? Does the family plan allow a site for each member?? Help Please

  • Deleting a program with all its files

    Does Mountain Lion delete all program-files when I delete only the program inside the application folder?