Sending text across different classes

Okay, due to the nature of my rather large program, I've needed to institute a number of JTextAreas to do my debugging instead of System.out.print.
The problem is, my applet invokes a number of different classes. Now, is there any simple way for a random object class to settext to a JTextArea in my applet class?
I'm not sure if I'm describing this clearly so here' s a situation:
public class myApplet extends javax.swing.JApplet {
//within myApplet is a JTextArea named myDebugTA
In a competely different class...
public class myClass {
//I would like to be able to settext to myDebugTA from this other class
//is this easily possible?
Now, I know I could always write the functions getDebugText() & setDebugText(), but that would be a REAL pain in the neck and a very time consuming solution given the size of my applet and the number of object classes.
Is there any simple way to do this?
Thanks in advance!
Charles

If I understand correctly, you can make a static method in myClass (you should name it MyClass BTW) and use a static text area. This is similar to the way System.out.println works.

Similar Messages

  • Is it possible to send text file with class  cl_bcs

    Hi,
    i want to send a text file with class
    cl_bcs but i dont know it is possible or not?
    Thanks.

    no, it isn´

  • Sending text in different language

    I tried sending a text in Korean, to a friend(iphone 3gs user). And all she recieved is gibberish. Anybody know how to fix this problem?

    I tried sending a text in Korean, to a friend(iphone 3gs user). And all she recieved is gibberish. Anybody know how to fix this problem?
    Perhaps the carrier does not support the encoding used by the iphone. The only thing you can possibly adjust is to put the OS language into Korean or English and see if it makes a difference. You can report the issue to Apple here:
    http://www.apple.com/feedback/iphone.html

  • Is it possible to Auto text across apps

    I'm looking for a way (App) that will let me use Auto text across different Apps.
    I write a lot of similar text pieces several times a day for client replies, and want a way for Auto text to complete these sentences for me.
    I want it to work across Apps like Mail, Pages etc. (fx: I write predefinded shortcut like: "callus" and the auto text fills out "Please don't hesitate to call us back") so that I works the same way (i.e. Use the same shortcuts) in different Apps.
    Anyone?
    Lion, latest hardware and software.

    http://www.smilesoftware.com/TextExpander/
    Try this and there are others
    Declaimer
    i am not affiliated or commercially associated with creation development or distribution of the above software

  • As I bought my iPhone 5 16GB,White in the USA from Sprint, full price with tax,unlocked ,it was excepted to be a global phone. But now I come across with some problems in Chinausing local carrier, everything is working properly except sending text message

