Transparency for JTabbedPane doesn't work with java version 1.5  .......

Hi all,
I have a tabbed pane to which i add a panel. Both tabbed pane and panel are set opaque(setOpaque(false)) and i set background image for main container. It works fine in java version 1.4.2_04 showing all the panels and tabbedpane transparent. But when it run in version jdk1.5 the transparency effect goes off.
what is the problem? how to fix it up? please help....
here below is the code. Take any jpg image as background.jpg.
import java.awt.*;
import javax.swing.*;
import java.awt.color.*;
public class Test extends JDialog {
     float[] white = {.99f, .99f, .99f};
     public Test() {
          UIManager.put("TabbedPane.selected",
               new Color(ColorSpace.getInstance(ColorSpace.CS_sRGB), white, .0f));
          JTabbedPane tabbedPane = new JTabbedPane();
          Color COLOR_WHITE_TRANSPARENT_VAL = new Color(
               ColorSpace.getInstance(ColorSpace.CS_sRGB), white, 0.0f);
          tabbedPane.setBackground(COLOR_WHITE_TRANSPARENT_VAL);
          tabbedPane.setOpaque(false);
          JPanel p1 = new JPanel();
          p1.setOpaque(false);
          tabbedPane.add(p1, "Tab 1");
          // panel for displaying background image
          JPanel backPanel = new JPanel(new BorderLayout()) {
               ImageIcon img = new ImageIcon("background.jpg");
               public void paintComponent(Graphics g) {
                    Dimension d = getSize();
                    g.drawImage(img.getImage(),
                         0, 0, d.width, d.height, null);
                    setOpaque( false );
                    super.paintComponent(g);
          backPanel.setLayout(new BorderLayout());
          backPanel.add(tabbedPane, BorderLayout.CENTER);
          backPanel.setOpaque(false);
          getContentPane().setLayout(new BorderLayout());
          getContentPane().add(backPanel);
          setSize(300, 300);
          setVisible(true);
     public static void main(String[] args) {
          Test test = new Test();
thx,
Soni

Hi Reneto,
We had the same problem in our project where-in we asked BASIS team to install the lower version of JAVA 1.42..
No proper document from SAP for using lower version of JAVA.
I hope this helps.
Regards
Shashidhar

Similar Messages

  • Is oracle ebs work with java version 7.51 ?

    Hi,
    is oracle ebs work with java version 7.51 ?
    Thanks

    Findy Nurtantio wrote:
    Hi,
    is oracle ebs work with java version 7.51 ?
    Thanks
    Yes, Java JRE 1.7.0_51 is certified with Oracle E-Business Suite -- https://blogs.oracle.com/stevenChan/entry/java_jre_1_7_08
    Thanks,
    Hussein

  • Male to male audio cable for car doesn't work with my iphone 4s?

    I have a 3.5 mm male to male cable that I have used in my car so I can listen to my music.  It works fine with my iphone 3G, but it doesn't work with the new 4s.  Is there a special cable I need to use with it?  It's weird, because my earbuds work with either iphone, but not the audio cable.  Suggestions??

    I have the exact same issue with my new 4S.
    I haven't find a solution yet.

  • Latest Quicktime update doesn't work with older versions of Safari.

    I have an iMac with Panther 10.3.9. I've downloaded and installed all the updates regularly. That last update of Quicktime doesn't work with Safari! All I get is the big Q. Any ideas?

    Hi
    Welcome to Apple Discussions
    Check your Quicktime settings in System Preferences>Quicktime>Advanced panel.
    Mime settings>make sure nothing is checked in the Miscellaneous box.
    Advance panel>Enable Flash ought to be selected.

  • Oracle sync for Macintosh doesn't work with Leopard.

    I have tried to install the oracle sync client for Mac OS (v 9.x) and it will just not install on any Leopard OS Macs. The console message repeats the error:
    5/27/08 11:07:12 AM [0x0-0x12012].Oracle Calendar Sync installer.1[121] 2008-05-27 11:07:12.373 install[126:190b] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    and
    5/27/08 11:07:15 AM com.apple.launchd[81] ([0x0-0x12012].Oracle Calendar Sync installer.1[121]) Stray process with PGID equal to this dead job: PID 127 PPID 126 osascript
    The installer does work with Tiger. I have found that it complains about some Java errors when its unpacking itself but I have the most recent version of Java available for this OS.
    Any thoughts?

    I was able to get the sync to work when I started on a machine running Tiger (OS 10.4) and then upgraded to Leopard, but NOT on any machines that start at Leopard.
    I've just about abandoned Oracle Calendar given their (lack of) product support, and likewise for PalmOS devices.
    Bring on iPhone.

  • My WORD for Mac doesn't work with latest upgrade. Any Remedy?

    Most recent update to OS caused WORD for MAC not to work.  Any Remedy?

    If you just updated to Mountain Lion (10.8) and you were using Office 2004, your best option is to find a newer Office replacement. Here are a few:
    Office 2008 or newer ($140 and up for the 2011 version; you may find 2008 used elsewhere)
    Apple Pages ($15)
    LibreOffice (free)
    Matt

  • Converting from CP1252 (Windows) to ISO 8859-1 doesn't work with java.nio?

    Hi
    I'm trying to write some code that checks whether an InputStream contains only characters with a given encoding. I'm using java.nio for that. For tests, I downloaded some character set examples from http://www.columbia.edu/kermit/csettables.html
    When creating the CharsetDecoder, I want to get all errors:
        Charset charset = Charset.forName( encoding );
        CharsetDecoder decoder = charset.newDecoder();
        decoder.onMalformedInput( CodingErrorAction.REPORT );
        decoder.onUnmappableCharacter( CodingErrorAction.REPORT );I then read an InputStream and try to convert it. If that fails, it can't contain the desired encoding:
        boolean isWellEncoded = true;
        ByteBuffer inBuffer = ByteBuffer.allocate( 1024 );
        ReadableByteChannel channel = Channels.newChannel( inputStream );
        while ( channel.read( inBuffer ) != -1 )
          CharBuffer decoded = null;
          try
            inBuffer.flip();
            decoded = decoder.decode( inBuffer );
          catch ( MalformedInputException ex )
            isWellEncoded = false;
          catch ( UnmappableCharacterException ex )
            isWellEncoded = false;
          catch ( CharacterCodingException ex )
            isWellEncoded = false;
          if ( decoded != null )
            LOG.debug( decoded.toString() );
          if ( !isWellEncoded )
            break;
          inBuffer.compact();
        channel.close();
        return isWellEncoded;Now I want to check whether a file containing Windows 1252 characters is ISO-8859-1. From my point of view, the code above should fail when it gets to the Euro symbol (decimal 128), since that's not defined in ISO-8859-1.
    But all I get is a ? character instead:
    (})  125  07/13  175  7D                 RIGHT CURLY BRACKET, RIGHT BRACE
    (~)  126  07/14  176  7E                 TILDE
    [?]  128  08/00  200  80  EURO SYMBOL
    [?]  130  08/02  202  82  LOW 9 SINGLE QUOTEI also tried to replace the faulty character, using
        decoder.onUnmappableCharacter( CodingErrorAction.REPLACE );
        decoder.replaceWith("!");but I still get the question marks.
    I'm probably doing something fundamentally wrong, but I dont get it :-)
    Any help is greatly appreciated!
    Eric

    As a suggestion....create a complete example demonstrating the problem. It shouldn't have channel in it since that wouldn't appear to be the problem (decoding is.) You should create the byte array in the example code - populate it with the byte sequence that you think should work. And your code should then demonstrate that it doesn't. Then post that.

  • Sony Bridge for Mac doesn't work with my Sony Xperia J

    I have installed Sony Bridge for Mac version 3.7.1, but it won't connect to my Sony Xperia J which I have only had for 3 months.
    I get the error "Could not connect to your Xperia device. Please disconnect and reconnect it again. Restart the device if the problem persists". All the time.
    I have tried all of the suggestions in the error message. I have also tried reinstalling Sony Bridge for Mac, to no avail.
    I am running Mac OS X 10.9.2 on an iMac. I am also using the correct USB lead - the one supplied with the phone.
    The Mac system log shows this error:
    Apr  3 20:42:35 robins-imac.default Sony Ericsson Bridge for Mac[973]: BUG in libdispatch client: kevent[EVFILT_WRITE] delete: "No such file or directory" - 0x2
    I suspect that whoever wrote Sony Bridge for Mac did not try it on OS X 10.9.2.
    I am seriously thinking of getting rid of this phone and getting one that works properly with the Mac - ie, not a Sony phone. Sony always seem to have problems with supporting Macs, for some bizarre reason.

    Hi Yorkshirecomposer,
    I will ask the development crew about the system log error. Additionally, could you provide me with error logs to send them as well?
    Here’s how to get error logs from Sony Bridge for Mac: 
    1. In BfM, hold the "alt" key down while selecting the "Phone" menu. Select "Clear logs" to remove all old logs and get a clean start
    2. Reproduce the problem you're having, whether it's connecting the phone, importing photos, doing backup...
    3. In BfM, hold the "alt" key down while selecting the ”Xperia” menu. Select "Export logs"
    4. On the computers desktop there should now be a file named "SonyBridgeForMacLogs_[date].zip
    5. PM that file to me or post the contents here
    Best Regards,
    David

  • 2.2 GPIB driver for Solaris doesn't work with Sol. 2.3 tester

    Upgraded to 2.2 GPIB driver to fix issue of driver being lost on Sun Ultra60's at shutdown and reboot. The driver works fine with 10 of the 11 tester platforms we use. This tester is a Genesis III running Solaris 2.3. The program will run successfully, but when shutdown and re-started, the drivers are not there and must be re-installed. What to do? Thanks.

    Thanks for the suggestion to check privileges, but that's the problem--the driver is not present to have any privileges to check. On reboot, there are only links (all owned by root with 777 perm.) at /dev which lead to non-existent directories.
    #/dev> ls -l gpib*
    lrwxrwxrwx 1 root other 43 Apr 18 09:50 gpib -> ../devices/pci@1f,4000/NATI,pci-gpib@2:gpib
    lrwxrwxrwx 1 root other 44 Apr 18 09:50 gpib0 -> ../devices/pci@1f,4000/NATI,pci-gpib@2:gpib0
    lrwxrwxrwx 1 root other 44 Apr 18 09:50 gpib1 -> ../devices/pci@1f,4000/NATI,pci-gpib@4:gpib1
    If you try to use these links to go to these dirs, there're not there. Also, ibconf shows no gpib devices loaded.
    Any more suggestions would be greatly appreciated.

  • Mail for Exchange - doesn't work with Ex. server 2...

    I wanted to connect my N900 to Exchange server 2003 (ES2003). There is a problem in answer from ES2003. It doesn't answer.
    Is there any setting I cannot to find or any apps which can solve this problem?

    Bleky wrote:
    I wanted to connect my N900 to Exchange server 2003 (ES2003). There is a problem in answer from ES2003. It doesn't answer.
    Is there any setting I cannot to find or any apps which can solve this problem?
    Check the Maemo Wiki: Mail for Exchange
    http://wiki.maemo.org/Mail_For_Exchange_%28MfE%29_Heartbeat_and_FAQ
    and discussion at:
    http://talk.maemo.org/showthread.php?t=35136

  • TV show won't play because Quicktime doesn't work with iTunes version

    I downloaded episode 1 of Mad Men.  When I try to play it I get this error:  This movie requires QuickTime, which is not supported by this version of iTunes
    I read some of the other support discussions and tried to do 2 things:
    (1) I tried to set iTunes to open in 32 bit mode.  But, when I open iTunes after doing so, I get an error that iTunes must be opened in 64 bit mode.  So, that didn't work.
    (2) I tried to remove the movie, but instead of being asked whether I still wanted to keep it, it just asked me if I wanted to "hide" the movie.  So, I'm not sure what this means. 
    How can I watch the show I downloaded?  And, please provide really explicit instructions because I can't seem to follow the complicated directions some of the super smart people leave on these discussion groups.
    I have a Macbook Pro 15 inch retina screen computer running Yosemite 10.10.3.  I have iTunes 12.1.2.27.
    Thanks,
    Cameron

    I had the same problem as teacher_k reported and I am happy to report that after 2 days of fighting it seems I solved it.
    Symptom was: when playing a movie trailer from iTunes on a HDTV or on the computer either nothing happens or a black screen opens and no video or audio is perceived. I have a Win7 laptop.
    I am not sure if all of these steps were necessary but at the end it started working:
    1. I hope it is obvious that you need a connection to a HDMI TV (at least for some content that is protected)  . Ensure that your TV display correctly shows your screen when not playing movies (fixing resolution, refresh rates, etc.)
    2. Ensure you have latest rev of QT and that it is the default player for movies (by just launching it and answer yes to that same question if appears)
    3. Follow the instructions  in Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues as Whatcheck said
    4. The last tmagic step hat made it work was based on Patriciafromor: deauthorize/authorize the computer, Just in case I also logged off and back into my AppleID account and restarted iTunes and voilà

  • Firefox updated itself to 3.6.9 and now I can't print anything from an open page, because HP Smart Web Printing doesn't work with this version. What's a replacement extension?

    "An unknown error occurred while printing."

    I have the exact same problem. I updated to 3.6.12 and encountered the "blank page" printing problem. I ended up re installing Firefox 3.0.19. Printing works great. Also Firefox 3.5.15 gave the same blank page printing problem. I also installed "Better privacy" and " Ghostery"at the time of updates. These programs do not run under the 3.0.19 version. Not sure if if they are related to the problem. Good luck and hope a solution to the problem comes about.

  • Hi guys, need your help with iCloud notes on Mac 10.7.5; I've found this feature's more useful comparing with stickers, however can't pin notes to desktop or dock, "double click"on the note doesn't work with this version of software.

    Hi guys! Need you help with iCloud Notes on Mac Pro 10.7.5. I've found this apllication more useful comparing with "stickers", however can't pin it to desktop or dock. Thanks a lot in advance!

    Hi guys! Need you help with iCloud Notes on Mac Pro 10.7.5. I've found this apllication more useful comparing with "stickers", however can't pin it to desktop or dock. Thanks a lot in advance!

  • Adobe acobat/reader doesn't work with this version of firefox

    adobe acobat/ reader wont let view info says close adibe acobat and web browers when i do firefox closes and i lose page i was looking at

    I have the exact same problem. I updated to 3.6.12 and encountered the "blank page" printing problem. I ended up re installing Firefox 3.0.19. Printing works great. Also Firefox 3.5.15 gave the same blank page printing problem. I also installed "Better privacy" and " Ghostery"at the time of updates. These programs do not run under the 3.0.19 version. Not sure if if they are related to the problem. Good luck and hope a solution to the problem comes about.

  • SMARTboard doesn't work with Newest Version

    SMARTboard told me that the reason my SMARTboard activites that require flash do not work is because of the newest version of Flash on my computer. I tried to reinstall older version of Flash and it won't let me, Help!

    Did you uninstall the new version before attempting to install an older version?
    If you still have a problem, tell us some details: http://forums.adobe.com/thread/1195540

Maybe you are looking for

  • Kinect Mac OSX 10.6.8 Issues

    Hi everyone, I really want to use my Kinect with Processing 2.0, but I keep getting malloc errors like this one: java(12328,0x7fff70269cc0) malloc: *** error for object 0x1020319e8: incorrect checksum for freed object - object was probably modified a

  • What are cookies and cache?

    I've heard every once in a while you want to remove your cookies and cache! Why is this? Is that true? And what are cookies and cache exactly? Like their purpose

  • BODI-20030 Job Server configuration Error

    Dear all BODI experts, Maybe this is a clasical issue, But before i wrote down this thread, i had already tried to find solutions for this BODI-20030 error and yet it's still occured. I'm using BODI XI R2 Acc Designer 11.7.3.12 JobServer Not Respondi

  • Avoiding AppleEvent Timed Out Error -1712

    Hey all I am relatively new to applescsripting.  I have come up with the below applescript for a project here at work.  Basically this applescript is used to open pdfs in full screen mode, display them for set lenght of time and rotate continously. I

  • Battery problem pls help

    I have an iPhone 4S and ever since I updated to iOS 6 I have been having major battery issues. My battery drains really fast. Any suggestion? I have let it run all the way out and recharged it no help Thanks