Can`t contact to the child Component in JInternalFrame!!!

I have made JInternalFrames, which have the child component( a TextArea).
with JFrame set the ContentPane with JDesktopPane, now I am trying to contact to the TextArea.
<<<<<below is sample code for original>>>>
JInternalFrame internalFrame = desktopPane.getSelectedFrame();
internalFrame.getTextArea().append("Test String\n");
------------------ Error here --------------------------------------
InternalFrameDemo.java:191: cannot resolve symbol
symbol : method getTextAreat()
location: class javax.swing.JInternalFrame
               innerFrame.getTextArea().append(txtField+"\n");
.................................^
1 error
the "getTextArea()" method in [public class MyinternalFrame] is
.....public JTextArea getTextArea(){
.........return txtarea;
.....} // public JTextArea txtarea = new JTextArea(10, 36);
method getTextArea() is correct, and is internalFrame so.
but i dont know the reason internalFrame cannot find its own method, getTextArea().
please give me answer....
if you want, the source is located at
http://home.dongguk.edu/user/yong/javaBug/InternalFrameDeom.zip

In your actionPerformed()-Method, use
JInternalFrame innerFrame = InternalFrameDemo.desktop.getSelectedFrame();
if (innerFrame instanceof MyInternalFrame) {
  ((MyInternalFrame)innerFrame).getTextArea().append(txtField+"\n");
}Hope that helps,
bye

Similar Messages

  • I got hacked and the 'Report a Problem' isn't working. Who can I contact about the purchase I didn't make?

    There is a purchase on my iTunes account made yesterday. I DID NOT make this purchase, but the 'Report a Problem' feature is not working. I am following the directions from the Help section accurately. When I logged in though, it said I needed to change my password because of suspicious activity. Who can I contact?

    Hello,
    I woke up today around 9:30 am UK Time, checked my emails on my phone and then started playing "Talking Ginger" kids game because of one of the offers, around 10:00 I noticed an email alert on top of my iphone screen about itunes receipt.
    When I opened this, it was about "Kids Song Collection" purchase reciept for £1:49.
    I was shocked because first of all my 3 years old daughter is sleeping, secondly I have security settings configured in iphone with a complex password to purchase and she does not know that password and thirdly I am using the phone and I know I didn't even open App Store or that app so how come this has happened.  I did a search on google about how to report and tried to follow the process through itunes but every time I click on "report a problem in itunes" this opens a new apple page in firefox "http://www.apple.com/uk/support/itunes/"
    Whilst further browsing Purchase History in itunes I also noticed another purchase from yesterday about "FireWorks Arcade" and this was unbelieveable because I didn't even receive any receipt yesterday about that purchase and again I am the only one who can make purchases due to the complex password known only to myself.
    I am not sure what is going on here, but clearly as per today's incident it seems that apple is loosing their control.
    Please advise what can be done here.

  • Can different contacts on the same brand of ink cartridge cause printer to print blank pages?

    I have a  HP  office jet 6500 printer -  E709n model.   My operating system is Windows 7.  The printer requires one black cartridge and three different colored cartridges.  My black ran out (steaking, blank spots, etc.); the color cartridges were low, but not out.  I replaced the black cartridge with a new one.  When I did, the printer would not print at all - just blank sheets came out. After trying a few different things, I decided to put the old one back in.  I changed the document I was writing to green and it printed.  I thought this was odd so I decided to check the contacts.  The contacts or microchip on the old cartridge  looked completely different than on the new one.  So I decided to call hp tech service to see if they had changed the contact (microchip) design on their 920 ink cartridges and if that would make a difference.  An hour later after going through their usual steps - cleaning printouts and checking alignment which failed - they decided to send me another black ink cartridge.  Since I was talking to guys in India with heavy accents, it made it quite difficult.  They never answered my question about whether different contacts or microchips on the cartridges would make a difference.  It was chalked up as a faulty cartridge.   I returned it to Staples and purchased a new one.  I opened a new black cartridge, but its contacts looked just like the faulty one I threw away.  I decided to show it to a tech person there.  Two techs there had not seen anything like it.  They opened another black one which had the same style contacts so we concluded that hp had changed their contacts on their cartridges and maybe getting them all to match would work.  I picked up three color cartridges as well, but only checked one.  It had the new design.  When I arrived home, I quickly opened all cartridges and inserted them into the printer.  It still didn't print. So I checked all cartridges.  All had the same style connection or microchip except the yellow ink cartridge.  I couldn't believe it.  So do I take the yellow one back and try to open a package to find a matching connection or do the connection even matter.  The display is registering all cartridges as full, but I am still unable to print anything but blank paper.  I printed an alignment page and only color gets printed, no blank.  So please let me know if the difference in connectors makes any difference in whether things print.  

    There have been some changes in the contacts on the supplies, but this should not cause any issues in printing.
    I would suggest you try the troubleshooting steps in this document.  If that does not resolve the issue then the post here may help.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Who can I contact if the salesperson(s) obviously lied?

    When I explored the triple play, i asked exhaustive questions because I had been warned about Verizon.  We already had phone but was told could bundle phone, tv, and internet for a set price.  I repeatedly asked specifically if it included both land line and cell phone and two different salesfolks said yes it is all included in the one price.  Then I get the first bill and they billed the cell phone separately.  Silly me thought it was just a delay in putting it all together.  But customer service said no, cell service is never bundled.  The bill is correct.  And now I understand what everyone talks about with the rude and useless customer service.    Is there another department I can call?  This is fraud and they must habe recordings of my conversations.  Please help as my blood pressure is exploding.  Thanks.

    I'm also very disgusted with Verizon. I recently was helping my friend's Mother, who is over 75 years old. She was approached by two women salespeople outside her home, and was offered a Triple Deal Bundle with several discounts including $22 off for "Lifeline Discount" which they said she qualified for because of her age. They also told her that despite having a DirectTV contract expiring in March, 2012, that Verizon would work with this company for no further costs. She was so thrilled to get this package because they wrote and told her the costs would be $68/month + taxes.
    Now maybe Verizon doesn't condone these practices, but it should work hard in making sure that their salespeople don't take advantage of the elderly, ingenuous, or simply ignorant consumers. I called to verify my friend's contract, and indeed, they told me that she didn't qualify for the "Lifeline discount" because that only pertained to the impoverished or people with certain incomes.  Although, I didn't ask, I assume that Verizon would not reimburse my friend for her remaining contract with DirectTV either.
    All that Verizon did was to say that they were sorry, and that they would note the complaint. I think that's pathetic, and think everyone should know that these practices still persist throughout this industry as well as in society as a whole. Please watch out for unscrupulous people.

  • If I buy a ipad2 with wifi and not cellalur, can I later add the cellalur component?

    If I buy a IPAD with just wifi and not cell, can I buy the cell compotent later if I choose too add it?

    No. Ipads cannot be upgraded. They are what they are when you buy them. So make sure you get what you need.
    You can however buy a Wiif + 3G iPad and not activated the Cellular service until you want to. Its alittle more expensive, but it gives you the choice of having cell service shoud you want it down the road.

  • Receiving Child Component from Customer in ASEQ status

    Hello.  I am trying to figure out a way receive customer material that is in ASEQ status.  At times the customer will send in a child component instead of the father component.  When the receiver tries to receive the material in off the RMA they receive an error message that the status is not available for receipt.  At that time the end user (receiving) notifies the service department; they will dismantle the equipment and notify receiving.  The receiving department then receives in the child component.  Problem is that this is forgotten to reassemeble after the goods issue back to the customer and is not a streamline process.  I posted this issue in SD and received some replies that gave some interesting different options.  However; I am unable to get the material to the service order for billing on the first two options.  The third option gives a solution after a goods issue to run a program that will identify the child part that was not installed back to the father.  However; the customer does not find this as an ideal solution.
    Here is the link Doing a goods receipt for a customer material that is ASEQ status
    Here is what I would like to happen; but unsure how to accomplish without customizing. 
    Customer Material (Child Component) received at dock and is ASEQ status
    Inbound Delivery created and creates a Service Order in background (IW31)
    Inbound Goods receipt IE4N to service order (User exit/Badi?)
    Cost and Billing already configured for service order - this process wont change
    Outbound Delivery Created Install the Chld Component back to Father component (IE4N User Exit/Badi?)
    There has to be other companies that this happens.   How do they do it?  I am open to other suggestions for this to work.  We do have a developer however they are quite new to SAP ABAP.  Any feed back would be greatly appreciated.

    Hi,
    I have worked with same scenario
    We have sales BOM where main material number and components all have serial number same can be delivered,
    Now customer complaints one of component is faulty then we processed this component in Return and repair process.if you have same scenario then process with this
    If you have serial number for main item and not for components
    Then you can process it with return and repair process now here question is whether you want to generate serial number when component is taken return or you just want to take that component material only it depends on your serial number profile configuration.
    Kapil

  • Is it possible to call a function in a parent component from a child component in Flex 3?

    This is probably a very basic question but have been wondering this for a while.
    I need to call a function located in a parent component and make the call from its child component in Flex 3. Is there a way to access functions in a parent component from the child component? I know I can dispatch an event in the child and add a listener in the parent to call the function, but just wanted to know if could also directly call a parent function from a child (similar to how you can call a function in the main mxml file using Application.application). Thanks

    There are no performance issues, but it is ok if you are using the child component in only one class. Suppose if you want to use the same component as a child to some bunch of parents then i would do like the following
    public interface IParentImplementation{
         function callParentMethod();
    and the parent class should implement this 'IParentImplementation'
    usually like the following line
    public class parentClass extends Canvas implements IParentImplementation{
              public function callParentMethod():void{
         //code
    in the child  you should do something like this.
    (this.parent as IParentImplementation).callParentMethod();
    Here using the Interfaces, we re decoupling the parent and the child
    If this post answers your question or helps, please mark it as such.

  • Painting Child Component

    I have the following code for paintComponent() in a parent component.
        protected void paintComponent(Graphics g)
         if (registeredComponent != null)
             /*Create a copy of the Graphics context and
              ask the component to paint to it.*/
             Graphics2D image = (Graphics2D)g.create();
             registeredComponent.paint(image);
             image.dispose();
        }The problem that I have is that when I ask the registeredComponent to paint itself within its parent's graphics context, it paints under the parent's component border. I tried setting the clip area of the graphics context but with the same results. So I've left the original code here. The child component can be any Jcomponent, so I can't really alter the paintComponent() code within it.
    Any help please.

    I don't think anyone knows what registeredComponentOK, let me explain. The registeredComponent is a child component (which can be any JComponent).
    or why you don't paint the component
    itself or what it is you are actually trying to
    accomplish.The parent component really only paints its child components (I only have one right now) and does not have an image of its own. The parent component, however, does have a border, so all painting should be done inside of this border. That is, the border should not overlap the child component's image. The problem that I'm having is that the border overlaps the child component image. I tried setting the clip area but the same thing happens. That's what I'm trying to solve.
    is or why you are painting it to a copy of the
    graphics context About the copy of the Graphics context, that's just how the java 2d tutorial says to do it - make a copy, paint to it and then release it.
    protected void paintComponent(Graphics g)
    if (registeredComponent != null)
        /*Create a copy of the Graphics context and
         ask the component to paint to it.*/
        Graphics2D image = (Graphics2D)g.create();
        registeredComponent.paint(image);
        image.dispose();
        }

  • How can a parent restrict a child's access to a PARENT'S PRE-EXSISTING iTunes account via iCloud's Family Sharing Program?

    How can a parent restrict a child's access to a PARENT'S PRE-EXSISTING iTunes account via iCloud's Family Sharing Program?  To explain further... I have a young son who is on my iCloud family sharing program... I am excited to be able to share SOME of my music in my iTunes library, but there are some songs and music videos that are not age appropriate for him and currently there is no way to restrict him from viewing and downloading anything off of my iTunes library.  Yes, I suppose I can delete the songs he shouldn't have access to, but I don't think I should have to do that... I paid for them and still like them and listen to them while I work out or am without my kids.  Is there a way for me to personally select which songs/videos I would like to "hide" from my children in an effort to shield them from inappropriate content?

    Hello ggg39,
    Welcome to the Apple Support Communities!
    I understand that you have some content in your iTunes library that you would like to restrict access for the child set up on Family Sharing with you. To do this, you can set restrictions on the child’s device as described in the attached article. 
    Family Sharing - Apple Support
    Now kids under 13 can have their own Apple IDs. As a parent or legal guardian, the family organizer can create an Apple ID for a child and add the child to the family group automatically. Ask to Buy is turned on by default, and the organizer can also limit the content kids have access to on their devices through Restrictions on an iOS device or parental controls in OS X and iTunes.
    For more information on restrictions and how to set them up, please reference the next attached article. 
    About Restrictions (parental controls) on iPhone, iPad, and iPod touch - Apple Support
    Have a great day,
    Joe

  • Who can I contact???

    Who can I contact about the poor customer service I have had since the beginning. I have wasted 4 days waiting for a technician to show up and now I'm told in my area you can only get 3mbps in your area so we're sorry you can't operate Netflix, and 2 tablets and 2 cell phones. I am so mad and when I call into customer support all they say is "I understand how this can be frustrating" no I don't think you do. I want to talk to someone beside the first person who answers the phone

    Hello Thank you for posting!
    Our team can definitely review your options, but unfortunately we can't make any guarantees as there are technical limitations to consider. Please send us a private message by clicking here. Please include your full name, phone number, account number and the best time you can be reached.
    Please let me know if you have any questions.
    Thank you,
    Dmitriy

  • Difference in using the same component made in mxml or action-script

    Hi,
    I made a sample project to show a kind of bug in the SuperTabNavigator component of FlexLib
    In this sample you can see that using the same component (made in both mxml or action-script) can make a difference
    I'm just wondering why ?
    Thanks
    Here is what i've posted :
    What steps will reproduce the problem?
    1. Create a button to dynamically add new tab with icon on a SuperTabNavigator
    2. Click on this button to add new tabs
    What is the expected output?
    - The expected output is tabs added without abnormal behavior
    What do you see instead?
    - Every time a new tab is created the one who had the focus has its content
    (icon + label) moving from the top-left of the tab to its original position
    Please provide any additional information below.
    Configuration:
    - Flex Builder 3 in Eclipse
    - FlexLib 2.3
    Sample:
    (see attached file)
    There is two type of tab, one in action-script and one in mxml
    They both are equal
    - Adding a new action-script tab to SuperTabNavigator works fine
    - Adding the same tab but an mxml one doesn't
    - Adding a new action-script or mxml tab to TabNavigator works fine
    -> meanings that the issue comes with SuperTabNavigator
    - Adding a new mxml tab to both SuperTabNavigator and TabNavigator at the
    same time makes TabNavigator to get the same bad behavior
    Remarks:
    - Tried everything but i'm really stuck
    - Weirdly, removing the PopUpButton correct the issue
    - In the same way if you keep adding action-script tab it automatically scroll to the
    last tab. And if you do the same with mxml tab then it add the tab at the end and
    scroll to the first one.
    => what could be the difference between using action-script or mxml object ?

    Here is one possible solution:
    You can use the ExternalInterface (
    http://livedocs.macromedia.com/flex/2/langref/flash/external/ExternalInterface.html)
    class to communicate with JavaScript. JavaScript can then popup the
    media player very easily like this:
    http://www.webreference.com/programming/javascript/jf/column5/index.html
    The documentation on the ExternalInterface class has a nice
    example (in the bottom of the page) on how to communicate with
    JavaScript in a browser. Hope this helps,
    -george

  • BAPI to update the bulk component in the packaging order.

    Hi ,
    I am working for the process order.
    I want to update the bulk component in the packaging order with the goods receipt batch number of the bulk order.
    Is there any BAPI that I can use for updating the bulk component or I need to use the BDC?
    Regards,
    Kiran Kumar

    Hi Kiran kumar,
    As per my knowledge, there is no BAPI for process order component update
    you need to use BDC for this
    regards,
    sankaran

  • The Label Component, does it do anything

    I have a Label instance on my component, I want to change
    it's properties. I have to use a convoluted method to get it, as
    Flash sucks for scoping. Why is it I can get a refernce the Label
    component (I verify such but outputting the name), but later I can
    not set the text?
    var test:String =
    this._parent[this._name].mynameforthelabel._name;
    trace (test); //gives "mynameforthelable". Looks like I have
    the instance of the Label. Changing the name used verifies it.
    var test2:Label = this._parent[this._name].mynameforthelabel;
    test2.text = "flash sucks hot hairy donky dikk"; //time to
    change it
    trace(test2.text); //gives "undefined". Of course, the above
    line doesn't throw an error as Flash has no error handling unlike
    every other language out there.

    FlashReallyIsNotGood,
    >I have a Label instance on my component, I want
    > to change it's properties.
    Okay.
    > I have to use a convoluted method to get it, as
    > Flash sucks for scoping.
    Heh. Have you considered that your manner of asking for help
    -- in
    fact, the very name you've chosen for your handle -- is akin
    to "biting the
    hand that feeds you"?
    > Why is it I can get a refernce the Label component
    > (I verify such but outputting the name), but later I can
    > not set the text?
    My hunch is that you're doing something wrong.
    > var test:String =
    this._parent[this._name].mynameforthelabel._name;
    Yup, that's definitely convoluted.
    > trace (test); //gives "mynameforthelable". Looks like I
    have
    > the instance of the Label. Changing the name used
    verifies it.
    > var test2:Label =
    this._parent[this._name].mynameforthelabel;
    > test2.text = "this poster sucks hot hairy donky dikk";
    > //time to change it
    > trace(test2.text); //gives "undefined". Of course, the
    above
    > line doesn't throw an error as Flash has no error
    handling
    > unlike every other language out there.
    Every other language? Really?
    Okay, when you're ready to play nice, come on back. There
    are plenty of
    people here happy to help, but honestly ... honestly, now --
    who likes to
    help someone who's throwing a temper tantrum?
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to use the predefined component such as 'POWL_UI_COMP'

    hi,expert.
    i am new to webdynpro for  abap.  i want to use some sap predefined component such as 'SALV_WD_TABLE' and 'POWL_UI_COMP'.
    can someone give me a simple demo about the application of there component?
    thank you.

    HI,
    Well there are lots and lots of examples and tutorials for the type of material you are searching, may be you can search in the WebDynpro for ABAP forum. I am sure you will get lots of threads there which will help you.
    Well to begin with, to use the standard components you need to include them in your WebDynpro component . You can do that in the Used component tab of you component. After doing this you will be able to use the methods, views of that standard compnent.
    Regards,
    Runal

  • What is stored, in addition to contacts, on the iPhone sim card?

    Other than Contacts, what is stored on the iphone sim card?

    The iPhone can store contacts to the SIM Card, but this is not supported by Apple, but the iPhone can actually write to the SIM Card. The iPhone can read contacts from the SIM Card, so if any contacts are present, it can read them perfectly.
    The SIM Card stores your personal phone number and has the User specific Carrier ICCID number among other possible proprietary information.

Maybe you are looking for

  • Match not showing up in iTunes

    For some reason, Match is no longer showing up in iTunes. My AppleID is different from my iTunes ID, if that makes a difference. This used to work fine - in fact the Match process successfully completed for over 22,000 tracks. I have no idea "where i

  • In (select distinct .... ) Vs exists

    Guys, which would be less costly and also quicker performance: SELECT a.*           FROM table1 a WHERE a.linkid IN (           SELECT DISTINCT b.id1                      FROM table2 b                     WHERE b.REF = 'SOMETHING'           UNION ALL

  • Variables selection not appearing while executing query

    hi, am using 3 variables in my query all 3 are ready for input, but still when am testing it in another username, the system does'nt give the selection options and the query is executed automatically. 1 of the variables use company as characteristic.

  • Problem printing Smarform from document_print.htm in HAP_DOCUMENT

    Hello experts! This ismy issue I copied the BSP HAP_DOCUMENT to ZHAP_DOCUMENT The buton print has a javascript like this function NewWindowPrint() {   WindowPrint =   window.open("document_print.htm", "Print", "dependent=yes resizable=yes toolbar=yes

  • Runs VERY slowly--pages change very slowly

    Chrome will run fast.