How can i replace some string  in a JTextaArea/JTex at current time!

Hey guys, this problem is driving me crazy... i want to do a keyboard event.. like the emoticons in msn,
so, i want that when i type /land ("latex comand"), a character appears replacing the command in the JTextArea. I did it, but when i type
/happy, the character doesn�t appear! Just when i type space in keyboard...:/
Can anybody help me?
public class TelaParametro extends JDialog {
     private GerenciadorExterno gerInterface;
     private TelaLeis telaLeis;
     private int parametro;
     private Argument argumento;
     private String codigo;
     private String path = "images/";
     private TecladoVirtual tecl;
     private boolean DigitandoLatex;
     private String latex;
     /* atributo que serve para dizer se o usuario apertou no Ok ou no Cancel */
     private int flagModal;
       JPanel panel1 = new JPanel();
       JButton btnOK = new JButton();
       JButton btnCancel = new JButton();
       JTextArea tfEspec = new JTextArea();
       JScrollPane rolagem;
       JLabel labelEntrada = new JLabel();
       JButton btnDigitacao = new JButton();
       JButton btnTecladoVirtual = new JButton();
     JPanel panel2 = new JPanel();
     BorderLayout borderLayout1 = new BorderLayout();
     BorderLayout borderLayout2 = new BorderLayout();
     JPanel panel3 = new JPanel();
     GridLayout gridLayout1 = new GridLayout();
     JPanel panel4 = new JPanel();
     BorderLayout borderLayout3 = new BorderLayout();
     JPanel panel5 = new JPanel();
     JPanel panel6 = new JPanel();
     JPanel panel7 = new JPanel();
     JPanel panel8 = new JPanel();
public TelaParametro(TelaLeis telaLeis, GerenciadorExterno gerInterface) {
          super(telaLeis);
          try  {
               this.telaLeis = telaLeis;
               this.gerInterface = gerInterface;
               this.tecl = new TecladoVirtual(this);
               flagModal = 0;
               DigitandoLatex = false;
               jbInit();
          catch (Exception e) {
                 e.printStackTrace();
private void jbInit() throws Exception {
             this.setLocation(240,220);
//             this.setLocation((gerInterface.getTamanhoHorizontal()/2) - 160,(gerInterface.getTamanhoVertical()/2) - 80);
             this.setSize(320, 160);
             this.setTitle("Parametro");
             tfEspec.setFont(new Font ("CZT", Font.PLAIN, 12));
             tfEspec.setText("");
          rolagem = new JScrollPane(tfEspec);
          this.setModal( true );
          tfEspec.addKeyListener(new java.awt.event.KeyAdapter() {
               public void keyPressed(KeyEvent e) {
                    tfEspec_keyPressed(e);
          btnOK.setForeground(Color.green);
          btnOK.setFont(new Font("Dialog", 1, 12));
          btnOK.setLabel(this.retornarMensagem("COD0072"));
          btnOK.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(ActionEvent e) {
                    btnOK_actionPerformed(e);
          btnDigitacao.setFont(new Font("Dialog", 1, 12));
          btnDigitacao.setText("D");
          btnDigitacao.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
               btnTecladoVirtual_actionPerformed(e);
          ImageIcon teclicon = new ImageIcon(path + "teclado.gif");
          btnTecladoVirtual.setIcon(teclicon);
          btnTecladoVirtual.setToolTipText("TecladoVirtual");
          btnTecladoVirtual.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
               btnTecladoVirtual_actionPerformed(e);
          btnCancel.setForeground(Color.red);
          btnCancel.setFont(new Font("Dialog", 1, 12));
          btnCancel.setLabel(this.retornarMensagem("COD0078"));
          btnCancel.addActionListener(new java.awt.event.ActionListener() {
                 public void actionPerformed(ActionEvent e) {
                    btnCancel_actionPerformed(e);
          labelEntrada.setText("   Entre com tal parametro:");
          panel1.setLayout(borderLayout1);
          panel2.setLayout(borderLayout2);
          panel3.setLayout(gridLayout1);
          panel4.setLayout(borderLayout3);
          this.getContentPane().add(panel1, BorderLayout.CENTER);
          panel1.add(panel2, BorderLayout.CENTER);
          panel2.add(rolagem,  BorderLayout.CENTER);
          panel2.add(panel5, BorderLayout.WEST);
          panel2.add(panel6,  BorderLayout.SOUTH);
          panel2.add(panel7,  BorderLayout.EAST);
          panel2.add(panel8, BorderLayout.NORTH);
          panel1.add(panel3,  BorderLayout.SOUTH);
          panel3.add(btnOK, null);
          panel3.add(btnCancel, null);
          panel1.add(panel4, BorderLayout.NORTH);
          panel4.add(labelEntrada,  BorderLayout.CENTER);
          panel4.add(btnTecladoVirtual,  BorderLayout.EAST);
private void tfEspec_keyPressed(KeyEvent e){
         String str = tfEspec.getText() ;
         System.out.println("char "  + e.getKeyChar());
         System.out.println("texto " + str);
         str = str.replace("\\land", ZString.AND);
         //System.out.println("strReplaced " + str);
         tfEspec.setText(str);
         tfEspec.repaint();
}

But there is no method "addDocumentListener" for JTextArea =/ [url http://java.sun.com/docs/books/tutorial/uiswing/events/documentlistener.html]How to Write a Document Listener.

Similar Messages

  • How Can I replace newScale Text Strings with Custom Values?

    How Can I replace newScale Text Strings with Custom Values?
    How can I replace newScale text strings with custom values?
    All  newScale text is customizable. Follow the procedure below to change the  value of any text string that appears in RequestCenter online pages.
    Procedure
    1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
    a) Navigate to the RequestCenter.ear/config directory.
    b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
    c) Save the file.
    d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
    e) Stop and restart the RequestCenter service.
    f) Log  in to RequestCenter and browse to the page that has the text you want  to overwrite. In front of the text you will now see the String ID.
    g) Note down the String ID's you want to change.
    2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
    3. Create the following sub-directory: res/resources
    4. Create the following empty text files in the directory you just created:
    RequestCenter_0.properties
    RequestCenter_1.properties
    RequestCenter_2.properties
    RequestCenter_3.properties
    RequestCenter_4.properties
    RequestCenter_5.properties
    RequestCenter_6.properties
    RequestCenter_7.properties
    5. Add the custom text strings to the appropriate  RequestCenter_<Number>.properties file in the following manner  (name-value pair) StringID=YourCustomTextString
    Example: The StringID for "Available Work" in ServiceManager is 699.
    If you wanted to change "Available Work" to "General Inbox", you  would add the following line to the RequestCenter_0.properties file
         699=General Inbox
    Strings are divided into the following files, based on their numeric ID:
    Strings are divided into the following files, based on their numeric ID:
    String ID  File Name
    0 to 999 -> RequestCenter_0.properties
    1000 to 1999 -> RequestCenter_1.properties
    2000 to 2999 -> RequestCenter_2.properties
    3000 to 3999 -> RequestCenter_3.properties
    4000 to 4999 -> RequestCenter_4.properties
    5000 to 5999 -> RequestCenter_5.properties
    6000 to 6999 -> RequestCenter_6.properties
    7000 to 7999 -> RequestCenter_7.properties
    6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
    7. Restart RequestCenter.
    Your customized text should be displayed.

    I've recently come across this information and it was very helpful in changing some of the inline text.
    However, one place that seemed out of reach with this method was the three main buttons on an "Order" page.  Specifically the "Add & Review Order" button was confusing some of our users.
    Through the use of JavaScript we were able to modify the label of this button.  We placed JS in the footer.html file that changes the value of the butt

  • How can i convert some caracteres of a String in bold characteres?? hELPME

    How can i convert some caracteres of a String in bold caracteres?? hELPME
    I have a JList and a DefaultListModel of Strings. So, i have many key words like "proccess", "if", "fi" that i want these characteres in bold.

    How i can use HTML in java to change a String to bold?
    example
    String str = "channel ";
    str = <b>str</b>;
    like this? syntax error =/

  • How can I Replace a Hard Drive on a 160gb iPod Classic?

    How can I Replace a Hard Drive on a 160gb iPod Classic? I am considering buying an iPod Classic off of eBay which is described as 'broken' and having the 'Red X' showing up on the screen. The seller is starting the bid at a very low price, which raises some concerns for me. For this thread, let us assume that the iPod has a broken hard drive that needs to be replaced in order to function properly. I am assuming that merely 'restoring' it would not suffice. How would I be able to replace the hard drive myself, without bringing it in to a store? I have never fixed an iPod's hardware before, nor a computer or any electrical device. I am a novice at such things. Would I be able to fix it myself without wasting money on a broken iPod and new hard drive? Please provide instructions on how to do so =)

    Hello there,
    Yes, the red X icon is usually a sign of a bad or damaged hard drive. Sometimes, restoring the iPod will resolve the issue, but rarely. Other users were able to smack the ipod against the side of their leg and gain back full functionality of the iPod.
    However, if no such luck with either, your next option would be to replace the drive. For this task, you can either opt to repair and replace the hard drive yourself, or opt to send it into a third party repair business to do the job for you.
    I use the guides at [www.ifixit.com|http://www.ifixit.com> to help me replace broken parts on an iPod. These guides provide excellent step-by-step instructions as well as photos on how to repair any part from an iPod.
    Some other good sites for purchasing repair parts include the following:
    [iDemiGods|http://www.idemigods.com>
    [RapidRepair|http://www.rapidrepair.com>
    [iResq|http://www.iresq.com>
    Lastly, I would also like to remind you that ebay also has several great deals on excellent iPod replacement parts. It's where I purchase a majority of mine.
    Hope this helps.
    B-rock

  • HT5502 AFTER UPGRADING TOMOUNTAIN LION SAFARI 6.0 DOESN"T WORK HOW CAN I REPLACE IT OR UPGRADE IT?

    AFTER UPGRADING TOMOUNTAIN LION SAFARI 6.0 DOESN"T WORK HOW CAN I REPLACE IT OR UPGRADE IT?

    An answer will require more specific information of the problems you are experiencing Mpittas2.
    In general, if you installed any third party anti-virus utilities, get rid of them. They can cause problems like this.
    There is no need to post your question multiple times. If you don't get an answer right away give it some time, a few hours at least, and please deselect your caps lock key. This will increase the likelihood of receiving competent assistance.
    Thanks!

  • I cannot locate all of my tool .tpl files.  How can I replace them?

    I cannot locate all of my tool .tpl files.  How can I replace them?

    You can store your tool preset anywhere you wand.  Each version of Photoshop ships with some Adobe supplied tools presets these are installed in the Tools folder in Photoshop Presets  folder. You can use Search in Finder or Windows File explored to find all *.tpl files on your system.

  • How can I replace my start up hard drive in mac pro 2008?

    Mi hd is geting old and I am worry about loosing Everything any time how can I replace my HD without reinstaling Every single Aplications?
    Any Advice thanks.

    Clone it.
    Or install OS X and it will ask to use Setup Assistant and import everything when it sees another system drive.
    Use cloning as a backup method.
    Keep only the OS and apps and a small user library on the boot drive.
    Now is a good time to invest in an SSD for your system.
    A new drive for data and media files.
    Use your existing drive(s) as backups and pull them once the system and data are copied, cloned, and moved over.
    Use TimeMachine for some file backup as well.
    Clone your system:
    How to Clone a Volume
    Using Cloning as a Backup Strategy 
    See also Erasing a Drive, How and Why to Partition a Drive, RAID.
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner

  • How can i replace asm sparc v8plus instruction in to v8

    Hi Friends
    I am installing the log4cxx product and facing the problem at asm code.
    Acutally that code i swritten for v8plus sparc versions but my whole project is base on sparc generic , so using arch as generic i want to install ,the stament which giving error is
    asm(" cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);
    so please help me How can i replace this statement for work fine on sparc generic architecture
    Regards
    Jayant

    The CAS instruction is available only on v8plus or later architectures. The instruction is an atomic integer comparison used to synchronise mutlithreaded operations.
    Without this instruction, you need to perform synchronization some other way. No suitable atomic instruction is available on prior SPARC architectures.
    You have two choices:
    1. Support only v8plus (UltraSPARC I) architectures or newer, in which you need not modify anything. You will want to specifiy v8plus architecture in building the entire application, however, to get better code generation.
    2. Determine what the function containing this code is doing, and re-write it some other way, such as by using mutex operations from the thread library. The resulting code will be much slower.
    I suggest option 1. Do you really need to support such old SPARC chips? Sun has not sold or supported such systems for many years, and current Solaris versions won't run on them.

  • How can I put some movies to iPhoto?

    Hi, how can I put some movies to iPhoto? Is there a type of the file that I can convert my fully renderred .mov (a QT files made out of FinalCutE) files/movies to, so iPhoto (8 or 9) would accept? (then I want to upload the converted (?) little movies from iPhoto to Web Picasa...
    And in a case that it is possible - how one can do this?
    Thanks.
    Message was edited by: marekn

    Have you tried importing your .mov files into iPhoto?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • How can i write a string into a specified pos of a file?

    How can i write a string into a specified pos of a file without read all file into ram and write the whole file again?
    for example:
    the content of file is:
    name=123
    state=456
    i want to modify the value of name with 789
    (write to file without read all file into ram)
    How can i do it? thank you

    take this as an idea. it actually does what i decribed above. you sure need to make some modifications so it works for your special need. If you use it and add any valuable code to it or find any bugs, please let me know.
    import java.io.*;
    import java.util.*;
    * Copyright (c) 2002 Frank Fischer <[email protected]>
    * All rights reserved. See the LICENSE for usage conditions
    * ObjectProperties.java
    * version 1.0, 2002-09-12
    * author Frank Fischer <[email protected]>
    public class ObjectProperties
         // the seperator between the param-name and the value in the prooperties file
         private static final String separator = "=";
         // the vector where we put the arrays in
         private Vector PropertiesSet;
         // the array where we put the param/value pairs in
         private String propvaluepair[][];
         // the name of the object the properties file is for
         public String ObjectPropertiesFileName;
         // the path to the object'a properties file
         public String ObjectPropertiesDir;
         // reference to the properties file
         public File PropertiesFile;
         // sign for linebreak - depends on platforms
         public static final String newline = System.getProperty("line.separator");
         public ObjectProperties(String ObjectPropertiesFileName, String ObjectPropertiesDir, ObjectPropertiesManager ObjectPropertiesManager)
         //     System.out.println("Properties Objekt wird erzeugt: "+ObjectPropertiesFileName);
              this.ObjectPropertiesFileName = ObjectPropertiesFileName;
              this.ObjectPropertiesDir = ObjectPropertiesDir;
              // reference to the properties file
              PropertiesFile = new File(ObjectPropertiesDir+ObjectPropertiesFileName);
              // vector to put the param/value pair-array in
              PropertiesSet = new Vector();
         //     System.out.println("Properties File Backup wird erzeugt: "+name);
              backup();
         //     System.out.println("Properties File wird eingelesen: "+PropertiesFile);
              try
                   //opening stream to file for read operations
                   FileInputStream FileInput = new FileInputStream(PropertiesFile);
                   DataInputStream DataInput = new DataInputStream(FileInput);
                   String line = "";
                   //reading line after line of the properties file
                   while ((line = DataInput.readLine()) != null)
                        //just making sure there are no whitespaces at the beginng or end of the line
                        line = cutSpaces(line);
                        if (line.length() > 0)
                             //$ indicates a param-name
                             if (line.startsWith("$"))
                                  // array to store a param/value pair in
                                  propvaluepair = new String[1][2];
                                  //get the param-name
                                  String parameter = line.substring(1, line.indexOf(separator)-1);
                                  //just making sure there are no whitespaces at the beginng or end of the variable
                                  parameter = cutSpaces(parameter);
                                  //get the value
                                  String value = line.substring(line.indexOf(separator)+1, line.length());
                                  //just making sure there are no whitespaces at the beginng or end of the variable
                                  value = cutSpaces(value);
                                  //put the param-name and the value into an array
                                  propvaluepair[0][0] = parameter;
                                  propvaluepair[0][1] = value;
                             //     System.out.println("["+ObjectPropertiesFileName+"] key/value gefunden:"+parameter+";"+value);
                                  //and finaly put the array into the vector
                                  PropertiesSet.addElement(propvaluepair);
              // error handlig
              catch (IOException e)
                   System.out.println("ERROR occured while reading property file for: "+ObjectPropertiesFileName);
                   System.out.println("ERROR CODE: "+e);
                   // System.out.println("in ObjectProperties");
         // function to be called to get the value of a specific paramater 'param'
         // if the specific paramater is not found '-1' is returned to indicate that case
         public String getParam(String param)
              // the return value indicating that the param we are searching for is not found
              String v = "-1";
              // looking up the whole Vector
              for (int i=0; i<PropertiesSet.size(); i++)
                   //the String i want to read the values in again
                   String s[][] = new String[1][2];
                   // trying to get out the array from the vector again
                   s = (String[][]) PropertiesSet.elementAt(i);
                   // comparing the param-name we're looking for with the param-name in the array we took out the vector at position i
                   if (s[0][0].equals(param) == true)
                        //if the param-names are the same, we look up the value and write it in the return variable
                        v = s[0][1];
                        // making sure the for loop ends
                        i = PropertiesSet.size();
              // giving the value back to the calling procedure
              return v;
         // function to be called to set the value of a specific paramater 'param'
         public void setParam(String param, String value)
              // looking up the whole Vector for the specific param if existing or not
              for (int i=0; i<PropertiesSet.size(); i++)
                   //the String i want to read the values in again
                   String s[][] = (String[][]) PropertiesSet.elementAt(i);
                   // comparing the param-name we're looking for with the param-name in the array we took out the vector at position i
                   if (s[0][0].equals(param) == true)
                        //if the param-names are the same, we remove the param/value pair so we can add the new pair later in
                        PropertiesSet.removeElementAt(i);
                        // making sure the for loop ends
                        i = PropertiesSet.size();
              // if we land here, there is no such param in the Vector, either there was none form the beginng
              // or there was one but we took it out.
              // create a string array to place the param/value pair in
              String n[][] = new String[1][2];
              // add the param/value par
              n[0][0] = param;
              n[0][1] = value;
              // add the string array to the vector
              PropertiesSet.addElement(n);
         // function to save all data in the Vector to the properties file
         // must be done because properties might be changing while runtime
         // and changes are just hold in memory while runntime
         public void store()
              backup();
              String outtofile = "# file created/modified on "+createDate("-")+" "+createTime("-")+newline+newline;
              try
                   //opening stream to file for write operations
                   FileOutputStream PropertiesFileOuput = new FileOutputStream(PropertiesFile);
                   DataOutputStream PropertiesDataOutput = new DataOutputStream(PropertiesFileOuput);
                   // looping over all param/value pairs in the vector
                   for (int i=0; i<PropertiesSet.size(); i++)
                        //the String i want to read the values in
                        String s[][] = new String[1][2];
                        // trying to get out the array from the vector again
                        s = (String[][]) PropertiesSet.elementAt(i);
                        String param = "$"+s[0][0];
                        String value = s[0][1];
                        outtofile += param+" = "+value+newline;
                   outtofile += newline+"#end of file"+newline;
                   try
                        PropertiesDataOutput.writeBytes(outtofile);
                   catch (IOException e)
                        System.out.println("ERROR while writing to Properties File: "+e);
              catch (IOException e)
                   System.out.println("ERROR occured while writing to the property file for: "+ObjectPropertiesFileName);
                   System.out.println("ERROR CODE: "+e);
         // sometimes before overwritting old value it's a good idea to backup old values
         public void backup()
              try
                   // reference to the original properties file
                   File OriginalFile = new File(ObjectPropertiesDir+ObjectPropertiesFileName);
                   File BackupFile = new File(ObjectPropertiesDir+"/backup/"+ObjectPropertiesFileName+".backup");
                   //opening stream to original file for read operations
                   FileInputStream OriginalFileInput = new FileInputStream(OriginalFile);
                   DataInputStream OriginalFileDataInput = new DataInputStream(OriginalFileInput);
                   //opening stream to backup file for write operations
                   FileOutputStream BackupFileOutput = new FileOutputStream(BackupFile);
                   DataOutputStream BackupFileDataOutput = new DataOutputStream(BackupFileOutput);
              //     String content = "";
                   String line = "";
                   // do till end of file
                   while ((line = OriginalFileDataInput.readLine()) != null)
                        BackupFileDataOutput.writeBytes(line+newline);
              // error handlig
              catch (IOException e)
                   System.out.println("ERROR occured while back up for property file: "+ObjectPropertiesFileName);
                   System.out.println("ERROR CODE: "+e);
                   System.out.println("this is a serious error - the server must be stopped");
         private String cutSpaces(String s)
              while (s.startsWith(" "))
                   s = s.substring(1, s.length());
              while (s.endsWith(" "))
                   s = s.substring(0, s.length()-1);
              return s;
         public String createDate(String seperator)
              Date datum = new Date();
              String currentdatum = new String();
              int year, month, date;
              year = datum.getYear()+1900;
              month = datum.getMonth()+1;
              date = datum.getDate();
              currentdatum = ""+year+seperator;
              if (month < 10)
                   currentdatum = currentdatum+"0"+month+seperator;
              else
                   currentdatum = currentdatum+month+seperator;
              if (date < 10)
                   currentdatum = currentdatum+"0"+date;
              else
                   currentdatum = currentdatum+date;
              return currentdatum;
         public String createTime(String seperator)
              Date time = new Date();
              String currenttime = new String();
              int hours, minutes, seconds;
              hours = time.getHours();
              minutes = time.getMinutes();
              seconds = time.getSeconds();
              if (hours < 10)
                   currenttime = currenttime+"0"+hours+seperator;
              else
                   currenttime = currenttime+hours+seperator;
              if (minutes < 10)
                   currenttime = currenttime+"0"+minutes+seperator;
              else
                   currenttime = currenttime+minutes+seperator;
              if (seconds < 10)
                   currenttime = currenttime+"0"+seconds;
              else
                   currenttime = currenttime+seconds;
              return currenttime;

  • How can I replace the Special Character        '

    Hi Guru ,
    I want replace one Special Chareacter into space .
    Example -
    There have one variable .
    L_VAR = BANGA'LORE
    I want to delete the special character ( ' ) which is between A and L .
    Whenever I am tryiny to use replcae statement , it will show one Error Message .
    REPLACE ''' IN L_VAR WITH ' '.
    IT WILL GIVE ONE ERROR MESSAGE - " Literals that take up more than one line are not permitted."
    How Can I replace this .

    Hi Tarak Dey,
    This error
    Literals that take up more than one line are not permitted
    is not for the Replace statement. You would have missed a PERIOD in some statement before this.
    When we see the code that you have pasted,
    L_VAR = BANGA'LORE
    here period is missing at the end of the line. The error could be because of that.
    Kindly check.
    Best Regards,
    Ram.

  • How can i replace the standard ESS iview with my own iview

    I want to replace standard ESS addr iview with my own WD developed by ABAP
    I added the iview(my WDA) into standard ESS addr page.
    (pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.cn/com.sap.pct.erp.ess.addr/com.sap.pct.erp.ess.addr)
    And make it visible.
    But I got this error in ESS PA addr :
    WebDynpro Exception: Application PER_ADDRESS_CN Does Not Exist
    Here is the error code :
    Error code&#65306;ICF-IE-http-c:100-u:AC_WANGFZ-l:1-s:CE1-i:SAPCE101_CE1_01-w:0-d:20070514-t:172301-v:RABAX_STATE-e:UNCAUGHT_EXCEPTION
    So , how can i replace the standard ESS iview with my own iview?
    Thanks

    Can you see any Javascript EPCF code in the old iView  ?  You are surely just going to have to find it  (if our hunch is correct) and analyse it and copy it into your new iView so that it functions in some way that at least does not error

  • How can I re-organize String lines

    Hello My String consists of random lines. Every line has an priority number. Example of a String:
    Done     id     pri     created          finished     description     
         000     1     2006-12-11     -          job     
    x     001     2     2006-12-11     -     do this     
         002     3     2006-12-11     -          work
    x     003     0     2006-12-11     -          some
         004     2     2006-12-11     -          thing
         005     1     2006-12-11     -          reads
         006     0     2006-12-11     -          here
    Every "token" is seperated by \t (done \t id \t ....\t 000 \t 1 \t 2006-12-12 \t...)
    How can I organize the String and save it to another String so that pri-values are in a descending order:
    Done     id     pri     created          finished     description     
    002     3     2006-12-11     -          work
    x     001     2     2006-12-11     -     do this     
    004     2     2006-12-11     -          thing
    000     1     2006-12-11     -          job     
    005     1     2006-12-11     -          reads
    x     003     0     2006-12-11     -          some
         006     0     2006-12-11     -          here

    I'm trying but I don't know what I'm doing
    import java.io.*;                
    import java.util.*;                    
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.Comparator;
    public class Start {
    public static void main(String[] args) throws IOException {
    sort();
    public static void sort() throws IOException  {
         class Work implements Comparable {
         String id;
         int pri;
         String d1;
         String d2;
         String job;
         public Work(String id, int pri, String d1, String d2, String job){
              this.id = id;
              this.pri = pri;
              this.d1 = d1;
              this.d2 = d2;
              this.job = job;
         BufferedReader reader = new BufferedReader(new FileReader("Tehtava.txt"));
         //BufferedWriter writer = new BufferedWriter(new FileWriter("Tempo.txt"));
         String lookingFor3 = "-";
         String line = null;
         while ((line = reader.readLine()) != null) {     //---------------z
                   String[]result = line.split("\t");
                   List tasks = new ArrayList();
                   if (result[4].equals(lookingFor) == true) {     
                   tasks.add(new Work(line));     
                   continue;
                   public int getpri()     {
                   return pri;          }
                   public int compareTo(Object o)     {
                   Work otherWork = (Work) o;
                   return this.getpri().compareTo(otherWork.getpri());     }
              Collections.sort(tasks); //-------------------x
              System.out.print(tasks); //------------------x
              //reader.close();
    }I don't know what but Where and I'm getting errors like:
    <identifier> expected
    for lines ------------x
    illegal start of type:
    for line -------------z

  • System Preferences quits suddenly. I have lost the dock, including the trash and ability to change desktop image. How can I replace this part of System Preferences? Where can I find Trash?

    System Preferences quits suddenly. I have lost the dock, including the trash and ability to change desktop image. How can I replace this part of System Preferences? Where can I find Trash? All other aspects of System Preferences work.

    just that that is one method, and lacks provision for working boot image and for an emergency - Lion gives a small minimal emergency boot environment but may lack all the utilities you need to use and run, even some drivers that your mac requires for add on PCIe.
    Just grab and look through Help in Carbon Copy and SuperDuper, both excellent and each has their use - together - for cloning.
    And do you have two TM backup sets? ought to consider that also, rotate daily or make a weekly set. Otherwise you are putting all your eggs in the proverbial one basket.

  • Is there any way to replace my iphone 5. The back camera is not working. Since there's no apple store here in the philippines. How can i replace it?

    How can i replace it?

    You probably do in NZ ..................
    The Apple iphone warranty is not and never has been from the very first iPhone, international
    Sorry but you were stitched up

Maybe you are looking for

  • Iphone 3Gs on Windows Vista 64 bit

    What programs are included with the iphone 3Gs for downloading photograph to a windows vista 64 bit machine? Is there an iphoto version for windows? How about video downloading?

  • Help I keep getting  a configuration error message

    Every new document I create gives me the following message when I try to preview **Error** C:\Documents and Settings\wozZonline\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\TextField\StyleSheet.as: Line 7: The name

  • Multiple albums of same name

    im having a problem with my ipod making Multiple albums of same name in itunes it shows all the songs under the same album name but on the ipod in album view the same album comes up multiple times..how can i fix that?

  • New to ABAP

    Dear Freinds, I am a functional consultant sap sd.I want to learn IDOC's BDC's userexits reports customization variant configurations I have few basic questions 1) Can you please guide me if it is required to have a ABAP prgramming knowledge to learn

  • Invalid Serial Number  for update Ver 1.5 to 1.5.6

    I run Leopard 10.5 and want to use Aperture 1.5 (Retail version). From what I've read in other topics, I need to update to Ver 1.5.6 for Aperture to work. Before downloading the Update, they ask me to enter my serial number... when I do that and vali