    Dear AppleCare,
    As I bought my iPhone 5 16GB,White in the USA from Sprint, full price with tax,unlocked ,it was excepted to be a global phone. But now I come across with some problems in Chinausing local carrier, everything is working properly except sending text message, and iMessage and Facetime also seem not to work.This is very serious for Apple and me! Will I have the chance to fix this?
    I tried all the possible solutions from the Internet, and the Official solution offered by Apple (http://support.apple.com/kb/TS4459), but it doesn't seem to work.
    Will Apple help me with this issue? Please do.
    Information of my iPhone:
    SN:F1*******8GJ
    IMEI: ****
    MEID: ****
    ICCID: ****
    My Apple ID account:****
    <Personal Information Edited By Host>

    I had the same problem.  Kept getting message of waiting for activation or check network connections.  I also tried every solution out there and nothing worked.  This did though:  I download the newest version of itunes (through Internet Explorer - Google Chrome wouldn't work).  It pulled in my entire library thank goodness and then I plugged my iphone 4s into the computer.  I let itunes find it, did a complete backup in icloud, then did a restore.  Entire process took a couple of hours, but I now have imessage and facetime back.  I was about ready to give up on Apple and go get a different phone ~

  • I have placed a different sim card in old iphone 3gs and now cannot send text nor make calls. I get the following error message "error in pdp authentication" I am in italy and old cip vas vodafone. new cip is tim

    As stated I live in italy, a year ago have purchased an iphone 3gs from vodafone company.  I now have purchased an Iphone 4 and have moved that cip in the new phone. 
    In the old Iphone 3gs I have placed another cip from a different company here in Italy TIM and now cannot make calls nor send text messages since I get the following error message "error in pdp authentication".  Can anyone help me in understanding what do I need to do??
    Thank you
    Marco

        Hello Notahappycamper1962
    Let's get that S5 up and running! I want you to love the S5! Is the old device powered off? What zip code are you in?
    I look forward to hearing from you and getting this addressed.
    JoeL_VZW
    Follow us on Twitter @VZWSupport

  • HT3529 My iPhone wont let me send text message to numbers with different area code how do I fix this?

    My iPhone wont let me send text messages to numbers with a different area code. How do I fix this so I can send texts to these numbers?

    If it shows up in iTunes and you can sync the phone, could be that the docking port is damaged.
    You should get it serviced or looked at by visiting an Apple Store or contacting Apple:
    Apple - Support - Service Answer Center

  • Someone is sending texts from a different phone

    How do I stop someone from sending texts from my number?  They've hacked my account. I even changed mu number and said person found me again. Help!

    Have you changed the password on your Apple ID? If not, you need to do that now. Make sure it's a strong password that nobody will be able to guess.

  • Unable to send mail with different fonts and colors

    Hi All,
    here is the explanation for my problem:
    I am sending mail using javamail. when i send the text with different font and color its not received in the same way. it is simply sending as plain text.
    Please help me on this issue.
    Thanks
    NG

    Hello,
    I am trying to develop an email application. It consists on sending email from [email protected] to [email protected]
    How can I do this in java ?
    I am using this software but it works only with gmail !!
             * Send Email to the webmaster
             String  d_email = "[email protected]",
                     d_host = "smtp.gmail.com",
                     d_port  = "465",
                     m_to = "[email protected]",
                     m_subject = "Email from user";
             Properties props = new Properties();
             props.put("mail.smtp.user", d_email);
             props.put("mail.smtp.host", d_host);
             props.put("mail.smtp.port", d_port);
             props.put("mail.smtp.starttls.enable","true");
             props.put("mail.smtp.auth", "true");
             props.put("mail.smtp.debug", "true");
             props.put("mail.smtp.socketFactory.port", d_port);
             props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
             props.put("mail.smtp.socketFactory.fallback", "false");
             SecurityManager security = System.getSecurityManager();
             try
                Authenticator auth = new SMTPAuthenticator();
                Session session = Session.getInstance(props, auth);
                //session.setDebug(true);
                MimeMessage msg = new MimeMessage(session);
                msg.setText("This is a message from: "+UserEmail+"\n "+UserMessage);
                msg.setSubject(m_subject);
                msg.setFrom(new InternetAddress(d_email));
                msg.setSentDate(new Date());
                msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));
                Transport.send(msg);
             catch (Exception ex)
                ex.printStackTrace();
                out.println("Messaging ERROR: " + ex);
                out.println(stack2string(ex));
                    if(ex.getMessage().compareTo("")!=0)
                        check = "Message NOT SENT " + ex.getMessage();
        private class SMTPAuthenticator extends javax.mail.Authenticator
            public PasswordAuthentication getPasswordAuthentication()
                return
    new PasswordAuthentication("[email protected]", "pwd");
        }please advice

  • ANOTHER S60 phone (N85) that won't send text messa...

    This is ridiculous - I'm experiencing the same problem again, as have hundreds if not thousands of other Nokia S60 users across a large number of different phones.  Having the "accepted solution" of all of these be a hard reset of the phone is just plain nuts.  This is a SERIOUS issue that has plagued Nokia phones for years as far as I can tell, and there still is no real solution.  I don't want to do a hard reset - I want my phone to just work like it is supposed to.
    I too have looked at all the other settings - my message center number is correct, creating a new one with the same number did no good, etc. This is not a provider issue - it is a Nokia issue.
    The first time it happened the phone crashed just after I had sent a text message - it then continued to resend that same message over 40 times to my fiancee's phone before I figured out that it was stuck in the outbox resending every three minutes.  I found I could delete the message, and keep it from sending over and over - but now my phone would not send any new messages, although it could still recieve them.  I pulled the battery and the sim card, and eventually my ability to send text messages was restored - no longer would they sit in the Outbox with "resending" next to them.  Then a couple weeks later it happened again - but this time with no crash of the phone first.  Once again I was able to get my outgoing texts back by jumping through hoops.  Now, a few days later, it has again popped up, and so far, I can't restore my ability to send messages.
    So I could back up my phone and do a hard reset - but what is my guarantee that this is going to solve the problem forever?  Oh that's right, it doesn't.  Maybe I will get my ability to send messages back for a week, a month, etc.  Or maybe a day.  I'm just fed up with this issue.  I could put up with a bunch of other problems that the N85 has, but this just takes the cake - because it isn't just an issue with the N85.  It is endemic to all Nokia S60 phones as far as I can tell, from reading so many different accounts of the same issue. I can't wait for an Android phone to come to AT&T so I can dump this thing.  I loved my old 6230 S40 phone - it just worked.  But S60 just seems to have so many issues!

