2nd time posting: Flashing JTabbed Pane?

I'm trying to use a JTabbed Pane wherein tabs are created dynamically from the server. In order to alert the the user of the client software that a new tab has been created, I would like the top of the tab to flash or blink with a different color. any ideas how to do this? I really do want to avoid doing stuff like writing my own component etc.
Tia,
carlos

You can use:
tabPane.setBackgroundAt(i, Color.red);to set the background of tab number "i" to red, and
you can use:tabPane.setBackgroundAt(i, tabPane.getComponentAt(i).getBackground());to set the background of tab number "i" back to its original color. If you do these in a loop with a delay, then you have a flashing tab.
You can also change the font color if you want by using tabPane.setForeground(...) instead of setBackground(...)

Similar Messages

  • HH5 Replacement procedure, 2nd time post

    Hi all,
    I have posted about this before.
    In short my HH5 is not performing as it should, it cuts out everyday (1-2 times every 24 hours) and my 2.4GHz wireless on my HH5 seem to stop transmitting for no reason, and I have to disable it through web interface, then re-enable for it to work...for a while.
    I wish to have a replacement to see if it is the HH5's fault
    I have tried to contact BT chat, but I am constantly being pushed out of the way and re-queued without me even typing a word.
    Many Thanks

    This is a BT residential customer to customer forum. Your post does not go to BT.
    If your HH5 is faulty you will have to report it to BT and they will run through tests with you to establish if it is at fault. If it is and you are in contract they should replace it free of charge. They will not send one out to you just to see if it's faulty.

  • Firefox will not start; new profile fixes it for 1 time, then 2nd time its back to broken

    Windows 7 x64, ff3.6.8
    ff3 will not run, clicking on .exe will not begin any app in taskmanager. the most i get is when clicking ff3 from the taskbar in win7 it will flash as if it is trying to do something, but nothing happens and the flashing stops.
    uninstalled ff3.6.5; reinstalled 3.6.8, still same issue.
    i created a new profile and started ff3, ff3 started & i got to a generic home page. i closed ff3, copied my bookmark file from the default profile to the new profile, restarted ff3, same problem as in the beginning.
    i created a new profile & again it starts up, but when i close out, even without copying the bookmarks over (i was assuming that was the corrupted file), it will not run the 2nd time.
    i have done this for 7 profiles and all of them work the first time, but none will work after that even without copying any profile information from the original default profile.
    in addition i cut all the profiles out of the profile folder and cc'd to another location on another drive thinking that'd prevent the default from corrupting the other files, nothing.
    brief history(sorry for the long post)
    I ran a windows update prior to leaving on vacation, shut the PC down & when I came back the pc wouldnt boot. reset my bios to default and finally got back into windows & it finished the update.
    when i got back in, ff3 was giving me problems and kept hanging up for some reason. so i hard reset & tried to implement my OC profile in bios. i was not able to get back into windows w/ my OC profile again, so i again went back to default bios.
    ever since then ff3 will not work. ie8 works fine, no viruses reported thru mse, i cant figure it out!
    any help would be greatly appreciated, thanks.

    well i kinda fixed it i spose...
    i deleted everything in appdata under mozilla & macromedia and deleted the plugins folder from my installation folder for ff3. uninstalled ff3, reinstalled ff3. now everything works fine. just have to redo my bookmarks & settings.
    sorry to waste anyone's time...but hopefully if someone else has the problem, now they can fix it. peace.

  • Jtabbed pane problem + flags printout

    Hi,
    I am having difficulty displaying a JTabbedPane which is contained by a dialog. When I display the Dialog for the first time the Tabbed displays perfectly - anytime after that it disappears.
    I found this really strange so I put in some printout statements for the JTabbed pane here's what I got
    When it displays the prinout for the JTabbed pane is ............................
    extCellTabbedPane
    rnh.adj.cellhandovermgt.gui.refactor.ExtCellTabbedPane[,0,0,0x0,invalid,layout=javax.swi
    ng.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout,alignmentX=null,alignmentY=null
    ,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,haveRegistered=false,t
    abPlacement=TOP]
    When it does n't display the prinout for the JTabbedPane is
    rnh.adjcellhandovermgt.gui.refactor.ExtCellTabbedPane[,0,67,193x45,inv
    alid,layout=javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout,alignmentX
    =null,alignmentY=null,border=,flags=16,maximumSize=,minimumSize=,preferredSize=,
    haveRegistered=false,tabPlacement=TOP]
    What I am interested in is the meaning of the parameter flags. In one case it is 0 and in one case it is 16? What does this parameter mean? Where I can get some information on this as I think this will tell me what is happening to the JTabbedPane.
    Thank you in Advance
    Alex

    The flags item reflect the flags value in JComponent
    class. It represents several status
    of the component:
    REQUEST_FOCUS_DISABLE
    IS_DOUBLE_BUFFERED
    ANCESTOR_USING_BUFFER
    IS_PAINTING_TITLE
    HAS_FOCUS
    IS_OPAQUE
    As my understand about your problem, this may be no
    help for you to locate the error
    As the message you post, you might use a third
    implementation of JTabbedPane, so the
    problem might be in the implementation. I
    have used JTabbedPane often with no error
    like you say :)
    Hope this Helps!Thanks for your help here - I would like more information if possible i.e. a numerical mapping for each property - do you know where I could get this. I don't really understand what you mean about the Third implementation. Do you mean simply extend the JTabbedPane? Thisis what I do but I don't really know what part to change to stop it disappearing. Thanks once again. Anymore help would be greatly appreciated.

  • X JPanels in a JTabbed pane.

    I'm wondering if anyone can help.
    I have an application consisting of a JTabbed pane, within this there should be 'x' JPanels. Each JPanel has 3 RadioButtons and 5 Text fields. I need to be able to refer to each radio button and text field as RB0 - RBx and TF0 - TFx.
    It is obviously easy enough to do this for just 3 or even 20 (despite a lot of coding), however, my problem is getting a variable number (x) of Panels with respective variable numbers of TF and radio buttons.
    Simply I need to produce an array of panels, radiobuttons and textfields....
    anyone anyideas?

    another way of looking at it is to think how can I make 5 of exactly the same panel (just with different names) in the same tabbed frame in just one bit of code that is called 5 times - or x in this case.

  • Hi First time Posting.  I can't find Preferences.  It is not listed in Finder.  Please make it simple, thanks, Carol

    Hi, My first time posting.  Have been going in circles and need some help.  Started with not being able to find my memory stick, didn't show up on desktop.  Think I found a way in but the main problem right now is I cannot find Preferences.  All posts I have checked say to go to Finder and click on Preferences, but it is not there.  Can anyone help.  Thanks

    You have to click on the word "Finder" in the menu bar. (If you do not see the word click anywhere on the desktop.) When you do that you will see a list of options. In the list, click on Preferences. Another pane will open.
    Now click General (on the top row), then select everything by clicking on all the boxes in the section "Show these items on the desktop:"
    Close this pane.

  • When i select the Full Screen option in video streams (like youtube, veoh, anything like that) i can do that 1 time 2nd time the screen goes blank and can only exit it with the Esc button and then i have to restart firefox and again i have my one Full ...

    When i select the "Full Screen" option in video streams (like youtube, veoh, anything like that) i can do that one(1) time second(2nd) time the screen goes blank and can only exit it with the escape(Esc) button and then i have to restart firefox and again i have my one "Full-screen Ticket"

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • Focus event with JTabbed pane

    How do I set FocusListener to fire with I select a specific tab in a JTabbed pane? If I put the FocusListener on the Tabben pane it fires rquardless of which tab I select and if I try to use an if statement to single out a specific tab nothing happens.

    If you are interested in listening to when a tab is selected you can use a ChangeListener:
    JTabbedPane tab = ...
    tab.addChangeListener(new ChangeListener() {
        public void stateChanged(ChangeEvent e) {
            // get the selected tab-index:
            int index = ((JTabbedPane)e.getSource()).getSelectedIndex();
    });Btw, Swing related posts should be posted in the Swing forum.

  • Can't Open PDF 2nd time

    I can't open a pdf the 2nd time I open the file.  Works fine on other PC's with XP & 7, Adobe versions 9 through 11.  But on this PC (XP) I can not open the file on any Adobe Reader version either from the desktop or the original CD it cam on.  It will open fine the first time after I uninstall Adobe Reader then re-install it.  On the 2nd attempt I get a message that the file is either damaged or a file type unsupported.  it will still open fine on other computers.  What am I missing?  Is there some setting on this computer to change?  Any suggestions?  Thanks

    Can you please let me know the following:
    1. Which version of the Adobe Reader are you using. Please let me know the exact version by clicking on Help > About Adobe Reader from within the Reader application.
    2. How exactly are you opening the file on you system. Are you opening it by double clicking on the PDF or by navigating to File > Open and then selecting the file. Please try both ways and let me know if you see the same behavior.
    3. Is the file present on your local disk or on a network location?
    4. Are you trying to save the file post opening it in Adobe Reader?
    5. Can you try saving the following file on to your system (under say C:\) and then try opening the same twice. Does it result in the same behavior.
    http://helpx.adobe.com/content/dam/kb/en/837/cpsid_83708/attachments/Acrobat_Reader_Releas eNote_10.1.2.pdf
    Thanks
    Ankit

  • How can I sync my new iPad with my itunes account on my 4 yr old macbook? I plugged the iPad in once and all music synced. The 2nd time it said update needed. Mac says no update available.

    How can I sync my new iPad with my itunes account on my 4 yr old macbook? I plugged the iPad in once and all music synced. The 2nd time it said update needed. Macbook says no update available.

    " how can I sync my iphone to my mac book without losing all the music and pictures on it?"
    You cannot.  Copy everything you want form the old computer to the new one, then sync it.
    it basically says you have to erase your iphone to sync to a new itunes!
    Correct Iphone will sync, or manually manage, with one and only one computer/library at a time. Syncing, or manually managing, to another will indeed erase the current content.

  • Time Capsule flashes amber and loses connection at least once a day

    Hello,
    I got my Time Capsule a month ago. I had an old one from 2008 which I gave to a friend, so it was time to upgrade. I have no idea what's going on, but the Time Capsule flashes amber and I lose my Internet connection at least once a day, sometimes two or three times within a few hours.
    Is anyone else experiencing this? Any idea how to fix it?
    If it matters, I'm on a mid-2010 MBP running OS X 10.8.5.
    Thanks!

    You and everyone else.
    https://discussions.apple.com/thread/5140686?tstart=0
    It is not stable firmware.. or has issues .. with some modems.. or is just faulty.. pick one or two choices.
    There is no fix because this is really a bug.

  • Brand new ideapad u300s going into depot for 2nd time in in less than a month

    Hi,
    I can't seem to get any help on the phone, all I get told is send the unit in.  I ask to speak to a supervisor and you tell me they will call back in 24-48 hours; it's been a week.  I call back and ask to speak to a supervisor and you tell me it's the weekend and none are available, maybe we can have one call you back later.  This is considered lenovo support.  
    I bought a computer for my wife's birthday, an ideapad u300s, and the first week everything is working great.  However, the LCD turns out to be faulty.  So we send it in to the depot thinking no big deal they'll fix it immediately and send it back to us. However,  the computer sat in the depot for over a month and we heard nothing.  We called tech support and asked a for a refund or a new unit but, basically, we were just transferred, told a supervisor would call us - which they did not -  and given the standard answer that they would prioritize our situation.  Finally,  it's repaired and in the mail.
    We receive the computer everything seems fine, then my wife notices that it doesn't recognize the a/c adapter so the battery is now drained and we can't do anything.  We call lenovo again they tell us send it in, I ask for them to send someone here since last time I called you tried to sell me an extra warranty after I've only had the computer for a week.  Lenovo tells me that's impossible if you want someone to come onsite we have to pay for it.  Fine I give up I am tired of dealing with you over the phone I am sending the computer back for a 2nd time.  
    My wife has used the computer all of about 2 weeks and her birthday was in late March.  
    I cannot understand how you can operate like this; I've never experienced such poor customer support and general apathetic attitude of your phone reps.  
    Simply put, I will never buy another Lenovo product again; I am sure you don't care though if it's anything like your phone support.

    It depends on how critical your connection is. Business customers get a much faster repair time, and are given priority over residential customers, and will pay compensation on some of their SLAs.
    If you do not mind being without service for three to seven days, then the residential service should be fine, otherwise you should be on a business package, with a proper SLA (Service Level Agreement).
    Its not simply the amount of usage you make of the service.
    The residential service is aimed at the general public, who use it for web browsing, e-mail, gaming, and streaming services like YouTube.
    You can get advise on this forum from other residential customers, but they are not going to be able to fix your faults, as this is only a customer to customer forum.
    The firmware issue is discussed on a number of threads on the  forum. Alternative VHDSL modem/routers are also suggested.
    https://community.bt.com/t5/BT-Infinity-Speed-Connection/HH5-constantly-reboots-every-3-minutes/td-p...
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Songs dont even show up on my ipod anymore 2nd time happening

    I have a 4th generation ipod with color that shows the photo
    My ipod had recently somehow got rid of all my songs the first time i didnt kno how but by the 2nd time i had all my songs on there and i just plugged it into my computer last night to charge, there was songs on it before i plugged it in but in the morning when i check on it there was no songs left at all.
    I have zero songs, and about 7gb of free space left? wth is wrong with my ipod?

    Kingnitro wrote:
    I went to search for a song on my iphone 6+ the other day, it doesnt even show up on my song list!  Yet on my Mac Mini I open up my Itunes, its there and it plays right away!   What is wrong?
    The song is not on your iPhone.
    See this -> https://www.apple.com/support/itunes/syncing/

  • 2nd time Loop error in rejection reason/changes req

    Hello experts,
    I have created an wf with loop step.
    In that loop branch,m displaying a doc in approvers inbox, then i have put a decision step with 2 button - 'Approve' and 'Changes req'.
    For button Changes req, loop will continue.ok
    In tht changes req branch, i hv put a task of BO SOFM, method- create for approver so tht he can enter thr wht r the changes he wants.
    thn i hv put task as BO SOFM, method-display for initiator so tht he can see the changes req.
    thn doc will opened in edit mode for initiator to make req changes.
    thn it will agn go back to approver for approval.
    he will agn get the decision screen with 2 buttons.
    now while testing this....this all worked fine when approver clicked in button 'changes req' in decision box..after tht SOFM create worked fine.
    But during 2nd time whn approver is checking the doc 2nd time and still he again wants some other changes to be done so he will agn click on button 'changes req'. this 2nd time tht SOFM-create is not working and wf goin to error as -
    1. Notification of completion cannot be generated
    2. Problems occurred when generating a mail
    3.Error '9' when calling service 'SO_OBJECT_SEND'
    4.Error handling for work item 000000006050
    PLz suggest how this can be solved.
    Best Regards
    Nitin

    I think you might have to use the EDIT method of SOFM Business Object as you are going to change the existing document.
    Thanks
    Arghadip

  • Error in sending mail 2nd time, Where is the fault- Help Please

    Hi friends,
    I had written a program to send mail. Everything is fine, when i send first time. But if I try to send mail 2nd time, It gives the error:
    Exception in Connect: IOException while sending message
    Here is the complete code what i had written, It successfully connects using t.connect();
    the problem in t.send();
    output on JBoss Console is :
    Inside Action
    After Transport t = session.getTransport(protocol)
    before t.connect()
    after t.connect()
    Exception in Connect IOException while sending message
    import java.io.*;
    import java.util.*;
    import javax.activation.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.servlet.http.*;
    import org.apache.struts.action.*;
    public class MsgSend extends Action {
         @Override
         public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request
                   , HttpServletResponse response) throws Exception {
              response.setContentType("text/xml");
              PrintWriter out = response.getWriter();
              System.out.println("Inside Action");
                String to = request.getParameter("to");
             String bcc = request.getParameter("bcc");
             String cc = request.getParameter("cc");
             String subject = request.getParameter("sub");
             String user = request.getParameter("user");
             //String password = request.getParameter("pass");
             String message = request.getParameter("message");
             String from = user + "@domainname.com" ;
             /*Properties props = System.getProperties();
             props.put("mail.smtp.host", "smtp.vsginc.com");
              MailBean  bean = MailBean.getInstance();          
              Session session = bean.getSession();          
              String protocol = "smtp";
              Transport t = session.getTransport(protocol);
              System.out.println("After Transport t =              session.getTransport(protocol)");
             MimeMessage msg = new MimeMessage(session);
             msg.setFrom(new InternetAddress(from));
             InternetAddress[] address = {new InternetAddress(to)};
             msg.setRecipients(Message.RecipientType.TO, address);
             if(cc != null ){
                   InternetAddress ccAddr[]  = InternetAddress.parse(cc);
                   msg.setRecipients(Message.RecipientType.CC, ccAddr);
              if(bcc != null){
                   InternetAddress bccAddr[] = InternetAddress.parse(bcc);
                   msg.setRecipients(Message.RecipientType.BCC,bccAddr);
             msg.setSubject(subject);
             // create and fill the first message part
             MimeBodyPart messageBodyPart = new MimeBodyPart();
             messageBodyPart.setText(message);
             Multipart multipart = new MimeMultipart();
             multipart.addBodyPart(messageBodyPart);
             Attachment attachment = Attachment.getInstance();
             ArrayList<String> fileList = attachment.getFileNames();
             String parentFolder = null;
             for(String path:fileList){
                  File attachmentFile = new File(path);
                  messageBodyPart = new MimeBodyPart();
                  DataSource source = new FileDataSource(attachmentFile);
                  messageBodyPart.setDataHandler(new DataHandler(source));
                  messageBodyPart.setFileName(attachmentFile.getName());
                  multipart.addBodyPart(messageBodyPart);
                  parentFolder = attachmentFile.getParent();
             // add the Multipart to the message
             msg.setContent(multipart);
             // set the Date: header
             msg.setSentDate(new Date());        
             try {
                  System.out.println("before t.connect()");
                   t.connect(bean.getSmtpServer(),bean.getUsername() ,bean.getPassword());
                   System.out.println("after t.connect()");
                   //Error is coming here in this Line.
                   t.sendMessage(msg, msg.getAllRecipients());
                   * System.gc(); will relese the fileHandles, if some resource
                   * still holds it.               
                   System.out.println("before System.gc()");
                   System.gc();
                   * Deleting All the Files from Attachment Folders.
                  System.out.println("before attachmentFolder");
                  File attachmentFolder = new File(parentFolder);
                  System.out.println("Attachment Folder Name is : "+attachmentFolder.getAbsolutePath());
                  if(attachmentFolder.isDirectory()){
                       File[] files = attachmentFolder.listFiles();
                       System.out.println("No of Files For Attachments are: "+files.length);
                       boolean deleteResult = false;
                       for(int i=0; i<files.length; i++ ){
                            deleteResult = files.delete();
                        System.out.println(files[i].getName() + " Delete Staus is :"+ deleteResult);
              System.out.println("All attachments Deleted");
              out.print("<result>Mail has been sent successfully</result>");
              } catch (Exception e) {
                   out.print("<result>Mail sending failed</result>");
                   System.out.println("Exception in Connect "+e.getMessage());
              }finally{
                   t.close();               
              return null;
    Problem only comes, when i send 2nd time or more. What is the problem? Please help me out.
    Thanks for your response in advance. One more thing, Whether to send a mail & receive a mail, we need to create different sessions. one for sending & one for receiving mails.
    Message was edited by:
    Ashish.Mishra16

    I don't see anything obviously wrong in your code. Try adding
    session.setDebug(true);
    You can use the same Session for sending and for reading.
    A Session just encapsulates your configuration parameters,
    so as long as they're the same for both usages, one Session
    is fine.

Maybe you are looking for

  • What authorization required to deploy module from NWDS 7.1

    Hi Experts, Need to deploy custom adapter module from NWDS 7.1 to PI server, Please help me to know exact access/authorization role required one developer to publish the module. I have gone through many blogs and thread but not able to find exact adm

  • How to downgrade my icloud storage if I no long have that device

    HI I received an email telling me I will be charged for my icloud storage in the 13th but I no longer have my iPhone or downgrade this storage plan. ANy ideas how to stop them taking this money from my account. I can't get any telephone numbers to ca

  • Printing problem; pages are junk text on paper seems to be all sites

    Content displays normally but when printed the text appears on paper as junk text and mixed characters. This has occurred with Earthlink home page, Bank of America and Wells Fargo online banking and even the Firefox 4 Beta 12 feedback page. I only ha

  • Video wont fill upp entire screen when looking at TV

    I just cant get the aspect ratio correct. Ive searched everywhere (entire internet) f or an answer but cant find it. This is not a specific AE-question but I have the same problem there. Im trying to create a video slideshow that will run on a TV, pl

  • Down Load Material related to 2005B

    Hi, I want to download some of the Indian Localisation material for SAP Business One 2005-B. Please update for the same. Thanks, Vipul Kapoor