Do you think this is the bug in 1.5?

I have this applet and the tooltip for second button does not appear after clicking on first button. It only happens in java 1.5. Do you think this is the bug or I am doing something wrong. this is the code
/*<HTML>
<HEAD>
<TITLE> A Simple Program </TITLE>
</HEAD>
<BODY>
Here is the output of my program:
<APPLET CODE="HelloWorld1" WIDTH=350 HEIGHT=325>
</APPLET>
</BODY>
</HTML>
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.applet.Applet;
public class HelloWorld1 extends JApplet implements ActionListener {
CardLayout c = new CardLayout();
JPanel lslayout = new JPanel();
     JButton n = new JButton("first");
     JButton n1 = new JButton("second");
public void init() {
getContentPane().setLayout(c);
     getContentPane().add("message", n);
     getContentPane().add("message1", n1);
     n.addActionListener(this);
     n.setToolTipText("firs tooltip");
     n1.setToolTipText("second tooltip");
public void actionPerformed(ActionEvent e) {
c.show(getContentPane(), "message1");
}

I have rewriten it with FlowLayout() and it still does not works. Code is below. One thing i noticed.If I minimize my browser window the tooltip appears. Does anyone knows which method the browser calles after minimizing.
public class HelloWorld2 extends JApplet implements ActionListener {
JPanel panel = new JPanel();
     JPanel panel2 = new JPanel();
     JPanel panel3 = new JPanel();
     JButton n = new JButton("first");
     JButton n1 = new JButton("second");
public void init() {
panel.setLayout(new FlowLayout());
     panel2.setLayout(new FlowLayout());
     panel.add( n);
     panel2.add(n1);
     getContentPane().setLayout(new FlowLayout());
     getContentPane().add( panel);
     n.addActionListener(this);
     n.setToolTipText("firs tooltip");
     n1.setToolTipText("second tooltip");
public void actionPerformed(ActionEvent e) {
     getContentPane().removeAll();
     setEnabled(false);
     setEnabled(true);
     getContentPane().add( panel2);
     panel2.revalidate();
     panel2.validate();
     validate();
     repaint();
}

Similar Messages

  • Pls take note that my IPad 3 used to find my printer HP wireless D110. The only thing that I did was to update to IOS 7.  Do you think this is the reason why my iPad cannot find my wireless printer?

    Pls take note that my IPad 3 used to find my printer HP wireless D110. The only thing that I did was to update to IOS 7.  Do you think this is the reason why my iPad cannot find my wireless printer?

    1. Turn the router, iPad and printer off
    2. Turn on the router and then wait 30 seconds
    3. Turn on printer and then wait 30 seconds
    4. Turn on your iPad and test print.

  • Do you think this is the logic board?

    Ok, So I'm sitting in psychology and the computer freezes and the video becomes distorted (like the Photoshop wind filter) little lines going everywhere. I then held the power button and it shut down. Then I tried to boot it, but nothing.
    Later it works OK, but do you think this is the logic board?
    Will it get worse?
    And finally, Do you think I am eligible for a logic board replacement?
    Serial: UV3283xxxxx

    Gah, Sorry forgot to mention in the message i have an ibook.
    You didn't need to say that you have an iBook because it says it in your system configuration at the bottom of the screen I just thought that I'd mention my experience because it was a bit similar to yours.
    I definately think that it is worth getting it checked out. Maybe just drop it off at an Apple store and ask them to do some tests on it to see if the logic board does have a problem. If you are eligable for the logic board replacement then it's definately worth looking into. Often, intermittent problems like this can turn into more serious ones like mine.
    I personally would not leave it down to chance.
    Good luck
    <hr>Sam

  • Hi there, I have just bought an ipad4 but it will not connect to my internet. I have tried every suggestion going to no avail. My netgear DG834g router is fairly old , do you think this is the problem? I am at a loss now and very frustrated!

    Hi there, I have just bought my first ipad4 and have spent all weekend trying to connect to the internet. I have tried all Apple suggestions to no avail
    . My Netgear DG834g router is a few years old now. Do you think this may be the problem? Do they have compatibility issues after a while? My ipad upgrade is IOs 6. I am at a loss what else to do and needless to say extremely frustrated!
    Thanks.

    First check that your router has its latest firmware.
    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
    Since you are a new iPad user .....
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download an iPad User Guide to the iPad from the iTunes store.
     Cheers, Tom

  • My daughter is going on an exchange to France for a year.  I saw that there is a SIMS prepaid card that fits into an iPhone 4S.  Do you think this is the best way to go and oDo d I suspend her service with our carrier?

    My daughter is going on an exchange to France for a year.  I saw that there is a SIMS prepaid phone card that fits into an iPhone 4S.  Is this the best way to go and if so,  Do I suspend her service with our carrier?

    Is your daughter's phone officially unlocked? If not, you won't be able to use any sim other than a sim from the carrier your daughter's phone is locked to. To do what you want, you need to get your daughter's phone officially unlocked. Once done, she can then purchase a local sim when she gets to France.

  • Alerts do not work on one site collection - Alerts have EventTypeBitmask of -1 - do you think this is the problem

    I have a farm with approx 200 site collections in it. 
    We did recently move sites from one farm to another.  All other site collection alerts work,  Yet I have one site collection that just does not send alerts.
    Things I have done to attempt to get them to work:
    1. Turn Alerts off and back on
    stsadm -o setproperty -url "sitecollectionurl" -pn Alerts-enabled -pv False
    stsadm -o setproperty -url "sitecollectionurl" -pn Alerts-enabled -pv True
    2. Update the alerts template
    stsadm -o updatealerttemplates -url "sitecollectionurl" -f "c:\program files\path to \AlertTemplates.xml
    3. Update all the siteurl properties of all alerts to the correct url
    4. update all the mobilurl propties of all alerts to the correct url
    5. updated all the Alert.Titles
    None of these have worked for me to get the alerts to start working
    The only thing I see different is this EventTypeBitMask property.
    Does anyone have any other suggestions to get alerts working on this site collection?
    Thank you for any help
    [email protected]

    Hi,
    Whether all of the user can’t receive alert email in this site collection.
    Check whether the "Immediate Alerts" time job is enabled for your web application.
    Try to do restart SharePoint Timer services and IISReset.
    Here are two articles about troubleshooting SharePoint alerts not working, you can use as a reference:
    http://www.sharepointdiary.com/2012/02/sharepoint-alerts-not-working-troubleshooting-checklist.html#ixzz2aSvOz3hB
    http://blogs.technet.com/b/steve_chen/archive/2009/11/20/alerts-in-sharepoint-troubleshooting-moss-wss.aspx
    Besides, here is a similar post, you can take a look at:
    https://social.technet.microsoft.com/Forums/en-US/895a5612-9237-4d66-8cb3-37e7eefe8dbb/alerts-not-working-for-a-single-site-collection?forum=sharepointadminlegacy
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.

    Hi guys,
    I posted a question which was reviewed and published, now i am not able to see the quesrion and the replies anymore.
    I am getting this message "Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here."
    Can you please help.
    Thank you
    Andy

    You get this due to your newer status in forum, most of the contect needs to be reviewed and approved by one of us ie modertors of this space

  • Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here. ''Getting

    I tried to post a question on SCN and I too got the following error:
    Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.
    Does that mean my question is rejected ? or is it being moderated ?

    This is because your new discussion thread was rejected. You should see feedback from the moderation at http://scn.sap.com/actions/notifications

  • The double click is not working so cannot navigate. Do you think this is a fault or have the setting been changed

    I am new to apple and found that the double click on my MacBook air is not working so stuck on one screen and can not move. Is there another way other than double clicking to move between screens? Do you think this is a fault or just that the settings have been changed
    Thank you

    It is probably set too fast or too slow. Go to System Preferences from the Apple menu. Click on trackpad and adjust the double-click speed here.

  • My I mac screen had a small green light on the lower left.  on a black screen. the screen seemed unresponsive. When I re-srted the bong sounds but the wite screen never shows the apple - What do you think this means?

    My I mac screen had a small green light on the lower left.  on a black screen. the screen seemed unresponsive. When I re-srted the bong sounds but the wite screen never shows the apple - What do you think this means?

    Welcome to the world of Mac. Some ‘light’ reading to help the transition. I don’t recommend trying to get through all of this at once.
    A guide for switching to a Mac
    Anatomy of a Mac
    Mac Basics—Tutorials on using a Mac
    Mac OS X keyboard shortcuts,
    Mac Basics – Mac Find Out How
    Mac Basics – Switching From Windows
    Mac OS FAQ
    MacTips,
    Quick Assist
    Switch Basics
    Switching to Mac Superguide
    Switching to the Mac: The Missing Manual, Mountain Lion Edition
    Take Control E-books
    Welcome to the Switch To A Mac Guides

  • I think this is a Bug of String class

    I think this is a Bug of String class, do you agree with me ?
    String s = "1234........"; // when "1234........". length() > 65535, there will be wrong, but
    char[] c = new char[88888];...
    String s = new String(c);even if c.length >65535�Cevery thing is ok.
    so I think is a bug. Somebody give me a answer, thanks

    below is the two Constructors Of String
        public String(String original) {
         int size = original.count;
         char[] originalValue = original.value;
         char[] v;
           if (originalValue.length > size) {
             // The array representing the String is bigger than the new
             // String itself.  Perhaps this constructor is being called
             // in order to trim the baggage, so make a copy of the array.
             v = new char[size];
             System.arraycopy(originalValue, original.offset, v, 0, size);
         } else {
             // The array representing the String is the same
             // size as the String, so no point in making a copy.
             v = originalValue;
         this.offset = 0;
         this.count = size;
         this.value = v;
        }=====================
        public String(char value[]) {
         int size = value.length;
         char[] v = new char[size];
         System.arraycopy(value, 0, v, 0, size);
         this.offset = 0;
         this.count = size;
         this.value = v;
        }I don't know where has the problem.

  • It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake.

    I get this error: "It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake.", when I try to view this Thread: http://talk.sonymobile.com/thread/60272
    Give me access to the Thread and explain me where I broke the forum rule... First Sony sells me phone by deception and when I question Sony, I get kicked out of the Thread (by Sony hired Goons)....

    respected admin,
    when i connect my mobile with pc companion there's a update of 15.3.A.1.12 for Xperia L. But as usual for all user the update from pc companion becomes very slow while the update from update center from mobile means wireless update is comfortable and fast. But there is no update (15.3.A.1.12)  seen in update center.
    and as in the following link (of sony) its still showing 15.3.A.0.26..
    Can you say how long will it take for the update (15.3.A.1.12)  to come to the update center (wireless update) ?
    and is the update 15.3.A.1.12 officially out..and if no how much time it will take?
    Please do reply asap as there are many problems happening in .26 update.

  • Access to this place or content is restricted. If you think this is a mistake, please contact your administrator

    Hello,
       I am not able to find the discussion, as it is showing error message
    Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.
    The thread link is mentioned below.
                     http://scn.sap.com/thread/3704991
    Thanks

    Hi Sanjana,
    I think you may raised issue about CRM Data source enhancement.
    if yes then that might be  hidden by moderator as per SCN rules. Mean its alerted by scn experts and moderators will take action as epr scn rules.
    Data source enhacement have been discussed mnay times on scn.
    please go thru sample existing codes, apply your lgoic and follow it.
    Later you can do syntax check and do the debeug with help of abap expert.
    Thanks

  • Once again, iTunes thinks this is the first time I am connecting

    I am not sure what exactly is going on, but today once again I noticed that when I started iTunes (9.1.1) on my laptop (win XP pro/SP3) I got a welcome message and "what's new" window. So I assume that iTunes thinks this is the first time it has started on this computer but clearly, it is not.
    I reported this issue earlier on this forum but got no response (http://discussions.apple.com/thread.jspa?threadID=2243137&tstart=0) so I am re-posting.
    Some of the settings I care about a lot were all undone - like sync settings for my iPhone (all sync settings were unchecked), and podcast settings (keeping all episodes for some podcasts and all unplayed episodes of the others).
    This is highly annoying and I want to know if there is anyone else who has observed this problem, and if so, what the resolution was.
    Thanks in advance!

    Best if you try and explain what you are trying to acheive.
    Iphoto is a different paradigm than you're used to. I don't understand why you are trying to transfer your edited photos back to an external disk.
    There are tutorials here
    http://www.apple.com/findouthow/photos/
    Regards
    TD

  • Why do i see It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake." though I have bought an iMac and have a valid Appleid

    why do i see It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake." though I have bought an iMac and have a valid Apple ID

    Rattlehead18 wrote:
    That means Apple banned you from that thread cause they think you speak the truth
    This is complete rubbish. Please don't post misinformation - new users find the forums confusing enough without you adding to it.
    When you see that notice it means that the thread or User Tip has been removed. A User Tip may have gone out of date and been removed at the author's request. With a thread it means that someone, usually the original poster, has violated the Terms of Use by ranting, spamming, personal abuse or other content which is not allowed. Consequently anyone else who tries to view that thread will see the message quoted above, which is a standard message in the forum software; the 'contact an administator' bit is irrelevant.

Maybe you are looking for