    Hello,
    I also have a similar problem with sending text messages especially to some countries in Western Europe.
    I can receive the messages though from the people that i cannot send too.
    I would also like to point out that this does not only affect People with IPhones. I tried different SIM Cards in 4 different Droids. Same Problem and yes the SMS Service Center Number is correct. Verifed by AT&T's finest.
    After spending numerous hours with AT&T on the phone (which was a waste of time since the first wave of Customer Service that AT&T throws at you has problems tying their shoe laces in the morning) I decided to search the Internet for a solution only to find out that there is a mass of AT&T Customers with similar issues.
    It doesn't matter if the receiving party is with Verizon, T-Mobile, Sprint, T-Mobile Austria, Vodafone Germany, E-Plus-Germany, A1-Austria, Telering  and these are only a few on my list.
    AT&T Customer Service keeps insisting that they do not have a Problem but that the Problem lies solely by every other provider in the world. Arrogance at it's highest level.
    Now my Relatives and Friends in the US and Oversees are contacting their Providers in order to get an AT&TIssue figured out. Pathetic!
    People get charged for Text Messages (20 cents per SMS or more) that never arrive at their destination and as far as i am concerned AT&T is conducting false advertisment.
    This is by no means Global Coverage unless some Brainsurgeons at AT&T are under the impression that Europe and numerous other Countries are not located on the same Globe as they are. On second thought they might be right since they are way out there.
    To bad that i live in an area that has limited Carrier Choices so switching creates some other Issues otherwise i would have cancelled my Contract a long time ago.
    Signed: One very satisfied Customer.
    [Legal discussions are not permitted per the Guidelines]

  • Two equal objects, but different classes?

