Search text in all the labels in a panel (like control-F)

hi,
I have a Panel where I configure some preferences of the application. There ara about 200 preferences. (a preference is a JLabel plus a textfield/combobox/checkbox)
I would like to know if someone has implemented something like control-F in browsers. The search should go through all the labels and highlight the label(s) that contain the text.
thanks.

You can use getComponents() method to get all components added to the Panel. Iterate through the array and check whether the current one is a JLabel instance. Then check JLabel's text and compare with the search string. If necessary label found highlight it (e.g. by changing text color or adding/removing colored line border). Then you can use the JLabel's bounds to make it visible in a scroll (if any).

Similar Messages

  • Pulling the Header text  for all the purchase orders

    Hello,
    Please help in resolving the below:
    Is there any code in SAp to pull theHeader text for all the purchase orders in the data base,
    Any tcode to pull the specific text automatically to pull the text from the requsition ( Plant wise in sourcing).
    Thanks

    STXH Text header 
    STXL Text detail
    Chk the below message thread
    Table to read PO Header text and item text
    BR,
    Krishna

  • HT1688 why are my imessages now turning into text messages all the time?

    Why are my iMessages now turning into text messages all the time?

    There are a number of reasons why they may be sent as regular sms and not iMessages. If either party is in an area with poor reception and the the data network is struggling, the regular sms messages will be sent to the recipient. iMessage can be switched off at a users convienince, your recipients may have iMessage turned off when you've sent those messages.
    There are instances where the iMessage server is not responding due to techinical issues (although, few and far between)

  • In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.

    Hi all
      In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.
    Thanks & Regards,
    Rajib.

    Isn't that just exactly what transaction CO02 does? CO01 is for creating production orders so what sense does it make to have it display mode only?
    Maybe your goal is to stop then end user changing the component assignment that is automatically  detected by the system. If so, personally I think a better starting point would be PP configuration or user authorizations rather than looking to change the screen by whatever method. As we don't know what you are trying to achieve it's hard to offer much more advice maybe all you need is to change transaction to CO02

  • I am making a book in iPhoto using a double page spread and blank layout. I can't find a way to minimize the picture. it is too big in all the themes. I seems like there must be a way to shrink it not just zoom to make it fit?

    I am making a book in iPhoto using a double page spread and blank layout. I can't find a way to minimize the picture. it is too big in all the themes. I seems like there must be a way to shrink it not just zoom to make it fit?

    Command (right) - click on the photo and select Fit to Frame in the contextual menu:
    Not all frames in a theme offer that feature but most do.  The spread layout doesn't.
    OT

  • I can't view old iphoto libraries. It wants me to use a new version of iphoto but from all the commits here, no one likes it. Help! how do i get to my old libraries???

    I can't view old iphoto libraries. It wants me to use a new version of iphoto but from all the commits here, no one likes it. Help! how do i get to my old libraries???

    With the amount of information you've provided it's impossible to offer a potential solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    what do you see when iPhoto opens?
    what fixes have you tried?
    where is you library located?
    did you apply any updates or upgrades just prior to the problem occurring?
    are you running a "managed" or "referenced" library?
    what type of Mac?
    how much free space on your boot drive?
    OT

  • Disable all the components of a panel ( panels within the main panel )

    Hi guys!
    I have a problem!
    i have to disable all the components of a panel. please note that i am also having panels within the main panel. please tell me how to do that!!!
    its urgent!!

    Hi guys!
    I have a problem!Wouldn't have figured that one out by myself ...
    its urgent!!No, it's not.
    You know, a panel is most often a subclass of Container, so all you need to do is recursively disable all child components. The methods getComponents and getComponent are very helpful when trying to access child components. Code likeif ( comp instanceof Container )
      // do soemthing
    }will help in determining whether a child component is yet another Container.

  • Why all the domain values disappeared from ESB control after chinese map?

    hi,
    when I creating a domain value in chinese in the ESB control and confirm it, After I restart the
    soa service, all the domain values that I created before and the one in chinese disappeared.
    Although the domain values in english desappeared, in the code they are still can be used.
    But the domain values in chinese can not be used.
    All the maps(both english and chinese ) are in DVM Repository.
    Can you help me ??? Why all the domain values disappeared from ESB control ?? thanks
    wanglinli

    two collegues of mine ran into a similiar problem. Their ESB console seemed empty as well.Until one of them let the console open for about 10 minutes and the services/system re-appeared.
    Indicating that when the services do not show up could also be caused by a serious performance glitch or the services are calling external systems which time out.
    Another option is to wait for a few minutes and see if your services etc show up again.
    I don't know where this performance degradation is coming from though. The only thing I noticed is that the ORAESB schema ( advanced install ) is installing al of its objects in the USERS tablespace and that most ( almost all ) tables do not have any indexes / pk / fk's on them.
    Maybe one or two indexes could speed up the ESB repository considerably.
    Dave, In the upcoming 10.1.3.3 release is the repository in any way altered? Default tablespace? PK/FK and/or extra indices on certain tables/columns?

  • White screen appears instead of the wallpaper after starting up and all the funtions are working properly like the brightness and the vol

    white screen appears instead of the wallpaper after starting up and all the funtions are working properly like the brightness and the vol

    Hello again V.K,
    I'm taking the computer to assistance as suggested. Even tho I'm almost 100% sure that this isn't a hardware issue.
    Here is why I'm not wasting my time on my affirmative. I'm computer science bacharelor, I know about computer architeture and S.O architeture and also I'm computer developer for more than 10 years now. All behaviors presented have no connection with hardware problems. What I'm trying to say is that I'm not just saying things for saying, I have a logic behind what I say.
    For a short example, whenever mouse right click stops working on a specific window/software, if I click on the window top border and drag it around and go back to the window content, the click works again.
    Also, my keyboard and mouse work via usb. Usb is working normally. If I plug a usb memory stick it shows that usb is working as it should be.
    On windows, right button click is also not working inside any software window, but if I click on start button, icons on desktop, anything on windows epxlorer, it works as it should be. Isnt't there bootcamp underneath windows ?
    on top of it, it's a brand new mac, i have it for 5 months.
    All these people that have the same problem, do u think all of them have hardware issues? Do you think Apple would keep releasing new computers with hardware problems and they wont have any information/recall for them? and worst, the problems start in a random date ?
    This is my first mac and all these problems, being hardware or not, makes me lose all confidence on Apple products.
    Davi.

  • How can I use the button in one panel to control the other panel's appearing and disappearing?

    How can I use the button in one panel to control the other panel's
    appearing and disappearing? What I want is when I push the button on
    one button . another panel appears to display something and when I
    push it again, that the second panel disappears.

    > How can I use the button in one panel to control the other panel's
    > appearing and disappearing? What I want is when I push the button on
    > one button . another panel appears to display something and when I
    > push it again, that the second panel disappears.
    >
    You want to use a combination of three features, a button on the panel,
    code to notice value changes using either polling in a state machine of
    some sort or an event structure, and a VI Server property node to set
    the Visible property of the VI being opened and closed.
    The button exists on the controlling panel. The code to notice value
    changes is probably on the controlling panel's diagram, and this diagram
    sets the Visible property node of a VI class property node to FALSE or
    TRUE to show or
    hide the panel. To get the VI reference to wire to the
    property node, you probably want to use the Open VI Reference node with
    the VI name.
    Greg McKaskle

  • Smart form - Long text in all the items?

    Hello gurus,
    We are using something similar to smart form (I don't know the exactly name, like pretty form).
    So, we are using a long text in the "Item text" by item.
    Sometimes the item can be more than 20 lines in the "Item text" as long text and sometimes not.
    Example: I have a PO with 4 items:
    Item 1 - Without Item text.
    Item 2 - With 20 lines in the Item text
    Item 3 -With 1 line in the Item text
    But, when the PO is printed, the PO form has to all the items 20 lines by item.
    That's mean that if in the first item I don't have item text, the first item is showed with a very long space in blank (space of 20 lines).
    The secont item is showed correctly.
    The third item has one line wrote and 19 lines in blank, like a long space in blank.
    How we can manage this situation in the format?
    How we can program these spaces to see in the format to the first item without the space in blank and to the third item only 1 item and the other 19 lines without being shown?
    Can you help me please a.s.a.p.?
    Thanks for your time and I will wait the answer.
    Regards,
    Sandra Palomo

    Hi ,
    Can you please let me know the solution implemented ?

  • Why ehen appending text file to text area, all the text in 1 line..

    please hlp
          public void actionPerformed(ActionEvent e)
              TArea.setText("");
              try
              String StrNeeded;
              BufferedReader BR;
              BR=new BufferedReader(new InputStreamReader(new FileInputStream("Data.txt")));
              StrNeeded=BR.readLine();
                   while(StrNeeded!=null)
                   TArea.append(StrNeeded);
                   StrNeeded=BR.readLine();
              catch(Exception excep)
    }this is my code m problem is that,
    i read a text file that has many lines, when i read it, i append it into the textarea, but what happend was all the text in my text area is in 1 line only(the other line is also appended but it is appended in the sama line.. help me

    readLine removed the line feed from the end of the line.
    You should append a \n to the end of the line like this:TArea.append(StrNeeded + "\n");Also it's a bad idea to catch an exception and do nothing.
    Add printStackTrace in the catch block.

  • How do I get rid of blurred text happens all the time now in Firefox web browser?

    Even when I was registering for this forum the text was blurred and multicolored sometimes. Its very annoying and hard to see. This is all the time with Firexfox. Chrome and IE I have no such issues.
    Also when I was taking an assessment test for a job application none of the answers took and I was told by the program that it was probably my browser. I used to use IE and never had any of these issues but changed to Firefox as I was informed that the security was better. All these issues have been frustrating to say the least.
    Thanks, Rita

    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache
    Press the '''<Alt Key>''' to bring up the tool bar. Then;
    '''Tools > Options > Advanced > Network > Cached Web Content: Clear Now'''
    and
    * Remove Cookies
    Press the '''<Alt Key>''' to bring up the tool bar. Then '''Tools > Options > Privacy.'''
    Under '''History''', select Firefox will '''Use Custom Settings'''.
    There is a button on the right side called '''Show Cookies'''.
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''''' {web link}
    While you are in safe mode;
    Press the '''<Alt Key>''' to bring up the tool bar. Then
    '''Tools > Options > Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites and see if there is still a problem. Then restart.

  • "searching" for signal, all the time now. . .

    so lately i've been noticing my iphone is constantly "searching" for signal in places were i used to get 3GS signal/service (full bars) all the time. now, i was ready to blame at&t outright, but lately whenever this happens i've been "reseting" the phone (home + sleep buttons) and after the reset i get full 3GS service again.
    why is this happening? is this an at&t issue, or an iphone hardware issue? why do i have to reset the phone to get a signal?

    Thanks for your suggestion but I tried that (several times) as well as restoring from backup and restore as to a new iPhone. I have switched off, removed sim, in fact everything that has been suggested by every support person I have spoken to at O2 and Apple. They seem to concur it is a network issue not the phone so I am going to buy an O2 sim today and take it with me to France tomorrow when I go home. I will try to use another phone (not iPhone) with O2 to see if it connects and also try to use my own sim from the iPhone in another phone. This will at least prove where the problem lies - though it will not resolve it of course. I am expecting to find it is the phone, not the network. I'll report back after the test.

  • From yesterday, I have been facing the problems in my iphone and my wife iphone. The same problem, "cannot connect to itunes store". I have strong internet connection. I tried all the possible way I could like setting, general, date and time.....etc.

    I have proble of "cannot connect to itunes store. After I have updated the new software ios6, the problem arised in one of my mobile. In the second mobile, I didnot updated the software.Today in the morning, the problem ariesed in that mobile as well. I cannot open the itunes, don't have access to apple store . I tried to solve the problem like going to setting, general, Date and time, automatically off, keeping one year ahead date. I tried all the possible options I could get from the googel. How do I get rid of this problem?

    No - I have not tried other routers on my network.
    What I meant was I could use my itouch on other users wireless networks without any issues.
    I'll update the routers DNS to try  using Google's 8.8.8.8 instead of my ISP.
    Is the issue DNS performance using local ISP -or are there other possibel isues when using local isp DNS?

Maybe you are looking for