How to map small letters  with capital letters????

Hi,
In my application i have to filter the element in the JList.......
The filtering techniques i used have done the correct job .....
But i had the problem that Jlist contains the elements with Titlecase...when i give the small 'a' in the textfield i should require to display element with starting with A element
DocumentListener listner = new DocumentListener() {
public void insertUpdate(DocumentEvent e) {
javax.swing.text.Document inse = e.getDocument();
try {
lastsearch = inse.getText(0, inse.getLength());
filter(lastsearch);
} catch (Exception tt)
tt.printStackTrace();
public void removeUpdate(DocumentEvent e) {
javax.swing.text.Document inse = e.getDocument();
try {
lastsearch = inse.getText(0, inse.getLength());
filter(lastsearch);
} catch (Exception tt)
tt.printStackTrace();
public void changedUpdate(DocumentEvent e) {
jTextField5.getDocument().addDocumentListener(listner);
jList1.setModel(listmodel);
the filter method contains the following code;
void filter(String search) {
listmodel.clear();
for (Object element : collect) {
if (element.toString().indexOf(search, 0) == 0) {
listmodel.addElement(element);
//fireContentsChanged(this, 0, getSize());
private void fireContentsChanged(student aThis, int i, Dimension size) {
// throw new UnsupportedOperationException("Not yet implemented");
My listmodel and collect contains the following elements
Aruna
Anub
Sivekumae
pls help me out
Shanthy

you are comparing strings with
if (element.toString().indexOf(search, 0) == 0) {what you can do is do something like
if (element.toString ().toLowerCase ().contains (search.toLowerCase ())) {All the converting toLowerCase is just so the caps are ignored. If you really want starting strings only, you use startswith instead:
if (element.toString ().toLowerCase ().startsWith(search.toLowerCase ())) {hope this helps!

Similar Messages

  • How to map Idoc fields with external file

    Hi All,
    How to map Idoc fields with external file.
    I want to check the settings where Idoc fields are mapped with external file.
    Thanks in advance.
    Regards,
    Govind.

    If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment

  • How to map a query with the Multiprovider?

    Hello All,
    Can any one please tell me how to map a query with a multiprovider?
    Appreciate your help.
    Regards,
    Soumya.

    Hi,
    Can you please elaborate , do you mean how to create a query with multiprovider. if that is your question it is very simple just create the query on the multiprovider.
    What is the purpose for mapping the query with multiprovider

  • How to map secondry elements with main if have same ids for both?

    I need to map secondry elements with its matching primary elements if they both have same id.
    How can this be achieved in xslt.
    If ids are not matching then not a single element of secondry sholud be shown.
    If ids matching, then other fields of secondry elements, should be mapped to similar fields of primary elements.
    Eg: Its like some program running and in between some add on programs started (may be trailor or advertisement).
    the add on program is not always shown (optional), and whenever shown it has its own data information etc etc.
    Please provide me some input, how to map and proceed.
    Not sure what this code is really doing.
    <xsl:template match="SECONDARY_EVENT_LIST">
              <xsl:variable name="secondaryElements" select="ancestor::SCHEDULE/SECONDARY_ELEMENT_LIST"/>
              <xsl:for-each select="SCHEDULE_ELEMENT_ID">
                   <xsl:variable name="id" select="."/>
                   <xsl:apply-templates select="$secondaryElements/SCHEDULE_ELEMENT[(@ID=$id)]"/>
              </xsl:for-each>
         </xsl:template>
    Is this having any relation with what my requirement is all about?

    Hi,
    You can use XPATH command to get the exact tag.
    You can access each tag with it location like “/Report_Name/Group_Tag/Element_ID”.
    I think this will remove the ambiguity of Tags with same ID.

  • How to map a table with out a primary key with a pojo?

    hello
    Is it possible to map a pojo with a table, table don't have primary key. I m using hibernate,How to do that in hibernate.
    Thanks &Regards
    snimi

    Hello,
    EclipseLink has support for database object-relational datatypes, but they are not supported or exposed through JPA. Instead, you will need to leave it unmapped and then change the mapping, using a customizer to create the mapping described:
    http://wiki.eclipse.org/Introduction_to_Object-Relational_Data_Type_Mappings_(ELUG)#Object-Relational_Data_Type_Array_Mapping
    Best Regards,
    Chris

  • How to map development object with quality object

    Hi
       I have problem regarding to mapping development object with quality  object  i.e the  development object will be order_dev  and quality object will be order_ qa ..i have to map this two wat is the process..
    thanku

    You have an object in QA and not in Dev....you want to map this QA object with an object in Dev.....create a same object in DEV and then do the mapping....then transport.....you should have both the objects in both the environments.
    When you say map...i assume it to be the mapping program (message/ XSLT/ JAVA)
    Regards,
    Abhishek.

  • How to update small letters into a database table

    Hi Guys,
                    Iam updating a database table. I want to update lower case letters into the table. But by default all the lower case gets converted to Uppercase. How to acheive this requriement.?
    Regards.
    Harish.

    hi
    On the domain of the particular field , within the definition tab you have to select the lower case check box . Only if this is checked then alone the values with lower case will be saved else it will be converted to upper case by default.
    Hope this will answer your need.
    Please give 10 points
    - Dheepak

  • How to map IDoc segment with qualifiers

    Hi everyone!
    I have the following problem: In an IDoc of type DESADV01 there can be several segments of type E2EDS01. Each segment has a different qualifier, which is the value of the field SUMID in this case. My target structure (type EDIFACT) now has several segments, each again with a sort of qualifier. Now I have to map the values of certain source segments to the respective target segments.
    Exaple (in XML format):
    Source
      <E1EDS01 SEGMENT="1">
        <SUMID>021</SUMID>
        <SUMME>0000000001.000</SUMME>
        <SUNIT>KGM</SUNIT>
      </E1EDS01>
      <E1EDS01 SEGMENT="1">
        <SUMID>022</SUMID>
        <SUMME>0000000001.000</SUMME>
        <SUNIT>KGM</SUNIT>
      </E1EDS01>
    Target
      <S_MEA>
        <C_C502>
          <D_6313>N</D_6313>
        </C_C502>
        <C_C174>
          <D_6411>KGM</D_6411>
          <D_6314>1</D_6314>
        </C_C174>
      </S_MEA>
      <S_MEA>
        <C_C502>
          <D_6313>G</D_6313>
        </C_C502>
        <C_C174>
          <D_6411>KGM</D_6411>
          <D_6314>1</D_6314>
        </C_C174>
      </S_MEA>
    (i have omitted several details here, but I'm only interested in the general procedure anyway).
    So in general the source segment with qualifier "021" should be mapped to a target structure with qualifier "N" etc.
    How can this be done using standard XI mapping techniques?
    Regards, Joerg

    Hi everyone!
    Thanks for your input data - unfortunately this wasn't quite what I was looking for. However I thik I solved my original problem and I just wanted to share this solution with you - maybe it helps others, maybe some of you have suggestions what I could do differently.
    To sum up the requirement: There can be multiple input segments, each with a certain qualifier. These input segments have to be mapped to the target segments, respectively - however, the qualifiers change. There can be several segments with qualifiers that do not match the requirement, and required segments might be missing.
    So here's what I came up with:
    Use the qualifier of the source segments as an input to a <b>FixValues</b> function. In this function, map the desired qualifiers to the value <b>true</b>, use <b>false</b> as the default value. Map the output of the <b>FixValues</b> function to a <b>createIf</b> function and use this to create the desired output segment. This way, for each of the required segments, one target segment will be created. All other segments (with unwanted qualifiers) will be removed.
    So far, this technique worked for me - do you have improvements/suggestions?
    Regards, Joerg

  • How do Map files work with a Windows application?

    I need confirmation on how map files work.
    I have created a map file previously and have updated the HTML help with a few new topics and changed the Title on a handfull of topics.
    The map file setup is done for the new topics, but I am thinking I need to "fix" those topics whose title has changed.
    I have opened the Map.h file I created and looked at the references, for simplicity sake lets say it looks like this:
    #define Dials_Setup 1
    #define Project_Setup 2
    #define Scenario Scenario_Setup 54
    I assume the mapping process goes like this:
    (1) I hand off map file and the CHM help file
    (2) Developer addes the ID of "2" to the Project Setup window form
    (3) When the user is on the Project Setup window, they press F1
    (4) The Project Setup window form gets the ID of "2"
    (5) The Map.h file translates the "2" to "Project_Setup" topic title
    (6) The CHM is opened to the topic with a title of "Project_Setup"
    So, if I changed the title of the topic from "Project_Setup" to "Project_Setup_Window" would I have to update the line item in the Map.h file from "Project_Setup" to "Project_Setup_Window" for the mapping to work and the client to see the correct topic when the press F1?
    I am thinking these all need to be in sync between the Map.h file and the CHM file.
    As always, thanks for any guidance.
    Michael F Weart

    Hi, Michael
    You have it right - basically. I'll just add a few notes.
    Yes. Typically you would give the .h and the .chm file to the developer. However, sometimes the developer will give you a .h file created from their IDE tool (e.g., Visual Studio). In that case, you would Import the .h file into your RoboHelp project and map it that way. Or it can be a combination as long as there are no duplicates of Map #s or Context IDs. Another tip: You can also generate a Map File Report (Tools > Reports > Map IDs) which can be a handy guide for the developer.
    Note: The alphanumeric string for the Context ID (sometimes also called a Topic ID) does not necessarily have to be formed from the Topic Title. The reason it may seem that way is because RoboHelp uses the Topic Title as a matter of convenience to help you keep track of the which topic is being mapped.  The main thing is that there are no duplicates and RoboHelp has a report for that as well. In Microsoft HTML Help (.chm), the actual mapping from the .h Map # to the URL of the actual topic can be found in the .ali (alias) file which can be found in your Project root. The .ali file is compiled into the .chm itself.
    Here is a good Online Help topic with more details:
    http://help.adobe.com/en_US/robohelp/robohtml/WS5b3ccc516d4fbf351e63e3d11aff59c571-7ff9.ht ml
    Rob Chandler has really good documentation for Microsoft HTML Help which you will find here:
    http://helpware.net/htmlhelp/how_to_context.htm
    John Daigle
    Adobe Certified RoboHelp and Captivate Instructor
    Evergreen, Colorado
    www.showmethedemo.com

  • How to map small enter some other key?

    Hi,
    Is there a way in Leopard to map the small enter o bottom right of MacBook keyboard to some other key, i.e. Option Key ?
    I need it realy badly!
    Cheers people!

    Hi,
    I'm sure you Mac cats know how resolve this issue.
    Peace!

  • How to create small PDFs with reasonable quality images?

    Help me Obiwan Adobe!
    There seem to be several utilities around the web that claim to do this, but I figured I'd ask the experts first. There must be some sort of step by step technique outlined somewhere that enables you to create PDFs that have reasonable image quality but don't come with such extreme weight that they can't be emailed.
    I have seen suggestions ranging from using the Print to PDF function in InDesign (sometimes that works, sometimes not), to exporting out of InDesign using the PDF/X1a preset (used to work ok, but now does not seem to crunch the files down as much as they used to) to adjusting preferences to a lower screen resolution—not in the export or save as dialog box—then saving as reduced size. I've tried almost every technique I have seen but to no avail.
    So I assume there is something I am missing. In builiding an InDesign file that you want to severely compress, is it better to use JPEGs or other PDFs or something else for placed images?
    I know it is alot to ask, and clearly native Acrobat functions are not much help, but I have several uses for this. I do a lot of book design and prefer to send drafts to clients that are at least good enough for them to look at without fuzzy images. I also would like to put together a portfolio PDF document that does not require sending through FTP. In fact most places that ask for my portfolio PDF want it smaller than 1.5 MB. That seems to be impossible.
    So there you go. Somebody needs to write a book. In fact, if I get some good direction, maybe I'll do it.
    Thanks

    A lot depends on the types of images you have and the resolution. You may be best adjusting the resolution first in InDesign and then creating the PDF. For the options in the export, you may have to ask in the ID forum since the export is an ID function. Printing to the Adobe PDF printer is the other that was suggested (I usually hear that the ID export is the best way to go, but I don't have ID to confirm). In printing to the Adobe PDF printer there are several options to consider -- one is the selection of the job settings to use. The default is Std that embeds all but the Adobe fonts and has a slightly lower graphics resolution than Press or Print settings. Also, in the advanced button of the Adobe PDF printer>layout (may vary with Acrobat version), select the Graphic>Print Quality and lower it. I use 300 dpi and several others recommend 600. The default is 1200 that is useless unless you are expecting folks to zoom to see fine details.
    If you open the job settings Adobe PDF Settings>Default Settings (select one of the settings files - probably press or print, or try Std if you want) and check the graphic tab to see the resolution that will be used for the graphics. A combination of this resolution setting and the Print Quality should address your issues.

  • How to map different dataset with ESB

    Hi All,
    We have an interface in which an application is exposing webservice, but the way the msg format defined at the Requestor is not as provider
    eg: wsdl of Service Requestor
    <s:element name="sample">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SampleXML" type="s:string" />
    </s:sequence>
    </s:complexType>
    sending the entire msg data in the element SampleXML
    sample data:
    <Complaint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TestSchema.xsd">
    <Com_Source_ID>1</Com_Source_ID>
    <Address1>Test Address1</Address1>
    <Address2>Test Address2</Address2>
    <Address3>Test Address3</Address3>
    <Address4>Test Address4</Address4>
    <District>MUMBA</District>
    the wsdl of the Service Provider looks like
    <xsd:sequence>
    <xsd:element
    name="Id"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string30">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine1"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine2"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewCity"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string50">
    </xsd:element>
    </Sequence>
    How can i map these different dataset using ESB.
    Any Ideas..
    Thanks,
    Azeem.

    Hi All,
    We have an interface in which an application is exposing webservice, but the way the msg format defined at the Requestor is not as provider
    eg: wsdl of Service Requestor
    <s:element name="sample">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SampleXML" type="s:string" />
    </s:sequence>
    </s:complexType>
    sending the entire msg data in the element SampleXML
    sample data:
    <Complaint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TestSchema.xsd">
    <Com_Source_ID>1</Com_Source_ID>
    <Address1>Test Address1</Address1>
    <Address2>Test Address2</Address2>
    <Address3>Test Address3</Address3>
    <Address4>Test Address4</Address4>
    <District>MUMBA</District>
    the wsdl of the Service Provider looks like
    <xsd:sequence>
    <xsd:element
    name="Id"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string30">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine1"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewAddrLine2"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string100">
    </xsd:element>
    <xsd:element
    name="AddressMaint-NewCity"
    maxOccurs="1"
    minOccurs="0"
    type="xsdLocal1:string50">
    </xsd:element>
    </Sequence>
    How can i map these different dataset using ESB.
    Any Ideas..
    Thanks,
    Azeem.

  • How to map a calculation with the session ID

    Hi,
    we have been using HBR and as usual many a times we have concurrent rules that are being executed .
    now i can view the sessions in the admin services but i am not able to make out that which rule is the one thats running right now.
    is there any way that we can map the session Id that is apperaing in the sessions with the intersection on which that rule was executed or the name of the rule.for instance if we could get the session id details in th eHBR Launch log files then we can make out which rule is being executed whith which session ID.

    you have a detailed information under planning's job console and for more information you can match the time stamp with essbase session.
    Can help you up to some extant.

  • How to Map XML data with XSD Schema in JAXB

    Hello,
    I am very much new to JAXB.
    I am in need of someone help to go further in my dev.
    I am having an XSD and i could able to do marshall and unmarshall using JAXB.
    My problem is...
    Consider followings are my Schema...
    - <person id="general" help="USER.DOM.HELP.GENERAL" label="USER.DOM.LABEL.GENERAL" access="READWRITE">
    <attribute id="Name" mandatory="true" type="STRING" access="READONLY" widget="NONE" />
    <attribute id="login" label="USER.LABEL.LOGIN" help="USER.HELP.LOGIN" regexp="[A-a]" type="STRING" summary="true" access="WCREATE_RUPDATE" widget="TEXTFIELD" />
    <attribute id="firstname" summary="true" label="USER.LABEL.FIRSTNAME" help="USER.HELP.FIRSTNAME" type="STRING" regexp="[A-a]" access="READWRITE" widget="TEXTFIELD" />
    In this example a person contains set of attributes... some are mandatory(Name)...
    In my application i will unmarshall the the schema file and show in GUI as a set of attributes when the operator want to create a person. And its very well working.
    Now say for example, i am requesting my server to show all the created persons and its showing. when i click on the particular person the GUI will place the request to the server to get the corresponding date for the selected person.
    But the response contains only the mandatory attribute.. i mean Name.... this may be because of the way my server working. So now i want to show the operator all the set of attributes for that person with the Name.
    I mean i need to merge the schema with me resultant data and show it in the GUI.
    My result is in the form of xml stream. And i will convert my schema also in the form of XML...
    Now i need to merge both of this XMl and need to present in the GUI...
    Any help please...
    Thank You!!!

    Still i am not getting any reply :(

  • How to map product barcode with SAP

    HIIIIIIIIIIII
    We are going to implement SD module for stores. my client requirement is once when ever customer bring products from store to cash counter the scaner will check the bard code based on that we need to be process order to cash backgroud.
    This process need to be cover  SO, RETURNS, CREDIT MEMO, DEBIT MEMO ALSO
    Kindly guide me for acheving this requirement.
    Thanks in advance
    srinivasa

    Hi,
    A barcode is an optical machine-readable representation of data, which shows data about the object to which it attaches. In material master, in basic data 1 there is a field for EAN/UPC (Universal Product Code). In this field the bar code data are entered like 987654321098. The scanner reads this code and recognizes the code. Since UPC code is entered in Basic data of the material master, the material code given for the product in SAP is determined. This is the way bar coding is used to recognize the materials in SAP.
    Regards
    K Bharathi

Maybe you are looking for

  • [SOLVED]change the font that displays pages in the browser Uzbl

    hi all there is some form in the browser Uzbl change the type of font displayed on web pages? thanks Last edited by jccl1706 (2010-03-16 01:32:53)

  • German special characters (Umlaute)

    Hello, I just wanted to switch over from Eudora 6.2 to Mail 2.0.7. After importing the mails completely and starting with Mail I realized that all mails contaning characters such as "äöü?" been converted to strange characters. I couldn't find anythin

  • Panels All Open by Default...

    Hi everyone. Just wondering if there was a way to have the panels open automatically when a browser loads, but still have the functionality of collapsing and reopening. Any help would be appreciated! Thanks!

  • OSB - Simple passthrough

    I'm sorry to ask what's probably going to sound laughably trivial, but I'm a bit stuck. I've created a simple ADFbc web service using one of the tutorials out there and I have the basic getEmp1, createEmp, updateEmp SOAP methods. I'm trying to follow

  • News module and mobile support

    Hi. I've not been able to find a solution here or by Googling this, I hope somebody can help me here. I'm creating separate phone and tablet versions of a site and am using BC's mobile support automatic redirection. All 3 versions of the site will be