    When programming on binding Referenceable object with JDK version 1.5.0_06, I have encountered a very strange phenomenon: two objects are equal, but they belong to different classes!!!
    The source codes of the program bind_ref.java are listed as below:
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    import java.lang.*;
    import java.io.*;
    import java.util.*;
    import javax.naming.*;
    import javax.naming.spi.ObjectFactory;
    import java.util.Hashtable;
    public class bind_ref {
    public static void main( String[] args ) {
    // Set up environment for creating the initial context
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory" );
    env.put( Context.PROVIDER_URL, "file:/daniel/" );
    Context ctx = null;
    File f = null;
    Fruit fruit1 = null, fruit2 = null;
    byte [] b = new byte[10];
    try {
    ctx = new InitialContext( env );
    Hashtable the_env = ctx.getEnvironment();
    Object [] keys = the_env.keySet().toArray();
    int key_sz = keys.length;
    fruit1 = new Fruit( "Orange" );
         SubReference ref1 = fruit1.getReference();
    ctx.rebind( "reference", fruit1 );
         fruit2 = ( Fruit )ctx.lookup( "reference" );
         System.out.println( "ref1's class = (" + ref1.getClass().toString() + ")" );
         System.out.println( "fruit2.myRef's class = (" + fruit2.myRef.getClass().toString() + ")" );
         System.out.println( "( ref1 instanceof SubReference ) = " + ( ref1 instanceof SubReference ) );
         System.out.println( "( fruit2.myRef instanceof SubReference ) = " + ( fruit2.myRef instanceof SubReference ) );
         System.out.println( "ref1.hashCode = " + ref1.hashCode() + ", fruit2.myRef.hashCode = " + fruit2.myRef.hashCode() );
         System.out.println( "ref1.equals( fruit2.myRef ) = " + ref1.equals( fruit2.myRef ) );
    } catch( Exception ne ) {
    System.err.println( "Exception: " + ne.toString() );
    System.exit( -1 );
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    All the outputs are shown as below:
    =======================================================
    Fruit: I am created at Mon Jun 18 11:35:13 GMT+08:00 2007
    SubReference: I am created at Mon Jun 18 11:35:13 GMT+08:00 2007
    --------- (i)subref.hashCode() = (-1759114666)
    SubReference: I am created at Mon Jun 18 11:35:13 GMT+08:00 2007
    --------- (i)subref.hashCode() = (-1759114666)
    FruitFactory: obj's class = (class javax.naming.Reference)
    FruitFactory: obj's hashCode = -1759114666
    FruitFactory: obj = (Reference Class Name: Fruit
    Type: fruit
    Content: Orange
    FruitFactory: ( obj instanceof SubReference ) = false
    FruitFactory: subref_class_name = (Fruit)
    Fruit: I am created at Mon Jun 18 11:35:13 GMT+08:00 2007
    ref1's class = (class SubReference)
    fruit2.myRef's class = (class javax.naming.Reference)
    ( ref1 instanceof SubReference ) = true
    ( fruit2.myRef instanceof SubReference ) = false
    ref1.hashCode = -1759114666, fruit2.myRef.hashCode = -1759114666
    ref1.equals( fruit2.myRef ) = true
    ========================================================
    I hightlight the critical codes and outputs related to the strangeness with bold texts.
    Who can tell me what happens? Is it really possible that two objects belonging to different classes are equal? If so, why that?

    It can also depend on how you implement the equals method.
    class Cat {
        String name;
        Cat(String n) {
            name = n;
    class Dog {
        String name;
        Dog(String n) {
            name = n;
        public boolean equals(Object o) {
            return name.equals(o.name);
        public static void main(String[] args) {
            Dog d = new Dog("Fred");
            Cat c = new Cat("Fred");
            System.out.println(d.equals(c));
    }

  • How to download a text file using classes

    Hi Guys
    I want to download a text file using classes.
    Any idea how to do it ?
    Thanks
    Sameer

    HI sameer,
       It is no different from using a Function module.
    example:
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename                  = w_fpath
        append                    = SPACE
          write_field_separator     = 'X'
        CHANGING
          data_tab                  = it_download
        EXCEPTIONS
          file_write_error          = 1
          no_batch                  = 2
          gui_refuse_filetransfer   = 3
          invalid_type              = 4
          no_authority              = 5
          unknown_error             = 6
          header_not_allowed        = 7
          separator_not_allowed     = 8
          filesize_not_allowed      = 9
          header_too_long           = 10
          dp_error_create           = 11
          dp_error_send             = 12
          dp_error_write            = 13
          unknown_dp_error          = 14
          access_denied             = 15
          dp_out_of_memory          = 16
          disk_full                 = 17
          dp_timeout                = 18
          file_not_found            = 19
          dataprovider_exception    = 20
          control_flush_error       = 21
          not_supported_by_gui      = 22
          error_no_gui              = 23
          OTHERS                    = 24
    Regards,
    ravi

  • I am sending text messages to some people who think they come from my husband.  Also evertime I send a text to my husband, a copy is sent to me too.

    I am sending text messages to some people who think they come from my husband.  They have both my name & number and my husbands name and number in their contacts.  Also everytime I send a text to my husband, a copy is sent to me too.  I do however receive text message from people to my phone and it seems to work fine if they do not have my husbands info.

    You don't necessarily need separate AppleIDs, but you need to set the Send and Receive for Messages to different addresses (Settings App > Messages).

  • Material for a single project spread across different locations

    Dear Friends
    my client is executinig trun key projects. One single project may be spread across different geographical locations. Say Project name is "PRJ001".
    PRJ001 will be executed in Bombay, Hyderabad, Chennai.
    There are 2 scenarios for procuring materail:
    1. Since my these places are quite far away, I might procure material from a venodr near to these locations.
    2. I might give PO to one single vendor to dispatch material to these different locations for project execution.
    In the both the cases, how to handle material?
    What will be best option? Should I create a storage location (my client stores material @ site as these projects run for years)?
    I'm procurial material as Project Stock (Q).
    Say Bomaby location needs 500 no. of material, Hyderabad location needs 700 no. of material, Chennai location needs 300 no. of material.
    Now how do I ensure that the right material with right quantity is reaching respective project site?
    In some cases, project runs in remote location. Where there won't be any connectivity/ access to system. In such cases, if the site engineer enters GR/ IR & activity confirmation in excel sheet & later on sends an e-mail with this excel sheet to the office. How can we upload it to the system so that it updates the required fields in the system?
    Please give your suggestions.
    I appreciate your support/suggestion .
    Thanks

    Hi Amaresh,
    I think your Option no. 01 holds good for your requirement. You can define the corresponding Project sites in Chennai, Mumbai and other places as Storage locations. Better define Seperate storage locations for different site locations.
    I think having a delivery schedule with the specific requirement quantities and the storage location should resolve your issue of handling different quantities for the same material. This you can discuss & sort it out with your MM consultant.
    Hope this gives some idea.
    Regards,
    L.Balachandar

  • Can't send texts to one particular friend, texts work one-way, phone calls work both way

    For about a bit more than a month now, one particular friend (and just one, as far as I can tell) has not been receiving my text messages. He can send me texts messages and we are able to call each other. The texts emitted from my phone however, don't seem to go through. I have no indication that the text has not been delivered (no red exclamation point next to it). This particular person is not using an iPhone for this particular phone number.
    I am using an iPhone 4 (32GB) running iOS 7.1.2.
    I have tried many different things.
    (1) I have checked that this friend was not in my block list. The block list is empty. But even if that person were in my block list, would I be able to receive texts and call? I have tried adding that person to the block list then sending a text. Then removing that person from the block list and texting again.
    (2) Yesterday I have restored my phone from a backup. I then erased completely the (long) text exchange between me and this friend, waited for the phone to process the deletion and tried again to send a text. I then deleted the entire contact information of this friend. And then I texted the phone number.
    None of these steps have worked. I'm very puzzled.
    Has anyone ever been confronted to an issue like this one?

    This friend has an iPhone and I can iMessage him on his other phone numbers (he has three). For a short time the Sim card attached to this phone number was inside an iPhone and we did iMessage each other but that was almost a year ago (April 2014). That sim card is now in an ordinary phone (not a smartphone, not an iPhone). We reverted back to texting for a long while. It only began to act strangely on January of this year.
    On that friend's contact card, 2 of the numbers (the ones attached to his iPhone) have blue bubbles next to them. The number I can't send texts to doesn't have that blue bubble - meaning that the number doesn't have iMessage capabilities, right?

Maybe you are looking for

  • XSLT transformation for deep structure .....

    Hello,         I am trying to do an XSLT transformation for a deep structure HAP_S_PDF_DOCUMENT (see it in SE11), I have managed to achieve this. but not with perfection. i still get some redundant data and data have been experiencing Data duplicatio

  • New beginner with iTunes need help please!!

    When i am trying to open iTunes this is the message that has been brought up has anyone had the same problem and who knows how i could fix this problem?? Error Signature AppName: itunes.exe AppVer:7.0.2.16 ModName: unknown Reporting Details This erro

  • Groups not showing up in Planning

    I have created groups in Shared Services and provisioned the groups. I can see the users and groups in Essbase using the administration services console. In Planning, when I try to assign access to a form or dimension, I do not see any users or group

  • How to create Ibase hierarchy on BW

    Hi, I will build Installed Base, CRM object, InfoObject in BW. The Installed Base infoObject will be designed the same as CRM installed base hierarchy. CRM installed base hierarchy can be implemented in BW ? Please give me some information. Best rega

  • Find My iPad box frozen

    I used Find My iPad and found my iPad. However, when I press the "ok" button the Find My iPad Alert box does not disappear. I have pressed the okay button on multiple occassions and even left my iPad alone for an hour, but the Find My iPad Alert box