Retaining text of components

hello friends,
how to retain a component's text, when it called from diffrent classes?
if fact, there are many indirect ways to achieve this, but i think, it would be better to use any class or any other method specialy defined to solve this type of problems.
any idea would be much appreciated
thanks

thanks to greet
i am putting both classes in simpler way
this is japplet class say Personal_information
public class personal_information extends JPanel{
        public JTextField scontact_no = null;
       private JPanel jContentPane = null;
public Personal_information() {            
                super();
                this.setSize(700, 380);
            this.setFont(new Font("Verdana", Font.PLAIN, 10));               
            this.setContentPane(getJContentPane());    
this.setVisible(true);
public void init() {            
                super();
                this.setSize(700, 380);
            this.setFont(new Font("Verdana", Font.PLAIN, 10));               
            this.setContentPane(getJContentPane());    
public JPanel getJContentPane() {
          if (jContentPane == null) {    
                  jContentPane=new JPanel();
                  scontact_no=new JTextField();
                 jContentPane.add(scontact_no)                   ;
             return jContentPane;
    }this JFrame class say Personal_feedback
      public class Personal_feedback extends JFrame{      
    public void init() {            
        super.init();
        //reference to Personal_information
          Personal_information  ob=new Personal_information();
        this.setSize(700,25);
        this.setContentPane(ob.getJContentPane());
    }both class are embedded in two sepreate jsp's.
now my requirement is when i would run first jsp and enter some text in JTextField then after navigating to another jsp the text field should display same text that i did enter in using first jsp.
Edited by: san_4u on Dec 1, 2007 12:01 PM

Similar Messages

  • Add layers from other psd file and retain text layers (Batch processing)

    I want to batch process a large number of portraits adding text info from the filename (year_name_number.jpg) to existing text layers. I want to make a template psd file containg the correct labeled text layers formatted and adjusted (With bleding effects and more) How can i add layers from an other psd file to the active document and retaining the text layers editable. The place command in PS5 adds the file as a smart object, no use.
    Any ideas?
    I tried the combined action/script way, but no joy so far. Right now i am making the text layers with a action, then calling the script from the action. It works but its difficult to make different templates from adjusting a action.
    The code i am using now (in combination with a action creating the 3 text layers and other grapchical elements)
    var docRef = activeDocument;
    // strip the extension off
    var fileNameNoExtension = docRef.name;
    fileNameNoExtension = fileNameNoExtension.split( "_" );
    if ( fileNameNoExtension.length > 1 ) {
                    fileNameNoExtension.length--;
    fileNameNoExtension = fileNameNoExtension.join("_");
    var myString = fileNameNoExtension;
    var mySplitResult = myString.split("_");
    var textLayer = docReflayers['Year']; // define the existing text layer to a var
    docRef.activeLayer = textLayer;
    textLayer.kind = LayerKind.TEXT;
    var T1 = textLayer.textItem;
    T1.contents = mySplitResult[0]
    var textLayer = docRef.layers['Name']; // define the existing text layer to a var
    docRef.activeLayer = textLayer;
    textLayer.kind = LayerKind.TEXT;
    var T2 = textLayer.textItem;
    T2.contents = mySplitResult[1]
    var textLayer = docRef.layers['Number']; // define the existing text layer to a var
    docRef.activeLayer = textLayer;
    textLayer.kind = LayerKind.TEXT;
    var T3 = textLayer.textItem;
    T3.contents = mySplitResult[2]
    Thanks
    Eivind

    norway_photo wrote:
    Here is my intended workflow:
    - A set of same size portraits labeled "year_name_number.jpg"
    - A template.psd os same size with graphical elements and text layers (named "year", "name" and "number")
    - A script or action copy/pasting og adding all layers from the template.psd file to the open portrait file, retaining text layers editable.
    - A script (The one i have working) changing the text layers added from the template to text from the filename.
    - A action saving this as a PDF ready for print.
    This way i can process a large number of portraits, add names and other information and save it as a file ready for print.
    I can image it is much easier to edit a template than writing a script or an action creating all the graphical elements.
    And even better, to change this template for different customers/departments/logos.
    Basically i need a way to add layers to an open file using a batch file or script.
    Eivind
    OK I understand what your trying to do and now I do not agree with your conclusion you made in you first append about place being no good for you.  Its is I think a perfect solution for you. I feel you need to address the process from a new angle.
    I am very familiar with templates I use them all the time for collages which I populate with an actions.  However I do not batch this process and my process is interactive.  If you look at what your trying to do from the angle of creating a collage.  You will see what you are trying to do is automate the population of a single image collage using a single template in a batch process.  An example of one of my single image collage populated by one of my actions that has been saved as a jpeg image file.  My actions are played in Photoshop with no document opened.  After my action is play there is a single collage document in Photoshop that contains layers that can be tweaked all text is in text layers the can be edited.
    If I wanted to automate the batch population of a single collage template I think all I would need to know is three thing.
    1.) The location of the input images
    2.) The full Path of the PSD template file.
    3.) The location to store the output  file
    Looking at some of the recent threads in this forum I could almost cut and past the script you want to put  together.  There was a recent thread that had javascript code to process files in a folder and process only a list of file types.   There also was a thread that had a place function in it to place images into the current document or create a new document to place the image into.  The image was read from the web using a URL.  This thread has code to change a text layer.  At first I though you may need to open these image file to get at its meta-data to get the Portrait image Exif creation data.  But see all you need is the Filename for it has the data you want the year and name.  So the function that get the image files from the folder will give you that. The   Script needs to Open the Template PSD file and retrieve the prototype text layers text content  then the scrip needs a loop that get the next image file to be processed from the folder get filename function. In the loop the image files are place into the open template above a place holder layer like the Background layer. Then using the prototype text contents and the filename are used  create the new content for the text layer and then change the text layers content to it.  Follow that up with a save as for the output file.  Once the output file is saved delete the placed smart object layer.  When this loop ends the script will close the document with no save and end. As for the three inputs you need  the script could either have a dialog like the images processor or simply prompt you for the folders and template file.

  • Export PSD to PDF and retain text

    I know that you can export a PSD to PDF by printing the document with something like NovaPDF, however, doing so will result in a PDF that has no text - it appears the text has been rasterized and the PDF document is just a series of images. Is there a way to export a PSD to a PDF and retain the text blocks?  This would be very helpful in that the PDF can be indexed, or so that the Find feature works on the document in Adobe Reader.
    Thanks!

    Don't worry. On some versions, it's not that easy to spot. Most Save_As will have Photoshop PSD at the top, then drop down alphabetically, so that Photoshop PDF is amongst the "P's." Sometimes I have to squint to see it and have paniced, when I could not initially find it tucked away.
    Good luck,
    Hunt

  • Export PDF Rasterize Vectors but retain text

    I'm running ID3 on 10.5.7 I have a file which is over 100pp and is very vector graphic heavy. My PDF's are coming out at 7.4MB on the smallest file size setting. I know I can raster the whole page but this makes alos makes the file size to big. What I want to do is have a half way setting and rasterize the vectors only and retain the text.
    Is this possible? Can someone explain to me how to achieve this without going back and saving out all images from Illustrator as JPEG's and replaceing them in InDesign?

    There was another thread about this just yesterday. http://forums.adobe.com/message/2090197#2090197
    There was a comment in this link http://indesignsecrets.com/creating-smaller-pdfs-from-a-vector-dense-book.php that seemed to indicate you could rasterize the vector graphics, but not the text, by adjusting the balance in the flattener.

  • Can you retain text highlighting when exporting to PDF from InDesign?

    Hi,
    I have several publications that are now going to be reviewed by another individual and I was planning to export them to PDF.
    However, I've already highlighted bibliographic references, table call outs, figure call outs in the InDesign file using different colors and I was wondering if there is a way to retain that highlighting when exporting to PDF? Just thought it might make their life a little easier since I already have all that done in the file.
    Thanks!

    Ah ha! Got it! All I needed was your prompt! I looked to make sure that it was set up as conditional text and noticed the Show/Hide option at the bottom of the pop-up. (I knew I saw something before that would allow this, but couldn't remember where!)
    Thanks for jogging my memory!

  • How can I retain text clarity when reducing an image?

    Hi
    I need to use a couple of screen shots in an e-learning course. The screen shots contain text and when I try to reduce the sizes of these images the text becomes fuzzy. I've just worked out how to reduce an image size in Photoshop. (I'm not the most proficient user; I bumble through processes when I need it.) I've used 'bicubic' and 'bicubic sharper' in the reduction process, but both produce a fuzzy appearance. Is there a way that I can reduce these images while retaining as much textual clarity as possible?
    Please note that the images have not been created in Photoshop. And I'm not sure if it makes a difference, but I'm using SnagIt for my screen grabs.
    Hope you can help!

    Hi Trevor.
    The images will be used in an e-learning course which I am creating in Articulate Storyline. I don't know if you know anything about Storyline, so I guess you could say it's like an interactive PowerPoint.
    The function of these images (screen grabs) in the course will be to show users how to use the various navigational tools (e.g. click an X to exit the screen).
    Personally, I don't think the clarity of the text matters for what I'm trying to achieve, but other people at my work think it does. I also think I should know how to do this for future reference.
    Thanks.

  • Retain text spacing in document while editing a single

    I finished writing content for a document and formated it along the way.  I now have to go back and make formatting (spacing between paragraphs) changes on specific pages, but this ends up affecting the spacing on subsequent pages within the document.  How do I edit the spacing on a single page without the text moving down on other pages?  I should mention that the text frames are all linked.
    Thanks!   

    Hmm...I guess I havent done any of those things.  I've been using soft returns for the whole document and treating it like a doc in MS word.  I guess I should learn some more about paragraph styles and such
    Here are my screen shots.  The first one shows the text I am trying to move up into the space shown by just pressing backspace.  The second shot shows the text that automatically moves up when I backspace the 1st page.  This is probably super easy, but I'm a noob.

  • Recruiting for redesign of Swing text editing components

    With all due respect to the efforts of the Swing engineering team, I personally feel it is high time somebody took the incentive of completely reconsidering the implementations of JTextComponent and providing an open source replacement.
    As those of us who have tried to make use of the existing JTextComponent will agree, it seems to be some of the most complex and obscure code in the entire Swing library, and has some serious deficiencies of fundamental design and implementation that do not seem to be being addressed.
    I am appealing to anyone who wishes to contribute to such an effort to email me at [email protected] I would like to start by organizing a blue-ribbon team to review the current design, and a parallel effort to identify an ideal requirements set and a project plan moving forward.
    Mitch Goldstein
    Consultant, Swing Guru, Author of Hardcore JFC
    [email protected]

    As those of us who have tried to make use of the
    existing JTextComponent will agree, it seems to
    be some of the most complex and obscure code in the
    entire Swing library, and has some serious
    deficiencies of fundamental design and implementation
    that do not seem to be being addressed.[...]
    It's good to know I'm not the only one that was thinking that. Sorry Tim :-) (Tim Prinzing wrote the text package).

  • How do you retain text formatting when pasting into Pages?

    Hi
    I often copy and paste text into and out of emails. But whenever I paste into Pages it removes all the emboldening or italicisation. Once pasted, the text is all in one style (the one selected when I hit paste).
    Generally there is too much text for me to comb through and find each instance. Is there a setting in Pages that I can change to prevent this happening?
    I'm using Pages version 5.2.2 on iOS 10.9.4.
    Thanks.

    On Mavericks 10.9.5, I created some Rich Text in the email compose window. I copied this text to the clipboard. Pressing command+V in TextEdit or Pages v5.2.2 deposits the original Rich Text in the respective application document. No monochrome for me.
    From Mail 7.3
    To TextEdit 1.9
    To Pages v5.2.2

  • Components inline, and other questions

    Hi, is it possible to flow text between components the way it is done with inline images? Also, I have tried creating an external, interactive SWF and including that as an inline image, but although it displays, it does not function correctly. Is this expected - because this funcionality is only supposed to be used for static images?
    Once an image or SWF has been used inline, and the TFT has rendered it between text, is it possible to get the new X/Y position of this image, and if so, how?
    Lastly, is work still ongoing on this tool and when is it planned to be published as a non-beta version?
    Thanks,
    Jim

    Hi,
    Thanks for this.
    You say external interactive SWFs may not work right, what about components like TextFields, and DropDown boxes? I found out how to get those into the TextFlow and all seems to be okay, is this functionality actually supported/good practice?
    We're going to be looking to use this tool in a production environment, are there any future plans to integrate this into the Flash player as standard as a non-beta product we can rely on?
    Thanks for your help,
    Jim

  • Problem with Refreshing the data bound text fields

    Folks,
    First of all, this a GREAT product and I am moving my apps from Eclipse to Studio Creator. I am very impessed with it so far.
    I am gone through most tutorials, but can't help resolve the problem that I am having. I have a page, that lists all the users in a table. When you click on any user, it opens up another page that lists the detail of the specific user you have clicked on. This a typical use in most web applications, right?
    In the user detail page, I open it in "Read" only mode, by setting the "setReadOnly" to true for all text field components. Then users can edit it by clicking "Edit" button. Edit button just changes the "setReadOnly" to false, to allow editing. After editing, they can hit the "Save" button to save the changes. In the save button, I call this code:
    public void prerender() {
            try {
                userID=getSessionBean1().getUserID();
                getSessionBean1().getWeb_userRowSetUserDetail().setObject(1,userID);
                getWeb_userDataProviderUserDetail().refresh();
                info("prerender: Refresh called");
            } catch (Exception ex) {
                error("Error in userForm.prerender():"+ex.getMessage()+ex.getStackTrace());
                log("Error in userForm.prerender():", ex);
            setReadWrite();
    public String btnSave_action() {
            try {
                getWeb_userDataProviderUserDetail().commitChanges();
                getWeb_userDataProviderUserDetail().refresh();
                info("Data Provider Refreshed in SAVE");
                _readOnly=true;
                form1.discardSubmittedValues("saveVForm");
                info("User Updated New:"+userID);
            } catch (Exception ex) {
                log("Error Description", ex);
            return null;
        public String btnEdit_action() {
            try {
                _readOnly=false;
                //info("User ID Edt="+getSessionBean1().getUserID());
            } catch (Exception ex) {
                error("Error in userForm.btnEdit_action:"+ex.getMessage()+ex.getStackTrace());
                log("Error in userForm.btnEdit_action():", ex);
            return null;
        private void setReadWrite(){
            // Set read-only to true or false for all text fiels
            this.btnEdit.setVisible(_readOnly);
            this.btnSave.setVisible(!_readOnly);
            this.user_id.setReadOnly(_readOnly);
            this.user_email_client.setReadOnly(_readOnly);
            this.user_email_office.setReadOnly(_readOnly);
            this.user_fname.setReadOnly(_readOnly);
            this.user_lname.setReadOnly(_readOnly);
            this.user_id.setReadOnly(_readOnly);
            this.user_password.setReadOnly(_readOnly);
            this.user_password_conf.setReadOnly(_readOnly);
            this.user_phone_cell.setReadOnly(_readOnly);
            this.user_phone_cell_aac.setReadOnly(_readOnly);
            this.user_phone_client.setReadOnly(_readOnly);
            this.user_phone_home.setReadOnly(_readOnly);
            this.user_phone_office.setReadOnly(_readOnly);
        }When the save button is clicked, the database is updated (as I can verify by looking directly into the database), but the data-bound text fields do not display the new value. YES, I am calling refresh() on data provider? I tried to call refresh in both "preRender()" and "Save" button action event, but that did not help either.
    Please note that the save button also changes the "setReadOnly" back to TRUE for all text fields. That means, users view the page in Read-Only mode after saving. (They have to click on "Edit" button again to edit it). I discovered that if I do not set the text field components in "ReadOnly" mode, then they display the updated value of the fields. But if I change setReadOnly to TRUE, then they display the old values (before the save).
    Any idea what I am doing wrong here?
    Thanks

    Here is my experience with it. I have three text
    boxes to be filled out. They are part of a virtual
    form with an add button as the submit. You can fill
    out the 3 and add them and a node is added to a tree
    component. When you click on a node in the tree
    component (the submit to another virtual form that
    the 3 buttons participate in) the text fields should
    be loaded with the values that they where added with.Hard to tell from this explanation, but if the text fields do not participate in a virtual form, then they are not going to get updated when an action in the virtual form happens. Not sure this is your problem. Like I say, hard to tell from this explanation.
    They will not display the values though...having
    nothing to do with read only. If I disable them
    before hand...they display the updated values. If I
    set their value at the top or bottom of prerender,
    they display the change...if I set the value in an if
    conditional that is hit (I have checked many times)
    in prerender, they will not display the values. If I
    set them in the tree handler anywhere, they will not
    display the values. This is very frustrating and is
    wasting tons of my time...I simply want to load the
    text fields based on the tree node that was
    clicked...I have messed with this for hours and it
    certainly does not work.Well, setting them in the tree handler won't work because the tree handler gets called in the page instance that handles the submit and not the page instance that renders the response.
    Posting your prerender code might help. Also, your action handler.
    >
    >
    - Mark

  • How to use formatted text in a static text/laben(or other) component?

    Hello everyone,
    my web application reads a VARCHAR from a SQL Server database which is bound to a static text/label component. The problem is that I don't manage to include line breaks this way.
    Is there any way to do it? It doesn't have to be using a static text or label component, I just want to display formatted text on a web page which was read from a database.
    Thank you very much for your help,
    Arthur

    unfortunately it doesn't work this way(or I am doing it wrong as I don't know anything about css)
    If I set white-space: nowrap the text is displayed in one single line ( so probably I implemented it the right way)
    but with white-space:pre he still ignores all the whitespaces!
    reading the same text (from a microsoft sql server table)with a textarea component all whitespaces and line breaks are shown! there has to be a way to make the static text or label component act this way(I don't want to use the textarea component because it's ugly and doesn't serve for my purpose).
    can anybody help me?
    edit: observation:
    if I use "nowrap" for the textarea component he still keeps all whitespaces WITHIN the string but displays the whole string in one line
    but somehow he deletes white spaces in the beginning of the string
    the static text/label components delete all whitespaces before AND within the string
    Edited by: Arthur... on Feb 15, 2008 9:34 AM

  • Having two or more Text-Enrichment component in an Inetgrator graph

    Hi All,
    The data I am trying to load into Endeca Server v3.0 has got three text columns and I would like to do the text-enrichment process on all of them. At the moment I have used one text-enrichment component per each column (overall three text-enrichment components) but as a result some output columns such as Document-Sentiment or Summary are only containing the last column's sentiment/summary where my ideal is to have a summary of all three columns or an average on their sentiment. I wonder if there is any configuration available for these kind of requirements or if it is possible to use different properties files in order to plan three different set of output columns?
    Appreciate your help, Regards.

    Hi Farnaz,
    If you enriched in parallel, with each branch enriching a different field on the record, you'd wind up with 3 'EntitiesPerson' fields, one on each branch (assuming you're using the same te.properties file).  When you combine the record back together, you will have to do something in your join logic with CTL to combine them.
    Something like:
    $out.0.EntitesPerson = $in.0.EntitiesPerson + ${"MULTIASSIGN_DELIMITER"} + $in.1.EntitiesPerson + ${"MULTIASSIGN_DELIMITER"} + $in.2.EntitiesPerson;

  • How to insert formatted text in a JTextPane component?

    Hello,
    This is my first post in a java forum so i hope to get help :)
    Anyway, i am facing some problems in developping my project , the project consists of a tool to provide text editing allowing text formatting like MS Word , it allows different font style , size , color , text alignment...etc
    My program generates .html files i.e. the text formatting is obtained using html tags ...
    My problem is when the user opens the file again , any text formatting is unsaved, meaning, he MOSt continue typing using the same font size , style...etc any change in the format is unsensed and surely not saved in the html file .
    till now i can't doubt where exactly is my problem .. but i'll be here for any attempts to help me :)
    Thnx a lot

    unfortunately it doesn't work this way(or I am doing it wrong as I don't know anything about css)
    If I set white-space: nowrap the text is displayed in one single line ( so probably I implemented it the right way)
    but with white-space:pre he still ignores all the whitespaces!
    reading the same text (from a microsoft sql server table)with a textarea component all whitespaces and line breaks are shown! there has to be a way to make the static text or label component act this way(I don't want to use the textarea component because it's ugly and doesn't serve for my purpose).
    can anybody help me?
    edit: observation:
    if I use "nowrap" for the textarea component he still keeps all whitespaces WITHIN the string but displays the whole string in one line
    but somehow he deletes white spaces in the beginning of the string
    the static text/label components delete all whitespaces before AND within the string
    Edited by: Arthur... on Feb 15, 2008 9:34 AM

  • How do I add color to a text field?

    I'm setting up a simple Flash contact form that sends a mail message using PHP. I'm using the Text Input and Text Field components and would love to style the background tint of the text fields so as to not be white. I want to be able to enter my own hexidecimal number. This seems like it should be easy, like a button or property or something, but I can't figure it out. Please help!
    Using Flash CS4 on a Mac, in an ActionScript 2.0 file. (Can make a 3.0 file if necessary).

    I'm not sure how to create an input textfield other than dragging out a component. What's the difference?
    Also, this is a difficult one to search for, since all of my attempts have given me answers on how to style the text in the field, but not the background color of the field.
    Any good tutorials on how to create custom skins?

Maybe you are looking for

  • How to set vertical line in SAPScript

    Dear All, I have to set vertical line at a particular position of SAPScript. Here the lines are of varying length. Can you suggest how to do that? Line 1......................            | Vertical Line Line 2.........................         | Verti

  • Is there any limitation on how many apps a developer can upload to the apple store?

    Hi , I am planning to sell the same app to several customer ( clothing shop owners ) and I wonder if there is any kind of limitation on the number of apps a developer can upload to the apple store. Do you think there will be any problem because the a

  • Redesigning a small network

    I've been tasked with redesigning a small network (15-20) including wireless.  Cisco recommends the RV220 as the entry point Firewall/Router/Wireless and researching there are apparently some good and bad sides of having everything all in one unit de

  • Java.io.NotSerializableException when overwrite the JTable data into .txt file

    hi everyone this is my first time to get help from sun forums i had java.io.NotSerializableException: java.lang.reflect.Constructor error when overwrite the JTable data into .txt file. At the beginning, the code will be generate successfully and the

  • Return an Attribute as an equivilent string?

    I'm new to java (I bet you all hear that one lots...) and I'm struggling with types and casting (I think). The sub/function/method below works just fine and displays the value of the attribute on screen - but I would like to return it to the call. Th