Transfer of the variable through JComboBox

Hello people,
I have the following question. In the main JFrame class i put on the JPanel JComboBox. Depending on the values i choose with the help of JCombobox, my following program shoud change the behavior, then in one of classes which is called from another class i use the chosen value.
so, should i again call main class in one of subclasses with the aim to transfer of the given value.? When i call the main the program was hanging,
Thank you in advance
GJavagirl

My
AnimatorFrame.class calls 2 classes
Animator11 and Animator33
Animator33 calls ReadFile.class, but the value (the name of the file is defined in the AnimatorFrame ,
i see only one way to call Animator33(filename), which calles the ReadFile(filename)
Finally my main program doesn't work, what wrong with it?
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class AnimatorFrame extends JFrame implements ActionListener
     Animator11 an1;
     Animator33 an3;
       JButton okbutton,endbutton;
        JPanel buttonPanel;
     public AnimatorFrame() {
          super("Animator");
          addWindowListener(new WindowDestroyer());
          createComponents();
          pack();
          setVisible(true);
     private void createComponents() {
          Container c=getContentPane();
                buttonPanel=new JPanel();
                okbutton=new JButton("Start");
                endbutton=new JButton("Stop");
          buttonPanel.add(okbutton,BorderLayout.CENTER);
                buttonPanel.add(endbutton,BorderLayout.CENTER);
                an1=new Animator11();
          an3=new Animator33();
          an1.setLayout(new BorderLayout());
          an1.add(an3, BorderLayout.NORTH);
                an1.add(buttonPanel,BorderLayout.CENTER); 
          c.add(an1, BorderLayout.SOUTH);
     public void startAnimation() {
          an1.start();
          an3.start();
         public void actionPerforme(ActionEvent e)
   if(e.getActionCommand().equals("Start"))
      this.startAnimation();
   if(e.getActionCommand().equals("Stop"))
    System.exit(0);
     public static void main(String[] args) {
          AnimatorFrame f=new AnimatorFrame();
                f.createComponents();
                f.setVisible(true);
//          f.startAnimation();
}It gives animator class must be declared abstract!
i didn't present here ComboBox problem......

Similar Messages

  • Is it possible to get the value of variable through answers page ?

    Hi all,
    I had Dynamic variable ETLRundate . I want use this variable in Answers page to see the out put ?
    Is it possible to get the value of variable through answers page ?if so how I can use ?

    Hi
    Use the link below and download the documentation
    http://www.oracle.com/technology/documentation/bi_ee.html
    I think you will find what you are looking for in the Answers, Delivers, and Interactive Dashboards User Guide, but in short the syntax to display a variable value is as follows:
    As shown above the syntax for using a presentation variable is:
    @{variablename}{defaultvalue}
    For Session variables use:
    @{biServer.variables['NQ_SESSION.variablename']}
    For repository variables use:
    @{biServer.variables['variablename']}
    Rgds
    Ed

  • How do I transfer photos from my iPhone to my computer that I orignally uploaded to the phone through iTunes?

    I set up my iPhone on my old computer and had transferred photos onto the phone through iTunes.  That computer has since crashed, and I was unable to untinstall itunes before it crashed.  I would like to transfer the photos from my iPhone to my new computer to free up some space on my iPhone.  Sine these are not pictures that i took with the iPhone, how do I transfer them to a computer?  These are baby pictures of my kids, and I do not want to lose them but am out of space on my phone.

    So I ended up uploading all of them to Google Drive.  Took 8 hours, but I got it done.  However, now I can't delete any of these pictures from the iPhone.  Can anyone help me with that?  Because the computer that I originally registered my phone with on itunes is not longer operational, I can't figure out how to do this.

  • HOW TO ACHIEVE THE Variable Substitution THROUGH MODULE BEAN

    Hi All,
    i know the variable substitution for getting the one the value from the payload.
    how can we achieve same thing through using the module been. below screen for your reference.
    help us module bean for variable substitution.
    Regards,
    Kesava

    Hi,
    refer the below link..
    http://scn.sap.com/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean
    Regards
    srinivas

  • Hi, i had recently bought a toshiba 3.0, 1.5tb hdd and i had to change the settings through Disk Utility on my mac to be able to transfer files from my mac to my HDD. The problem i am having now is, it wont connect to my TV or PS3? Can someone please help

    Hi, i had recently bought a toshiba 3.0, 1.5tb hdd and i had to change the settings through Disk Utility on my mac to be able to transfer files from my mac to my HDD. The problem i am having now is, it wont connect to my TV or PS3? Can someone please help

    "....and i had to change the settings through Disk Utility on my mac to be able to transfer files from my mac to my HDD"
    What do you mean by that? Did you format?

  • How to transfer a binary file through the socket?

    hi,
    i have a problem when I want to transfer a binary file through the socket. On the server side we write a program with C. On the client side with use java. The socket worked fine when we transfer some asci files. But failed when transfer the binary file. How to solve the problem? Can someone give me some advice? Thanks a lot.
    sincerely,
    zheng chuanbo

    i use streams to read the binary file. The problem is I don't know when the transfered stream finished. With text file I can recognize the end of the transfer by a special string, but how to deal with the end of a stream? should the server send an "EOF" or something else to the client to notify the end?

  • To pass the values through variable in JDBC adapter

    Hello,
    We are working in JDBC adapter. Currently we have written the select statement in JDBC sender adapter to select all the values from the table in SQL SERVER.
    Instead of this, Can we use a variable and pass the values in there from XI in order to select the records from the table based on values in the variable?
    Expecting Advice!
    Thanks,
    Lakshmi.

    Hi krishnan,
    You can use the JDBC receiver adapter to acheive a select using variables. Here you create a canonical XML format(your XSD) based on which the JDBC receiver adapter issues a select and returns you the response. chk this url in help site http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm for the canonical format.
    However u lose the flexibility of polling the table at regular tables available with sender adapter. Also you need an event(a message) to trigger this select query execution, since it is a receiver CC config.
    -Saravana

  • Which is the best way to transfer the file through the LAN

    I need to transfer files of Size in MB from one PC to another. I have done it by File Copy function with the file path "\\Receiver\C:\File.txt". but it takes 1 Sec approximately for the 10KB of file size. I also need to monitor the file transfer progress. Please suggest the best way to transfer file faster.

    Thanks for the Valuable feedback.
    Actually the File format I  have to tranfer is *.vlf (these file are taken for printing)  which is of few MB of size  I didnt try to transfer this format file. For the testing purpose I have tried with text files.
    Please tell me how to address the destination path (administrative
    share of C$ ). I dont know about UNC path.
    In my Code:
    After transferring files to the destination path (path - which is always accessed by the Printer).  I have to  send command to the PLC that triggers the printer then printer take these files. After these cycle complete, I replace the files with the File Copy Function then again printer is triggered by the PLC - command.  If the PLC command sent after the file transfer sequence, the PLC will immediately triggers the printer to print the file. I have nearly 500ms of time to transfer two of these files.
    All i want to know is File Copy function completes its job after transfer or it just commands to do so. I should not give the command to plc while file tranfer in progress.
    Also please tell me is it possible to monitor the file being transfered ?
    Thanks & Regards
    Sridhar

  • Getting error while creating the variable of Schema Element type

    Hi everybody,
    For creating a variable of schema element type I am doing the following steps...
    Select 'Variables' after right clicking on bpel process. IN this window, go to 'Create VAriable' then select 'Element' type. Now in Type Choose, I expanded the my imported schema files. And selected a element type, then click ok to create this variable... I am getting the message...
    IN ORDER TO SAVE IMPORTED WSDL/SCHEMA FILES, YOU MUST HAVE A PARTNER LINK LOCATED UNDER THE CURRENT PROJECT DIRECTORY.
    What is mean by that.
    I have imported the schema files in project. AFter that I have imported them into the WSDL also. Now why I am getting error while creating the variable. However I can create variable directly in .BPEL file then everything is fine. And it is working also. But what is mean with the above error? Why I am not able to create variable through GUI?
    Thanks.

    Hi,
    I have this same problem this morning, and I was going crazy, until I found this webpage on the internet:
    [http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process|http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process]
    The idea is that the jdeveloper is not very good working with directories with spaces on the directory name. If you move all your work to a directory without spaces, it will work smoothly. At least, it had worked for me.
    Regards,
    Nacho

  • I recently upgraded from 4S to 5S. There are 2 games that I wish to transfer to the new device. 1st game isn't available in the Store anymore, so can't download. 2nd game doesn't save when you change devices. How do I get those 2 apps to my new phone? Tnx

    I recently upgraded from 4S to 5S. There are 2 games that I wish to transfer to the new device. 1st game isn't available in the Store anymore, so can't download. 2nd game doesn't save when you change devices. How do I get those 2 apps to my new phone? Can I do that manually through iTunes?
    Thanks!

    Hello jon713,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iTunes: About iOS backups
    http://support.apple.com/kb/ht4946
    App Store Application data (except the Application itself, its tmp, and Caches folder)
    Application settings, preferences, and data, including documents
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    To transfer iTunes Store purchases from your device to a computer, follow these steps:
    Connect your device to the computer. If it is synced with another iTunes library, the following dialog may appear:
    Click the Transfer Purchases button.
    Have a nice day,
    Mario

  • How to pass the  variable value to reports as a parameter

    hi
    i have facing a problem that i want to pass the value of a variable that i had calculate in a procedure like
    SELECT nvl(BASIC_PAY,0) INTO v_basic FROM EMP WHERE EMP_ID=P_EMP_ID;
    so i want to send the variable value v_basic as a parameter through form to report...and simlarly other variables values which i have calculate in procedure....
    need ur help to solve this problem
    thanks in advance

    it's the exact posting from your last post. Please don't duplicate the postings, so that we can help you in one thread and not so many different threads

  • Message at the variable screen

    Hello,
    I would like that message pops up at the variable screen during the execution of the report.
    How can I implement this functionality?
    Thanks

    Hi,
    Use the following Code, don't write in between Case and EndCase, after ENDCASE you write code for I_STEP  = 3.
    See PDF
    https://websmp203.sap-ag.de/~sapdownload/011000358700002765042003E/HowToVerifyVariableInput.pdf
    Re: send message from EXIT_SAPLRRS0_001
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
         IF I_STEP = 3.
              LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'MONTH'.
                      IF LOC_VAR_RANGE-LOW(4) LE 2010.
                           CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                              EXPORTING
                                I_CLASS = 'RSBBS'
                                I_TYPE = 'I'                     " It will through Warning Message
                                I_NUMBER = '000'
                                I_MSGV1 = 'Pls Enter Year Greater then 2010'.
                            RAISE no_replacement.
                      ENDIF.
             ENDLOOP.
          ENDIF.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
         IF I_STEP = 3.
              LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'MONTH'.
                      IF LOC_VAR_RANGE-LOW(4) LE 2010.
                           CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                              EXPORTING
                                I_CLASS = 'RSBBS'
                                I_TYPE = 'E'
                                I_NUMBER = '000'
                                I_MSGV1 = 'Pls Enter Year Greater then 2010'.
                            RAISE Again  " It won't allow user untile he/she give correct values
                      ENDIF.
             ENDLOOP.
          ENDIF.
    Thanks
    Reddy

  • ITunes 10.4 not playing songs all the way through

    Hi all,
    I am having an issue with iTunes 64bit 10.4. My songs don't play all the way through, sometimes playing a few seconds before skipping to the next one and sometimes well into the song before skipping (without any predictable pattern even for the same song). It doesn't seem to be an issue with the transfer of music files from old computer to new computer b/c the same thing happens with new iTunes Store downloads and when I play music stored on my old computer through Home Sharing.
    Any ideas what may be causing this? Thanks for your help!
    Lenovo ideapad Y470
    Intel Core i5
    Windows 7 64 bit

    Same problem on my daughter's MacBook Pro that we bought last month. She started off with iTunes 10.4, upgraded to iTunes 10.7. Probably 64 bit, though I haven't checked. I think all the new Macs are obligatory 64 bit. The problem occurred with iT 10.4, and still happens with iT 10.7 So far, we have noticed the problem only on files transferred from an old computer. In particular, these are the m4p format, which are drm protected. It does not happen with all m4p files, though.
    1) In this incarnation, the problem is entirely reproducible. If the same track is played over, it skips to the next track at exactly the same point.
    2) The files are not corrupt. They can be played all the way through using Quicktime Player.
    Other than that, I haven't a clue.

  • Is there anyway to edit the names of the Variables/​Tags listed in the .IAK file

    I have an .IAK file that has several (about 130) different fieldpoint devices in it and each device has about 90 variables names listed.  I have modified all the names in order to shorten them and standardize/nomalize the variable names.  I would like to be able to just rename the variables in the IAK file, instead of going to each device, connect, 'find devices' in MAX, Save the IAK File (which takes about 10min each) and then drive to the next device and repeat the process 130 times.  I've seen programs that let you view the IAK file, just wondering if the IAK can be edited programmatically.

    The reason is the IAK file has ALL 130+ fieldpoint devices listed, with approx 85 tags per FP, and I have to get the tag information from each site, then I have to copy that file to the server and reload the server.  If (like what happened yesterday) there is a problem saving the .IAK file or the .IAK file gets corrupted, I have to go back to ALL 130+ FP devices and get the information again.  Also, with that many FP stations in the IAK file, it takes a considerable amount of time per save (approx 10min).  On the server, I get the data from these FP devices through OPC that uses the .IAK file.  It's really not an idea situation, but it's what I have to work with.
    If it can't be done, it can't be done.  I would think that the file has to be saved in some format, granted probably some proprietary NI format, but if I knew the format, I could write a program to edit it, unless it's also compressed in some propritary NI format.

  • Problem using transfer button in VARIABLE SCREEN

    We are using BEX web designer and using bw query  designing the template...and the template after genreation shows the variable screen but the trnsfer button is not functioning properly it does not show the value in the text box.
    I have also hard coded the "&VARIABLE_SCREEN=X" in the url, but still the same problem is occuring.
    can anyone tel what is the problem like

    This is code which iam writing can u now pls tel me why the problem is reocuuring ......by the way the problem is as sson we click the pop window get opened its hsow the repective firlds also but as sson as we select the check box and click transfer the pop closes but the text box still is empty .
    code segment
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="Z_TEMPLATE_02"/>
             <param name="VARIABLE_SCREEN" value="X"/>
             <param name="MENU_DRILL_UP" value="X"/>
             <param name="USE_PAGE_WRAPPER" value="PING"/>
             TEMPLATE PROPERTIES :
    </object>

Maybe you are looking for

  • How do I reduce the megabyte size of a photo to email it

    I have a 4 MB photo that I would like to download to a newspaper. The optimal size for downloading is 2 MB. How to I reduce the size of the photo froom 4 MB to 2MB in Elements 8.

  • Unable to upload images

    As of a few days ago I am unable to upload images online. First I noticed it with a Mixbooks and then with Ebay. In some cases it starts to load it and then starts over and over without any success. On Ebay it just sits there preparing to upload. I t

  • Dreamweaver template not making changes

    Hello everyone, I have been assigned to a new client and thus "take over" an existing website. This website is setup in Dreamweaver using Templates. The main Template is using "Param"s to switch the state of the buttons, on or off. So, I create a new

  • Shutter sound on an Ipod 4G?

    Is there any way at all to turn this sound off? As soon as you pull up the camera to take a picture, when the shutter opens, you CAN NOT turn the volume up or down. I have went to the sounds part in the settings, turned the thing from off to on up at

  • For some reason I am having trouble finding the program

    I clicked Try and then It istalled stuff but at the end I could not find the program at all! It is not on my desktop or in programmes, why is this, have I done something wrong? Were could I find it ? Please help!