Next focusable componentwhen using a text pane

I am using nextFocusableComponent and it works grand with textFields but how do I use it with a textPane. By pressing tab it will just go onto a new line. I want it to tab to the next item. I want to use "return/enter" to get the next line on the text pane.

Swing related questions should be posted in the Swing forum.
Here is my answer for a JTextArea. I assumes its the same for a JTextPane:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=609727

Similar Messages

  • Text pane problem

    Hi guys,
    I need a component which acts as a chat screen allowing me to append messages. Each chat message may be a different colour. I also need to set the font of the pane via my look and feel. This font is not included in html.
    First I tried using a JEditorPane which worked fine, I could change the colour of the text using html formatting but could not use my own font.
    My next option was to use a JTextPane (see code below) but when I append lots of messages the screen flickers and the scroll pane jumps to the top.
    public class JLTextPane extends JTextPane {
        public void append(Color c, String s) {
            setEditable(true);
            StyleContext sc = StyleContext.getDefaultStyleContext();
            AttributeSet aset = sc.addAttribute(SimpleAttributeSet.EMPTY,
            StyleConstants.Foreground, c);
            setCaretPosition(getDocument().getLength()); // place caret at the end (with no selection)
            setCharacterAttributes(aset, false);
            replaceSelection(s); // there is no selection, so inserts at caret
            setCaretPosition(getDocument().getLength());
            setEditable(false);
        public void appendLine(Color c, String line) {
            if(getDocument().getLength() == 0) {
                append(c, line);
            } else {
                append(c, "\n" + line);
    }I have run out of ideas. Any help?
    Thanks

    I could not find your alternative approach from your last post. I understand it must be frustrating dealing with people who are new to swing when you are so experienced yourself but after all this is a forum and thats why I'm here.
    I have written you a test program which should be runnable.
    public class MessagePanel extends JPanel {
        //the size of the panel
        private static final Dimension SIZE = new Dimension(400, 175);
        //the input box
        private JTextField _input;
        //the text pane itself
        private JTextPane _pane;
        public MessagePanel() {       
            initPanel();
            createPanel();
        public void initPanel() {
            setLayout(new GridBagLayout());
            setPreferredSize(SIZE);
        public void createPanel() {
            //create and setup the text pane
            _pane = new JTextPane();
            _pane.setEnabled(false);
            //create and setup the scrollable pane
            JScrollPane scrollable_pane = new JScrollPane(_pane);
            scrollable_pane.setPreferredSize(new Dimension(SIZE.width - 5, SIZE.height - 26));
            scrollable_pane.setVerticalScrollBarPolicy(
                        ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            //add the components to the main panel
            GridBagConstraints c = new GridBagConstraints();
            c.gridx = 0;
            c.gridy = 0;
            add(scrollable_pane, c);
        private void append(Color colour, String message) {
            if(colour == null) {
                colour = Color.BLACK;
            StyleContext sc = StyleContext.getDefaultStyleContext();
            AttributeSet aset = sc.addAttribute(SimpleAttributeSet.EMPTY,
                    StyleConstants.Foreground, colour);
            _pane.setCaretPosition(_pane.getDocument().getLength()); // place caret at the end (with no selection)
            _pane.setCharacterAttributes(aset, false);
            _pane.replaceSelection(message); // there is no selection, so inserts at caret
            _pane.setCaretPosition(_pane.getDocument().getLength());
        private void appendLine(Color c, String line) {
            if(_pane.getDocument().getLength() == 0) {
                append(c, line);
            } else {
                append(c, "\n" + line);
        public static void main(String[] args) {
            MessagePanel panel = new MessagePanel();
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(panel);
            frame.pack();
            frame.setVisible(true);
            Color[] colours = new Color[3];
            colours[0] = Color.RED;
            colours[1] = Color.BLUE;
            colours[2] = Color.ORANGE;
            for(int i = 0; i < 100; i++) {
                panel.appendLine(colours[i % 3], "Line: " + i);
    }Could you possibly alter my code so that it can append lines without flicker and prevents the user from editing the JTextPane.
    Thanks again.

  • Stopping tab from moving to the next focus component

    I have a single TextInput field in my component and I want to
    stop the tab key from advancing the focus when I have an error in
    the field. I have tried using setFocus() and that seems to do it
    although I lose the caret in the text input field. Also when I tab
    I notice that even though I am telling the component that the next
    focus is the TextInput field it still goes to the Internet Explorer
    address bar. Any ideas?

    Append the system's line separator usingjava.lang.System.getProperty( "line.separator" );Then the added line will be placed as you've wanted. Code will be written like below:yourTextArea.append( System.getProperty( "line.separator" ) );
    yourTextArea.append( yourStringToAppend );Hope it helps.

  • Importing schema+ data using a text file containing sql commands

    I have the 2012 SQL SVR Mgmt Studio installed. I received a file--snippet below... from an export of our current DB provider, Advantage. I know I have to edit a lot of commands, but my question is quite simple--how do I use a text file with commands in it
    like below to create tables, columns and load data into SQL SVR.
    ---data.txt file contents----
    -- Table Type of Beneficiary is ADT
    Create Table Beneficiary(
       PlanId Char( 9 ),
       Hash Integer,
       Line1 Char( 128 ),
       Line2 Char( 128 ),
       Batch Char( 16 ) );
    EXECUTE PROCEDURE sp_CreateIndex90( 'Beneficiary', 'LAC_LACV1_Beneficiary.adi', 'KEY1', 'Hash;PlanId', '', 2051, 4096, NULL );
    INSERT INTO "Beneficiary" VALUES( 'LACV1', 983, 'Judith Pursifull~Spouse~100~~~', 'Michael Pursifull~Son~50~Thomas Pursifull~Son~50', '761011042' );
    INSERT INTO "Beneficiary" VALUES( 'LACV1', 996, 'Anna Brownlow~Spouse~100~~~', 'Kaitlin Brownlow~Daughter~85~Lawanda Brownlow~Mother~15', '49036615' );
    INSERT INTO "Beneficiary" VALUES( 'LACV1', 1005, 'Weldon Shelton~Other~50~Star Shelton~Other~50', 'Danica Shelton~Sister~50~Ryan Shelton~brother~50', '109075816' );
    INSERT INTO "Beneficiary" VALUES( 'LACV1', 1031, 'Donald D Duffy~Spouse~100~~~', 'Brandon M Duffy~Son~100~~~', '219979254' );
    INSERT INTO "Beneficiary" VALUES( 'LACV1', 1063, 'Lynne Roffino~Other~50~John Roffino~Other~50', 'Katy Roffino~Sister~50~Margaret Roffino~Sister~50', '604232358' );
    INSERT INTO "Beneficiary" VALUES( 'LACV1', 1062, 'John Teaven Redstone~Spouse~100~~~', '~~~~~', '482024691' );
    INSERT INTO "Beneficiary" VALUES( 'LACV1', 1032, 'Judith Anne Brown (for cat care)~Other~50~Judith Ann (Kappler) Barklage~Other~50', 'LaVerne Cocke (for cat care)~Friend-PantegoBibl~50~~~', '358324107' );
    -- Table Type of Date is ADT
    Create Table Date(
       Hash Integer,
       PlanId Char( 9 ),
       Type Char( 24 ),
       Date Date,
       Override Logical,
       Batch Char( 32 ) );
    EXECUTE PROCEDURE sp_CreateIndex90( 'Date', 'LAC_LACV1_Date.adi', 'KEY1', 'Hash;Date;PlanId;Type', '', 2051, 4096, NULL );
    INSERT INTO "Date" VALUES( 1018, 'LACV1', 'HARDSHIPEND', '2010-02-20', False, '20090820-9414719' );
    INSERT INTO "Date" VALUES( 1018, 'LACV1', 'HARDSHIPSTART', '2009-08-20', False, '20090820-9414719' );
    INSERT INTO "Date" VALUES( 1001, 'LACV1', 'HARDSHIPEND', '2010-02-06', False, '20090806-9371968' );
    INSERT INTO "Date" VALUES( 1001, 'LACV1', 'HARDSHIPSTART', '2009-08-06', False, '20090806-9371968' );
    INSERT INTO "Date" VALUES( 1022, 'LACV1', 'LUMPSUMDISTRIBUTION', '2009-07-21', False, '20090721-9337640' );
    charles.leggette

    from an export of our current DB provider, Advantage.....
    -- Table Type of Date is ADT
    Create Table Date(
       Hash Integer,
       PlanId Char( 9 ),
       Type Char( 24 ),
       Date Date,
       Override Logical,
       Batch Char( 32 ) );
    Hello Charles,
    The SQL Syntax especially for DDL commands are different between MS SQL Server and Advantage Database, so you have to modify them to get them work.
    As David already wrote we don't have a stored procedure "sp_CreateIndex90" in SQL Server, you may remove these commands, and we also don't have a data type "Logical", next could be "bit"
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to use input text

    Hi, I have searched the forums and haven't found what I am looking for.
    I want to have an input text box for the user to enter their name into. On the next frame I want it to say Welcome 'username'.
    Thanks

    You can access the text of an input box using the text propery of it. It will return a string
    var str:String = inputBox.text;

  • Possible to change a text pane in card template to photo pane?

    I am working on a holiday card, but would like to use an additional photo where there is currently a text box/pane.  Is there any way to change this text pane to another photo?  Simple drag and drop does not seem to work.
    Thanks,
    Boris

    LOL. man what a day! Ever feel like when you do anything it
    takes an act of congress? As if walking through quicksand? Sheesh.
    Yes, here is the link you need:
    Click
    here to visit the Capitvate Feature Request/Bug Reporting form
    Cheers... Rick

  • When using large text my lines overpal, how can I increase the line spacing?

    When using large text my lines overpal, how can I increase the line spacing?

    Press 'Ctrl + Enter' after the numbered item to insert blank space below it. If you press 'Enter', the next line will start with the next number. As long as you want to type lines without a numbering, press 'Ctrl + Enter' and type the line.

  • Selecting html source from the text pane

    Help!!
    I am selecting text in the HTMLEditor text pane but when I look at the selected text it does not include tags like image and table tags. I would like to somehow grab the selected html source based on what is selected in the text pane. Is there a way to map the selected text in the editor textpane to the html in the editor sourcepane? I have not been able to find an answer in previous threads.
    thanks,
    Steve

    here is the easiest way i know
    using JEditorPane from the swing package
    JEditorPane sourceViewer = new JEditorPane(http://www.google.com);
    System.out.println(sourceViewer.getText());
    or
    JTextArea.setText(sourceViewer.getText);
    several things to concider....
    1. you dont have to add the component to abuse it, ie you dont have to show the JEditorPane you can just use its functionality
    2. you cant JUST display the text in anything made to display html unless you removed the <html> tag. but that wont stop you from printing it or putting it into a JTextArea

  • TAB to get next focus

    Hello Guys,
    I have a problem that I would really like some help with.
    I have a JPanel set to layout null. I have added some components to this panel. the problem arises when I try to use the tab key to traverse accros the components...I get no respose. I have tried to search the web to solve this problem with no luck. I am not even able to catch the tab button with a key listener no matter how hard I try.
    Here is the code
    public class CreBuy extends JPanel {
                   public CustomGUI.ToolTipPanel panToolTip;
                   public ThreeButton btnClose;
                   public CustomGUI.TextFieldForm txtFirstName;
                   public CustomGUI.TextFieldForm txtLastName;
                   public CustomGUI.TextFieldForm txtBuyerID;
                   public CustomGUI.TextFieldForm txtAddress1;
                   public CustomGUI.TextFieldForm txtAddress2;
                   public CustomGUI.TextFieldForm txtSuburb;
                   public CustomGUI.ComboBoxForm choState;
                   public CustomGUI.InvisPanelForm panState;
                   public StandardImage imgFace;
                   public ThreeButton btnNext;
                   public ThreeButton btnReset;
                   public StandardImage imgBack;
                   //public CP1_Database.ClientData clientData;     
                   public CreBuy() {
                        this.setLayout(null);
                        this.setSize(693, 444);
                        //this.setMinimumSize(new Dimension(693, 444));
                        //this.setMaximumSize(new Dimension(693, 444));
                        this.setLocation(3, 24);
                        this.setBackground(new Color(255,255,255));
                        StringBuffer buf = new StringBuffer();
                        this.panToolTip = new CustomGUI.ToolTipPanel();
                        this.panToolTip.setVisible(false);
                        this.add(this.panToolTip);
                        this.btnClose = new ThreeButton("Interface2/CreWar/images/btnCloseDown.gif",
                        "Interface2/CreWar/images/btnCloseNormal.gif", "Interface2/CreWar/images/btnCloseUp.gif", 10, 21, 21);
                        this.btnClose.setLocation(667, 4);
                        this.btnClose.setSize(21, 21);
                        this.add(this.btnClose);
    buf = new StringBuffer();
    buf.append("<html>\n");
    buf.append("<BODY style=\"font-family:arial;font-size:100%;color:#000033\">\n");
    buf.append("\n");
    buf.append("<table height=\"100%\" width=\"100%\" border=\"0\" cellspacing=\"0\"\n");
    buf.append("callpadding=\"2\"><td>\n");
    buf.append("<center><b style=\"font-size:120%\">First Name</b></center>\n");
    buf.append("Please type in the First Name of the <b>Buyer</b> you wish to create. Any characters are allowed.\n");
    buf.append("Your name <b>MUST</b> be greater than <b>3</b> in length.<br><br>\n");
    buf.append("<b>EXAMPLES :</b>\n");
    buf.append("<ul>\n");
    buf.append("<li>John\n");
    buf.append("<li>TonyG\n");
    buf.append("</ul>\n");
    buf.append("</td></table>\n");
    buf.append("</BODY>\n");
    buf.append("</html>\n");
                        this.txtFirstName = new CustomGUI.TextFieldForm(new String(buf),
                             427, 61, 240, 180, this.panToolTip, 5);
                        this.txtFirstName.setSize(300, 20);
                        this.txtFirstName.setLocation(124, 61);
                        this.add(this.txtFirstName);
                        buf = new StringBuffer();
    buf.append("<html>\n");
    buf.append("<BODY style=\"font-family:arial;font-size:100%;color:#000033\">\n");
    buf.append("\n");
    buf.append("<table height=\"100%\" width=\"100%\" border=\"0\" cellspacing=\"0\"\n");
    buf.append("callpadding=\"2\"><td>\n");
    buf.append("<center><b style=\"font-size:120%\">Last Name</b></center>\n");
    buf.append("Please type in the Last Name of the <b>Buyer</b> you wish to create. Any characters are allowed.\n");
    buf.append("Your name <b>MUST</b> be greater than <b>3</b> in length.<br><br>\n");
    buf.append("<b>EXAMPLES :</b>\n");
    buf.append("<ul>\n");
    buf.append("<li>John\n");
    buf.append("<li>TonyG\n");
    buf.append("</ul>\n");
    buf.append("</td></table>\n");
    buf.append("</BODY>\n");
    buf.append("</html>\n");
                        this.txtLastName = new CustomGUI.TextFieldForm(new String(buf),
                             427, 88, 240, 180, this.panToolTip, 5);
                        this.txtLastName.setSize(300, 20);
                        this.txtLastName.setLocation(124, 88);
                        add(this.txtLastName);
    //ETC.....
                        this.btnNext = new ThreeButton("Interface2/CreWar/images/btnNextDown.gif",
                        "Interface2/CreWar/images/btnNextNormal.gif", "Interface2/CreWar/images/btnNextUp.gif", 4502, 21, 21);
                        this.btnNext.setLocation(541, 379);
                        this.btnNext.setSize(150, 32);
                        this.add(this.btnNext);
                        this.btnReset = new ThreeButton("Interface2/CreWar/images/btnResetDown.gif",
                        "Interface2/CreWar/images/btnResetNormal.gif", "Interface2/CreWar/images/btnResetUp.gif", 4503, 21, 21);
                        this.btnReset.setLocation(541, 411);
                        this.btnReset.setSize(150, 32);
                        this.add(this.btnReset);
                        this.imgFace = new StandardImage("Interface2/CreBuy/images/imgFace.gif");
                        this.imgFace.setSize(138, 138);
                        this.imgFace.setLocation(522, 62);
                        this.add(this.imgFace);
                        this.imgBack = new StandardImage("Interface2/CreBuy/images/imgBack.gif");
                        this.imgBack.setSize(693, 444);
                        this.imgBack.setLocation(0, 0);
                        this.add(this.imgBack);
                   }I know the problem isnt with the custom components as I have tried to tab when using normal JTextField with the same problem.
    Does anyone know what I am doing wrong or how I can at least catch the TAB key to invoke the next focus manually?
    thanks for your help
    Dale Miller

    Hi,
    try this, it seems to work for me:
    public class EnterIsTabJTable extends JTable
        protected void processKeyEvent(KeyEvent e)
            if ( e.getKeyCode() == KeyEvent.VK_ENTER )
                e.setKeyCode(KeyEvent.VK_TAB);
            super.processKeyEvent(e);
    }

  • Limiting Scrollable Text Pane Memory Consumption

    Hi!
    I have written an interface for an online application which will require to operate continuously. Every couple of seconds a new line of text is added to a Scrollable Text Pane.
    This works well, however, I would like to ensure that I limit the amount of memory used so the application does not run out of memory.
    Can anyone suggest a way for me to do this?
    Thanks in advance,
    John

    Hi again,
    hm ... with a StringTokenizer like this
    StringTokenizer st = new StringTokenizer(getText(),"\n");
    if (st.hasMoreTokens())
    int cutLength = st.nextToken().length()+1;
    // here remove that part of text as posted before
    hope this helps now - it only removes, if there is a complete line
    greetings Marsian

  • Iphone 4s Running Ios(7.1) Camera Focus Not Working Like Text On book It Showed Blurey Text & My Friend Also Same Modle His Camera Focus Perfectly..Is Is Possible To Fix It...Thnx Every 1

    Iphone 4s Running Ios(7.1) Camera Focus Not Working Like Text On book It Showed Blurey Text & My Friend Also Same Modle His Camera Focus Perfectly..Is Is Possible To Fix It...Thnx Every 1

    Hello SajidChaudhary,
    Thanks for using Apple Support Communities.
    For more information, take a look at:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    Have a nice day,
    Mario

  • How can I use ONE Text search iView to event/affect mutliple Result Sets?

    hello everyone,
    i have a special situation in which i have 6 flat tables in my repository which all have a common field called Location ID (which is a lookup flat to the Locations table).
    i am trying to build a page with a free-form text search iView on Table #1 (search field = Location ID).  when I execute the search, the result set for Table #1 is properly updated, but how do I also get Result Set iViews for Tables #2-6 to also react to the event from Text Search for Table #1 so that they are updated?
    i don't want to have to build 6 different text search iViews (one for each table).  i just want to use ONE text search iView for all the different result set tables.  but, in the documentation and iView properties, the text search iView doesn't have any eventing.
    if you have any suggestions, please help.
    many thanks in advance,
    mm

    hello Donna,
    that should not be a problem, since you are detailw with result sets and detail iviews because custom eventing can be defined for those iviews.
    Yes, it says "no records" found because an active search and record selection havent' been performed for it (only your main table does).
    So, yes, define a custom event, and pass the appropriate parameters and you should be fine.
    Creating a custom event between a Result Set iView and an Item Details iView is easy and works. I have done it.
    See page 35 of the Portal Content Development Guide for a step-by-step example, which is what I used.
    For my particular situation, the problem I'm having is that I want the Search Text iView's event (i.e., when the Submit button is pressed) to be published to multiple iViews, all with different tables.  Those tables all share some common fields, which is what the Search iView has, so I'd like to pass the search critera to all of the iViews.
    -mm

  • How to use one Filter Pane to multiple Dataproviders

    Hi Experts.
    i have checked the threads on this but i did not get correct solution.
    we have issue in using single Filter pane web item in WAD for three different dataproviders ( three dataproviders have same free charecteristics and variable) charecteristics in row and keyfigures are different.
    thanks in advance.
    Regards
    Raj.

    Hi Gill,
    Thanks for your Quick responce.
    when we use the single filter pane, filter conditions are working for only first dataprovider (since data binding is to dataprovider 1. in affterted dataproviders i selected dataprovider 2 and 3, but filter pane is not active for other two dataproviders in tabs.
    thanks in advance.
    Any inputs please....
    Regards,
    Raj.
    Edited by: Rajsapbi on Apr 6, 2009 9:22 AM

  • Photoshop CC 2014 Crashes Randomly when using the Text Tool...

    Since the most recent Photoshop update, CC 2014 has been extremely buggy and completely unstable on my Mac Pro, which is inexcusable from a paid service .  The most common crash for me occurs when I try to use the “text tool” or attempt to edit text (usually the color).  I am occasionally prompted with a window stating, “Could not complete your request because of a program error” and then Photoshop crashes seconds after.
    After the initial crash and Apple’s various prompts I usually go through 2-3 consecutive cycles of Photoshop attempting to open back up and crashing over and over again.
    I’ve attempted signing out and back in to my Creative Cloud as suggested in several threads, but that was unsuccessful in mitigating the crashing.  Is there a fix for this, other than uninstalling and reinstalling?  My studio has too many upcoming deliverables and deadlines to do a fresh install, so suggestions/solutions would be appreciated .
    Problem Report
    Process:         Adobe Photoshop CC 2014 [3736]
    Path:            /Applications/Adobe Photoshop CC 2014/Adobe Photoshop CC 2014.app/Contents/MacOS/Adobe Photoshop CC 2014
    Identifier:      com.adobe.Photoshop
    Version:         15.1.0 (15.1.0.148)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [150]
    Responsible:     Adobe Photoshop CC 2014 [3736]
    User ID:         502
    Date/Time:       2014-08-18 14:39:11.590 -0700
    OS Version:      Mac OS X 10.9.4 (13E28)
    Report Version:  11
    Anonymous UUID:  D2E627F5-FA78-7D87-F2B5-7C57B55C541F
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00000000deadbeef
    VM Regions Near 0xdeadbeef:
    -->
        __TEXT                 00000001022de000-0000000106ab5000 [ 71.8M] r-x/rwx SM=COW  /Applications/Adobe Photoshop CC 2014/Adobe Photoshop CC 2014.app/Contents/MacOS/Adobe Photoshop CC 2014

    Sorry for the lack of the report it was my first time reporting an error for software... Never had an issue before.
    I haven't experienced the crash via text tool since I posted the question, but the Photoshop is still constantly crashing at startup, but every time I try to enter the report I get the error: Please try again later.m5

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

Maybe you are looking for