Making button generating code work in a loop

I'm trying to generate instances of a movieclip from my
library onto the stage and give them all unique variable and
instance names so I can control them later and perform certain
actions based on the name of the button clicked. I can do it with
the following code but I wanted it to use a loop instead to be more
effecient. Can anyone help me make this code work in a loop?
Thanks!
(the working code)
var image1_mc:testButton;
var image2_mc:testButton;
var image3_mc:testButton;
var image4_mc:testButton;
image1_mc = new testButton ();
image1_mc.name = "image1_mc"; // assign instance name
image2_mc = new testButton ();
image2_mc.name = "image2_mc";
image3_mc = new testButton ();
image3_mc.name = "image3_mc";
image4_mc = new testButton ();
image4_mc.name = "image4_mc";
addChild (image1_mc);
addChild (image2_mc);
addChild (image3_mc);
addChild (image4_mc);
image2_mc.x = 50;
image3_mc.x = 100;
image4_mc.x = 150;
image1_mc.y = 500;
image2_mc.y = 500;
image3_mc.y = 500;
image4_mc.y = 500;
(Here's my attempt at a loop but it of course doesn't work
because I'm not sure it's even possible to use a variable to name a
variable :D )
for(var i:Number = 0; i < 4; i++)
var ("image"+(i+1)+"_mc"):testButton = new testButton();
addChild ("image"+(i+1)+"_mc");
"image"+(i+1)+"_mc".name = "image" +(i+1)+"_mc";
"image"+(i+1)+"_mc".x = i * 75;

Hi -- first of all, I might not do it the way you are doing
it, where every variable has a different name. Instead, you could
use an Array to hold all the buttons:
var images:Array = new Array;
for (i = 0; i < 4; i++) {
images
= new testButton();
images.name = "image" + i + "_mc";
this.addChild(images
(I didn't run this code so it may have syntax errors, but you
get the idea.)
If it is necessary to have the variable names you have in
your example, you might be able to use eval() to name your
variables in a loop -- but it looks like they took eval() out
between AS2 and AS3 :-(
Good luck,
Bob

Similar Messages

  • Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Hi connally25,
    Below is a link to a video tutorial on how to add a Facebook Log button, please check if you have followed the same steps to add the video.
    http://tv.adobe.com/watch/learn-adobe-muse-cc/adding-a-facebook-like-button/
    If you have followed the steps correctly and the button still does not work; here is a link to a forum thread which might help solving the issue:
    Facebook Follow Widget not working
    Regards
    Sonam

  • How to retain the java applet generated code when back button is pressed!!

    I've a jsp page in which i've wirtten the code which specifies the word which i write in the text box, then through the applet i'm showing the word which is written in the text box. It means my applet is running and it show the words which i've written in the text box. Now when i click on submit it goes to the next page and when i click on browser's back button then except the applet generated code everyone retains its values. Is there any way to find it out when it encounter the back button click then applet should be restarted. so in this way without writing the whole application form and in the applet generated code i can submit it again.
    My question is how do i reatin the applet generated code when a click button is being pressed (b'coz for the textbox, textareas everything retains it)
    any suggestions or guidance are most welcome.
    thanks in advance....

    you don't need to navigate explicitly. Just clear the back stack till your specific page and say goback. below is the  code you can use.
     protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
                        e.cancel=true;
                    RemoveBackStackTillSpecificPage("page2.xaml");
                    GoBack();
    public static void RemoveBackStackTillSpecificPage(string pageName)
    PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
    var previousPage = frame.BackStack.FirstOrDefault();
    if (previousPage != null && previousPage.Source != null)
                    while (!previousPage.Source.ToString().Contains(pageName))
                        frame.RemoveBackEntry();
                        previousPage = frame.BackStack.FirstOrDefault();
            public static void GoBack()
                PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
                LastPageUri = frame.Source;
                frame.GoBack();
    Please mark this as answer if this answers your question
    Purushothama V S

  • HT201365 i forgot my pass code my home button doesnt work i cant restore because find my phone is on im frustrated and out of solutions my home button just stopped working today and it has just been one issue after another this morning help help help

    i forgot my pass code my home button doesnt work i cant restore because find my phone is on im frustrated and out of solutions my home button just stopped working today and it has just been one issue after another this morning help help help

    If you are unable to restore your iPhone with iTunes without having to enter the passcode, you will not be able to update your iPhone's backup. You will need to place the iPhone into recovery mode in order to restore the iPhone with iTunes and you can restore from the most recent backup available.
    http://support.apple.com/kb/ht1808

  • How to code a parallel 'for loop' and 'while loop' where the while loop cannot terminate until the for loop has finished?? (queues also present)

    I've attached a sample VI that I just cannot figure out how to get working the way that I want.  I've labeled the some sections with black-on-yellow text boxes for clarity during the description that follows in the next few sentences.  Here's what I want:
    1) overall -- i'm intend for this to be a subVI that will do data acquisition and write the data to a file.  I want it to use a producer/consumer approach.  The producer construct is the 'parallel for loop' that runs an exact number of times depending on user input (which will come from the mainVI that is not included).  For now I've wired a 1-D array w/ 2 elements as a test case.  During the producer loop, the data is acquired and put into a queue to be delt with in the consumer loop (for now, i just add a random number to the queue).
    2) the consumer construct is the 'parallel while loop'.  It will dequeue elements and write them to a file.  I want this to keep running continuously and parallel until two conditions are met.
          i. the for loop has finished execution
          ii. the queue is empty.
       when the conditions are met, the while loop will exit, close the queue, and the subVI will finish. (and return stuff to mainVI that i can deal with on my own)
    Here's the problems.
    1)  in the "parallel for loop" I have a flat sequence structure.. I haven't had time to incorporate some data dependency into these two sequential sections, but basically, I just care that the "inner while loop" condition is met before the data is collected and queued.  I think I can do this on my own, but if you have suggestions, I'm interested.
    2)  I can easily get the outer for and while loops to run sequentially, but I want them to run in parallel.  My reasoning for this is that that I anticipate the two tasks taking very different amounts of time. .. basically, I want the while loop to just keep polling the queue to get everything out of it (or I suppose I could somehow use notifiers - suggestions welcome)...  the thing is, this loop will probably run faster than the for loop, so just checking to see that the queue is empty will not work... I need to meet the additional condition that nothing else will be placed in the queue - and this condition is met when the for loop is complete. basically, I just can't figure out how to do this.
    3) for now, I've placed a simple stop button in the 'parallel while loop', but I must be missing something fundamental here, because the stop button is totally unresponsive.  i.e. - when I press it, it stays depressed, and nothing happens.
    suggestions are totally welcome!
    thanks,
    -Z
    Attachments:
    daq01v1.vi ‏59 KB

    I'd actually like to add a little more, since I thought about it a bit and I'm still not quite certain I understand the sequence of events...
    altenbach wrote:
    zskillz wrote:
    So i read a bit more about the 'dequeue element' function, and as I understand it, since there is no timeout wired to the dequeue element function, it will wait forever, thus the race condition I suggested above can never happen!
    Yes, you got it!
    As I've thought about it a bit more, there's a few things that surprise me... first, the reason the 'dequeue element while loop' errors is not because there's nothing in the queue, it's becaues the queue has been released and it's trying to access that released queue...   However the problem I have is this --- Even though there's no timeout wired to the dequeue element, I still would think that the while loop that contains it would continue to run at whatever pace it wanted -- and as i said before.. most of the time, it would find that there is nothing to dequeue, but once in a while, something is there.  however, it seems that this loop only runs when something has been enqueued.  the reason I say this is illustrated in the next code sample MODv2 that's attached below.  I've added a stop button to the "queue size while loop" so the program runs until that is pressed.  I've also added a simple conditional in the "dequeue while loop"  that generates a random number if it a button is pressed... but this button is totally non-responsive... which means to me that the "dequeue while loop" isn't actually continuously running, but only when an element is added to the queue.  this still seems almost like the 'dequeue while loop" waits for a notifier from the queue telling it to run.  can you explain this to me? because it is different from what I expect to be happening.
    rasputin wrote:
    I tried to open your VIs but it doesn't work. LV
    is launched, the dialog box (new, open, configure...) opens and then...
    nothing. Not even an error message. I guess it isn't a problem of LV
    version or a dialog box would appear saying this. Could you, please,
    send a image of the code?
    Thanks,
    Hi Rasputin, I'm using LV8.  I assume that was your problem, but who knows.  I've attached a pic of of altenbach's solution since it's what I needed.
    thanks
    -Z
    Message Edited by zskillz on 10-20-2006 11:49 AM
    Attachments:
    daq01v1MODv2.vi ‏63 KB
    daq01v1MODpic.JPG ‏116 KB

  • CommandLink and Button don't work in nested form

    Hi,
    I have such a structure:
    <h:form ...>
       <h:datatable ...>
           <h:form ...>
              <h:commandButton ...>Somehow this structure corrupts the buttons and links. When I remove the inner form element, then they work properly.
    Interesting point is that not only commandLink/Buttons inside the inner form but also commandLink/Buttons outside the inner form are corrupted. There is no error message neither.
    This is not a big deal for me, cause inner form was useless. I wrote here for error documentation and curiosity. Do you know the reason of this behavior?
    Thanks...
    Mert

    Hi,
    Just see the HTML generated code and you will get your answer :-)
    In html, nested forms do not work, then nested form in jsf do not work as well.
    Hope to help.

  • 'Create' Push button is not working in BDC and LSMW while uploading G/L master data

    Hello Experts:
    I am facing the following problem:
    While uploading G/L master data with the BDC program, 'create' push button is not working  even after executing following lines.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=ACC_CRE'.
    Create G/L account  screen is not coming in BDC. Please suggest me what to do.
    Thanks !!

    Re: 'Create' Push button is not working in BDC and LSMW while uploading G/L master data
    Re: 'Create' Push button is not working in BDC and LSMW while uploading G/L master data
    Hi Glen Anthony
    Thank you for the reply Glen Anthony please take a look at the following code.
    REPORT  ZFI_BDC_FS00
            NO STANDARD PAGE HEADING LINE-SIZE 255.
    *INCLUDE BDCRECX1.
    TYPES : BEGIN OF STR,
       BUKRS TYPE GLACCOUNT_SCREEN_KEY-BUKRS,        "Company Code
       SAKNR TYPE GLACCOUNT_SCREEN_KEY-SAKNR,        "G/L Account Number
       KTOKS TYPE GLACCOUNT_SCREEN_COA-KTOKS,        "G/L Account Group
       XPLACCT TYPE GLACCOUNT_SCREEN_COA-XPLACCT,    "P&L statement account
       XBILK TYPE GLACCOUNT_SCREEN_COA-XBILK,        "Indicator: Account is a balance sheet account?
       TXT20_ML TYPE GLACCOUNT_SCREEN_COA-TXT20_ML,  "G/L account short text
       TXT50_ML TYPE GLACCOUNT_SCREEN_COA-TXT50_ML,  "G/L account short text
       WAERS TYPE GLACCOUNT_SCREEN_CCODE-WAERS,      "Account currency
       XSALH TYPE GLACCOUNT_SCREEN_CCODE-XSALH,      "Indicator: Only Manage Balances in Local Currency
       MWSKZ TYPE GLACCOUNT_SCREEN_CCODE-MWSKZ,      "Tax Category in Account Master Record
       XMWNO TYPE GLACCOUNT_SCREEN_CCODE-XMWNO,      "Indicator: Tax code is not a required field
       MITKZ TYPE GLACCOUNT_SCREEN_CCODE-MITKZ,      "Account is reconciliation account
       XOPVW TYPE GLACCOUNT_SCREEN_CCODE-XOPVW,      "Indicator: Open item management?
       XKRES TYPE GLACCOUNT_SCREEN_CCODE-XKRES,      "Indicator: Can Line Items Be Displayed by Account?
       ZUAWA TYPE GLACCOUNT_SCREEN_CCODE-ZUAWA,      "Key for sorting according to assignment numbers
       FSTAG TYPE GLACCOUNT_SCREEN_CCODE-FSTAG,      "Field status group
       XINTB TYPE GLACCOUNT_SCREEN_CCODE-XINTB,      "Indicator: Is account only posted to automatically?
       END OF STR.
    DATA : ITAB TYPE TABLE OF STR WITH HEADER LINE,
            IT_BDCDATA TYPE TABLE OF BDCDATA WITH HEADER LINE,
            TXT(4096) TYPE C OCCURS 0,
            MSG TYPE STRING,
            COUNT(5) TYPE N.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
       PARAMETERS : MY_FILE TYPE RLGRAP-FILENAME.
    SELECTION-SCREEN : END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR MY_FILE.
    CALL FUNCTION 'F4_FILENAME'
      EXPORTING
        PROGRAM_NAME        = SYST-CPROG
        DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
      IMPORTING
        FILE_NAME           = MY_FILE
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
       EXPORTING
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
         I_TAB_RAW_DATA             = TXT
         I_FILENAME                 = MY_FILE
       TABLES
         I_TAB_CONVERTED_DATA       = ITAB[]
      EXCEPTIONS
        CONVERSION_FAILED          = 1
        OTHERS                     = 2
    IF SY-SUBRC <> 0.
    * IMPLEMENT SUITABLE ERROR HANDLING HERE
    ENDIF.
    START-OF-SELECTION.
    COUNT = 0.
    LOOP AT ITAB.
    *PERFORM OPEN_GROUP.
    REFRESH  IT_BDCDATA.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_KEY-BUKRS'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=ACC_CRE'.
    *PERFORM BDC_FIELD       USING 'BDC_CURSOR'
    *                              'GLACCOUNT_SCREEN_KEY-BUKRS'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_KEY-SAKNR'
                                   ITAB-SAKNR. "'5'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_KEY-BUKRS'
                                   ITAB-BUKRS. "'TATA'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=2102_GROUP'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_COA-KTOKS'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-KTOKS'
                                   ITAB-KTOKS. "'GL'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
                                   ITAB-XPLACCT. "'X'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=2102_BS_PL'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_COA-XBILK'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-KTOKS'
                                   ITAB-KTOKS. "'GL'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
                                   ITAB-XPLACCT. "''.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-XBILK'
                                   ITAB-XBILK. "'X'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=TAB02'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-KTOKS'
                                   ITAB-KTOKS. "'GL'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-XBILK'
                                   ITAB-XBILK. "'X'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_COA-TXT50_ML'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-TXT20_ML'
                                   ITAB-TXT20_ML. "'G/L ACCOUNT'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-TXT50_ML'
                                   ITAB-TXT50_ML. "'G/L ACCOUNT'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=TAB03'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-WAERS'
                                   ITAB-WAERS. "'INR'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XSALH'
                                   ITAB-XSALH. "'X'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-MWSKZ'
                                   ITAB-MWSKZ. "'*'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XMWNO'
                                   ITAB-XMWNO. "'X'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-MITKZ'
                                   ITAB-MITKZ. "''.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_CCODE-ZUAWA'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XOPVW'
                                   ITAB-XOPVW. "'X'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XKRES'
                                   ITAB-XKRES. "'X'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
                                   ITAB-ZUAWA. "'1'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=SAVE'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_CCODE-XINTB'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-FSTAG'
                                   ITAB-FSTAG. "'G019'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XINTB'
                                   ITAB-XINTB. "'X'.
    *PERFORM BDC_TRANSACTION USING 'FS00'.
    CALL TRANSACTION 'FS00' USING IT_BDCDATA MODE 'E' UPDATE 'S'.
    COUNT = COUNT + 1.
    *PERFORM CLOSE_GROUP.
    ENDLOOP.
    CONCATENATE COUNT ' RECORDS UPDATED SUCCESSFULLY' INTO MSG.
    MESSAGE MSG TYPE 'I'.
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
       CLEAR IT_BDCDATA.
       IT_BDCDATA-PROGRAM  = PROGRAM.
       IT_BDCDATA-DYNPRO   = DYNPRO.
       IT_BDCDATA-DYNBEGIN = 'X'.
       APPEND IT_BDCDATA.
    ENDFORM.
    *        INSERT FIELD                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
    *  IF FVAL <> NODATA.
         CLEAR IT_BDCDATA.
         IT_BDCDATA-FNAM = FNAM.
         IT_BDCDATA-FVAL = FVAL.
         APPEND IT_BDCDATA.
    *  ENDIF.
    ENDFORM.

  • How to use wscompile to generate code using a WSDL file?

    I am working with JAX-RPC of Java Web Service ver: 1.1. I am intrested in making the WSDL file first and generating Java code from the WSDL file. On the following link:
    http://java.sun.com/webservices/docs/1.1/tutorial/doc/JAXRPC6.html#wp80094
    it says that wscompile can generate code using a WSDL file..:
    <quote>
    Table 11-3 wscompile Options
    -import : read a WSDL file, generate the service's RMI interface and a template of the class that implements the interface
    </quote>
    and the wscompile software says this:
    <quote>
    C:\>wscompile
    -import : generate interfaces and value types only
    </quote>
    can anyone tell me how to generated Java code from a WSDL file. As in, make the WSDL file (e.g. using XMLSpy) and then use that WSDL generate Java code.
    Thanks

    I'm trying to generate code using wscompile under the struction in JAXRPC_Tutorial.pdf.
    I issued the following command:
    wscompile.sh -keep -gen:client -f:wsi -verbose config.xml
    But I met with the following warning and I cann't find the produced java code, who know why? Thanks in advance!
    warning: ignoring SOAP port "EmployeeDBPort": unrecognized transport
    warning: Service "EmployeeDatabase" does not contain any usable ports
    the config.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
    xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl name="EmployeeDBService"
    location="EmployeeDB.wsdl"
    packageName="com.sun.xml.rpc.xml.EmployeeDB">
    </wsdl>
    </configuration>

  • JAXWS: clientgen generates code which it can't compile?

    Hi,
    I am trying to get the weblogic JAX-WS stack working, however I am stuck at the following:
    C:\projects\eclipse\cml\test-ws-wls>ant -f clientgen_build.xml build_client
    Buildfile: clientgen_build.xml
    build_client:
         [echo] d:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-launcher.jar;d:\apps\oracle\WLS121~1\patch_wls1211\profiles\default\sys_manifest_cla
    sspath\weblogic_patch.jar;d:\apps\oracle\WLS121~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\apps\java\CURREN~2\lib\tools.jar;d:
    \apps\oracle\WLS121~1\wlserver\server\lib\weblogic_sp.jar;d:\apps\oracle\WLS121~1\wlserver\server\lib\weblogic.jar;d:\apps\oracle\WLS121~1\modules\features\webl
    ogic.server.modules_12.1.1.0.jar;d:\apps\oracle\WLS121~1\wlserver\server\lib\webservices.jar;d:\apps\oracle\WLS121~1\modules\ORGAPA~1.1\lib\ant-all.jar;d:\apps\
    oracle\WLS121~1\modules\NETSFA~1.0_1\lib\ant-contrib.jar;d:\apps\oracle\WLS121~1\wlserver\common\derby\lib\derbyclient.jar;d:\apps\oracle\WLS121~1\wlserver\serv
    er\lib\xqrl.jar;C:\projects\wls\domains\cml\classes-ext\;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-all.jar;D:\apps\oracle\wls1211_dev\modu
    les\org.apache.ant_1.7.1\lib\ant-antlr.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-apache-bcel.jar;D:\apps\oracle\wls1211_dev\modules\or
    g.apache.ant_1.7.1\lib\ant-apache-bsf.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-apache-log4j.jar;D:\apps\oracle\wls1211_dev\modules\or
    g.apache.ant_1.7.1\lib\ant-apache-oro.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-apache-regexp.jar;D:\apps\oracle\wls1211_dev\modules\o
    rg.apache.ant_1.7.1\lib\ant-apache-resolver.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-commons-logging.jar;D:\apps\oracle\wls1211_dev\m
    odules\org.apache.ant_1.7.1\lib\ant-commons-net.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-jai.jar;D:\apps\oracle\wls1211_dev\modules\o
    rg.apache.ant_1.7.1\lib\ant-javamail.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-jdepend.jar;D:\apps\oracle\wls1211_dev\modules\org.apac
    he.ant_1.7.1\lib\ant-jmf.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-jsch.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\li
    b\ant-junit.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-launcher.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-net
    rexx.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-nodeps.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-starteam.jar
    ;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-stylebook.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-swing.jar;D:\apps
    \oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-testutil.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant-trax.jar;D:\apps\oracle\wl
    s1211_dev\modules\org.apache.ant_1.7.1\lib\ant-weblogic.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\ant.jar;D:\apps\oracle\wls1211_dev\modul
    es\org.apache.ant_1.7.1\lib\xercesImpl.jar;D:\apps\oracle\wls1211_dev\modules\org.apache.ant_1.7.1\lib\xml-apis.jar;D:\apps\java\CURRENT-x64\lib\tools.jar
    Trying to override old definition of datatype clientgen
    [clientgen] System property "weblogic.wsee.client.ssl.stricthostchecking" is not supported
    [clientgen] Catalog dir = C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z\META-INF\wsdls
    [clientgen] Rename file [ TestWSPolicyService?xsd=1 ] to [ TestWSPolicyService1.xsd]
    [clientgen] Download file [TestWSPolicyService1.xsd] to C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z\META-INF\wsdls
    [clientgen] Download file [wls-policy.wsdl] to C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z\META-INF\wsdls
    [clientgen] Ignoring JAX-RPC options - building a JAX-WS client
    [clientgen]
    [clientgen] *********** jax-ws clientgen attribute settings ***************
    [clientgen]
    [clientgen] wsdlURI: file:/C:/projects/eclipse/cml/test-ws-wls/wls-policy.wsdl
    [clientgen] packageName : null
    [clientgen] destDir : C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z
    [clientgen]
    [clientgen] *********** jax-ws clientgen attribute settings end ***************
    [clientgen] Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
    [clientgen] parsing WSDL...
    [clientgen]
    [clientgen]
    [clientgen]
    [clientgen] Generating code...
    [clientgen]
    [clientgen]
    [clientgen] Compiling code...
    [clientgen]
         [null] Compiling 7 source files to C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z
    [clientgen] C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z\policy\jaxws\lab\nevexis\com\TestWSPolicyService.java:47: cannot find symbol
    [clientgen] symbol  : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
    [clientgen] location: class javax.xml.ws.Service
    [clientgen]         super(TESTWSPOLICYSERVICE_WSDL_LOCATION, TESTWSPOLICYSERVICE_QNAME, features);
    [clientgen]         ^
    [clientgen] C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z\policy\jaxws\lab\nevexis\com\TestWSPolicyService.java:55: cannot find symbol
    [clientgen] symbol  : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
    [clientgen] location: class javax.xml.ws.Service
    [clientgen]         super(wsdlLocation, TESTWSPOLICYSERVICE_QNAME, features);
    [clientgen]         ^
    [clientgen] C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z\policy\jaxws\lab\nevexis\com\TestWSPolicyService.java:63: cannot find symbol
    [clientgen] symbol  : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
    [clientgen] location: class javax.xml.ws.Service
    [clientgen]         super(wsdlLocation, serviceName, features);
    [clientgen]         ^
    [clientgen] 3 errors
    [AntUtil.deleteDir] Deleting directory C:\Users\xtrnatv\AppData\Local\Temp\_vhn32z
    BUILD FAILED
    Compile failed; see the compiler error output for details.
    Total time: 3 seconds
    The bulk on top is the classpath as you can see from my build.xml
    <project name="test-ws-wls" basedir="." default="fork_build_client">
      <!--
      Using this build file:
      When launching from eclipse we want to run clientgen with the jvm on the user's
      classpath, not with the jvm that was used to launch the IDE.  The fork_build_client
      target accomplishes this.         
              INSTALL_HOME - The home directory of all your WebLogic installation.
              WL_HOME    - The root directory of your WebLogic server installation.
              ANT_HOME - The Ant Home directory.
              JAVA_HOME - Location of the version of Java used to start WebLogic
                  Server. See the WebLogic platform support page for an
                  up-to-date list of supported JVMs on your platform.       
            Command Line: 
            The build_client target can be run directly with the dev environment setup by
              WL_HOME/server/bin/setWLSEnv.
              Run As, Ant Build:
              Add WL_HOME/server/lib/weblogic.jar to the Classpath User Entries.  Verify ant home is set
              to INSTALL_HOME/modules/org.apache.ant_VERSION.  Verify JAVA_HOME/lib/tools.jar is on the classpath.
              As Builder:
              The following property fork.class.path must be set either in the global ant runtime or in the
              local ant build configuration.  The following values must be set in the path:
                  - WL_HOME/server/lib/weblogic.jar
                  - ANT_HOME/lib/ant-all.jar
                  - JAVA_HOME/lib/tools.jar
                  (ie: WL_HOME\server\lib\weblogic.jar;ANT_HOME\lib\ant-all.jar;JAVA_HOME\lib\tools.jar)
      -->
      <target name="fork_build_client">
        <java
            fork="true"
            failonerror="true"
            classname="org.apache.tools.ant.launch.Launcher"
            maxmemory="512m"
            jvm="${java.home}/bin/java"
            >
          <arg value="-f" />
          <arg value="${ant.file}" />
          <arg value="build_client" />
          <env key="CLASSPATH"
               value="${fork.class.path}" />       
        </java>
      </target>
      <target name="build_client">
          <echo>${java.class.path}</echo>
        <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
        <clientgen
            failonerror="true"
            type="JAXWS"
            wsdl="${basedir}/wls-policy.wsdl"
            destFile="${basedir}/WebContent/WEB-INF/lib/wls-policy.wsdl.jar"
            serviceName="TestWSPolicyService"
            copyWsdl="true"
            >
        <sysproperty key="weblogic.wsee.client.ssl.stricthostchecking" value="false"/>
        </clientgen>
      </target>
    </project>
    The error is a one I know it has to do with the difference between
    Service (Java EE 5 SDK)
    and
    Service (Java EE 6 )
    I wonder why does this compilation fail? I think I am missing the javax.xml.ws.Service in my CLASSPATH, or may be I should be using some of the jars as "endorsed" ...
    I tried following this article:
    Developing WebLogic Web Service Clients - 12c Release 1 (12.1.1)
    Can someone give me a clue?
    Thanks!

    There is a way to do it, but your memory will be lost. Plug the iPod into the computer and hold the lock and the home button at the same time and continue holding. It will turn off automatically and turn back on. When the apple logo shows up, release the home button and continue holding the home button. Then it will come up in iTunes and say you need to restore the iPod.
    You may be able to use one of your backups to restore the lost memory, but probably the old passcode will come back with the backup. All of your apps and music should be in iTunes, so very little worries.

  • Making button and a html site in visual studio community version

    Hi,
    I like to Making button and a html site  in visual studio community version but i dont know how to put the right code in my c# form to perform a action to my new html site i made with visual studio.
    So ik have a button and i added a html site with the "add" options to my form.I want the button to open onclick that site so i can make a html about some info of the button image (tool to use with metal)
    Any one? Sorry i am very new at this and also from the netherlands but i want to  coding in c# great to to learn..
    Many thanks!
    Arend

    Hi Arend,
    Thank you for posting in MSDN forum.
    Since this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance
    Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. Based on your issue, I think that the issue is more related to the programming. So I’m afraid that it is not the correct forum for this issue.
    To help you find the correct forum for this issue, could you please tell
    me which kind of app you want to create? Is it winform app or others?
    If you want to code for a winform app using c# language, I suggest you
    can consult your question on specific
    WinForm forum so that they can share you something for you to start.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How Do Mobile Codes Work? FAQ

    You may have seen them in our weekly ads, on BestBuy.com, or on signs in our retail stores: two-dimensional images that look similar to traditional bar codes, but are irregular and often square. Ever wonder what they are? They’re Mobile Codes!
    What is a Mobile Code?
    A Mobile Code is any two-dimensional (DataMatrix or QR code) or linear bar code (UPC) which can be read by a smart phone, linking the physical world with the on-line world. Some bar code symbologies are in the public domain, such as UPC and DataMatrix and some symbologies are proprietary (e.g. Microsoft’s Tag and EZ codes).  Bar Code scanners today are “image scanners,” and since most smart phones have cameras built into them, we can now use them as personal bar code scanners!
    Do I need software to read a Mobile Code?
    Yes. The Best Buy Mobile App is free software you can download to your phone that contains a bar code reader. The reader will scan UPC and QR codes for products carried by Best Buy. To download the reader, simply follow these instructions:
    1)      Text “APP” to 332211.
    2)      Click on the link that is returned
    3)      Download and install the Best Buy Mobile App on your phone
    4)      Launch the app, push the Product Scan button, and hover the phone over the code.
    Try this one: 
    You can also download the app through several platform-specific app stores:
             iPhone via Apple App Store
             Android Phone via Google Play
             Windows Phone and Touch Screen PC via Windows Phone Store
    Additional app features can be found on http://www.BestBuy.com/App.
    What phones are supported?
    The Best Buy Mobile App is available on most iPhone, Android, and Windows Mobile devices. It is also available for Touch Screen PCs. iPad version coming soon!
    What service plans will I need?
    The service relies on a data plan from your provider or the free Wi-Fi network available in each of our retail stores. The amount of bandwidth consumed varies based on the product experience rendered. If you do not have an unlimited data plan, please plan accordingly. Remember, watching videos can use more bandwidth than viewing mobile web pages.
    What type of bar codes can I scan with the Best Buy Mobile App?
    The Best Buy Mobile App reads QR (Quick Response) Codes, which are the square two-dimensional bar codes with the three smaller squares in the upper right and left of the bar code and in the lower left.   The Best Buy Mobile App can also read UPC codes (the codes used at cash registers in stores). The app does not currently read Data Matrix codes which are square two-dimensional codes, but they don’t have the three smaller squares in them.
    What will happen when I scan the Mobile Code?
    After reading a Best Buy Mobile Code, you will be taken to a mobile web page that contains item specific information. You can use the Best Buy Mobile App to compare a number of products or narrow your selection of items based on parameters you select while in the store.
    Is there any personal information involved?
    No personal information is obtained from your phone. If you have the Best Buy Mobile App and have logged in, your My Best Buy membership information may be used to create a personalized experience.
    How do mobile codes work?
    The Best Buy Mobile App includes the software required to turn your phone into a scanner. All you need to do is initiate the scanner and hover the phone over the code. The app scans the code and launches the corresponding experience. It’s the best of both worlds: you can be online and in the store at the same time!
    How do I save the data for use later?
    On the iPhone and Android, add the product to your cart. Products added to your cart are available until removed. A list of recently viewed products can also be accessed through the main app menu.
    What prices will I see on my mobile device?
    You will see our regular BestBuy.com prices.  In some cases they may vary from the in-store price.

    If you touch the left side of the telephone number field, you get a drop down Label from which you can select the type of number it is to be.

  • Since bundle 2921 some of my buttons no longer work

    I updated phone to version 6 bundle 2921 over the weekend and now the following buttons no longer work, 'S,G,H,L,W' and my scroll button no longer works either. These speed dials no longer work (speed dials to other letters are fine.)
    I have not dropped it, got it wet or let the battery run out. I figure it is a software issue as I didn't have any of these issues before the update. Also, when I do a battery pull, the buttons work for a short time (1 minute) and then no longer work.
    Is there an update to the update or can I roll back to my previous version?
    thanks

    Hello,
    The simplest way is to, on a PC (you cannot do this on MAC):
    1) Uninstall, from your PC, any BB OS packages
    2) Make sure you have the BB Desktop Software already installed
    http://us.blackberry.com/apps-software/desktop/?lid=us:bboftwareesktopSoftware&lpos=us:bboftware
    3) Download and install, to your PC, the BB OS package you desire:
    http://us.blackberry.com/support/downloads/download_sites.jsp
    4) If that OS package is from a carrier other than the carrier for which your BB was originally manufactured, then delete, on your PC, all copies of VENDOR.XML (there will be at least one, perhaps 2)
    5) Launch the Desktop Software and connect your BB...the software should offer you the OS package you installed to your PC. If, during the process, your BB presents a "507" error, simply unplug the USB cord from the BB and re-insert it...don't do anything else...this should allow the install to continue.
    Don't forget to backup.
    If you are on MAC, you are limited to only your carriers sanctioned OS packages...but can still use any levels that they currently sanction. See this procedure:
    KB19915How to perform a clean reload of BlackBerry smartphone application software using BlackBerry Desktop Software
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Multiple sets of radio buttons no longer working

    Hello All:
    My first post so I apologize in advance if I don't do it
    properly.
    I have a few web forms that have multiple groups of radio
    buttons on them that are suddenly errorring out since we moved to
    CF 7. I started tinkering with the one form that I have posted the
    code for and kept cutting it down to the simplest code that begins
    to produce the error. If I just use 1 radio button group everything
    works fine, but the minute I add the second one, the whole thing
    throws a "Syntax error (missing operator) in query expression"
    message. Each radio button group has it's own group name and a
    checked value. It is very simple code and very frustrating why it
    has suddenly stopped working so any assistance is welcome.
    Here's the form code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body background="white" marginheight="0"
    marginwidth="0">
    <cfform action="testSub.cfm" method="POST">
    <table width="95%" border="0" cellpadding="0">
    <tr>
    <td width="24%"><img src="survey.jpg"
    border="0"></td>
    <td width="76%"><p>It is our desire to assure
    that MID is meeting the needs of
    our clients. xxxxxxx
    <p> </p>
    <p>*****************************************************<br>
    </p></td>
    </tr>
    <tr>
    <td colspan="2"><p>Please answer questions 1
    through 4 with a 1 - 5 rating, with 1 being POOR and 5 being
    EXCELLENT.</p>
    <p> You are not obligated to provide this
    information.</p>
    <p><font face="Arial, Helvetica, sans-serif"
    size="2">My Name (First &amp;
    Last):</font> <font face="Arial, Helvetica,
    sans-serif" size="2">
    <cfinput type="Text" name="poc" required="no" size="50"
    maxlength="50">
    <br>
    <b>1. Was
    your service technician polite and
    courteous?</b><br>
    <cfinput type="radio" name="polite" value="1">
    1
    <cfinput type="radio" name="polite" value="2">
    2
    <cfinput type="radio" name="polite" value="3" checked>
    3
    <cfinput type="radio" name="polite" value="4">
    4
    <cfinput type="radio" name="polite" value="5">
    5     </p>
    <p><br>
    <br>
    2. Was
    your service technician polite and
    courteous?</b><br>
    <cfinput type="radio" name="know" value="1">
    1
    <cfinput type="radio" name="know" value="2">
    2
    <cfinput type="radio" name="know" value="3" checked>
    3
    <cfinput type="radio" name="know" value="4">
    4
    <cfinput type="radio" name="know" value="5">
    5     </p>
    <input type="submit" name="btnSubmit" value="Submit My
    Comments!">
    <input type="reset" name="reset" value="Reset
    Form"><br>
    <br>
    </cfform>
    <tr>
    <td> </td>
    <td> </td>
    </tr>
    </table>
    </body>
    </html>
    The ACTION code
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <CFIF IsDefined("FORM.btnSubmit")>
    <CFQUERY NAME="Add" datasource="newMID">
    INSERT INTO survey(
    poc,
    polite,
    know
    VALUES (
    '#poc#',
    '#polite#'
    '#know#',
    </CFQUERY>
    </CFIF>
    <cfoutput>
    Thank you. Your IT survey has been forwarded to our NHCPR IT
    mailbox.
    </cfoutput>
    <cfmail to="[email protected]"
    FROM="[email protected]"
    SUBJECT="IT Survey Form">
    Polite: #polite#
    Know: #know#
    POC (opt.): #poc#
    </cfmail>
    </body>
    </html>

    OK. I took out the extra comma. Put a space in after *survey*
    and put "form" in front of the variables in order to scope them. I
    got it to work just then and decided to add the next radio button
    and once again, the error message keeps coming up.
    Here's what it looks like now.
    ACTION
    code***********************************************************
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <CFIF IsDefined("FORM.btnSubmit")>
    <CFQUERY NAME="Add" datasource="newMID">
    INSERT INTO survey (
    poc,
    polite,
    know,
    time
    VALUES (
    '#form.poc#',
    '#form.polite#',
    '#form.know#',
    '#form.time#'
    </CFQUERY>
    </CFIF>
    <cfoutput>
    Thank you. Your IT survey has been forwarded to our NHCPR IT
    mailbox.
    </cfoutput>
    <cfmail to="[email protected]"
    FROM="[email protected]"
    SUBJECT="IT Survey Form">
    Polite: #polite#
    Know: #know#
    POC (opt.): #poc#
    Timely: #time#
    </cfmail>
    </body>
    </html>
    The ERROR msg
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in
    INSERT INTO statement.
    The error occurred in
    C:\Inetpub\wwwroot\PaxNew\chiefOscar\testSub.cfm: line 20
    18 : '#form.polite#',
    19 : '#form.know#',
    20 : '#form.time#'
    21 : )
    22 :
    SQL INSERT INTO survey ( poc, polite, know, time ) VALUES (
    'kennedi', '3', '5', '3' )
    DATASOURCE newMID
    VENDORERRORCODE -3502
    SQLSTATE 42000
    Resources:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
    SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Remote Address 10.249.6.81
    Referrer
    http://205.115.107.22/chiefoscar/tsurvey.cfm
    Date/Time 29-Jan-08 02:05 PM
    Stack Trace (click to expand)

  • Buttons don't work

    I am working on a small application.
    My main frame is a public class that defines two buttons in its constructor one for input and the other for feedback.
    The input screen and the feedback screens are defined as inner listener classes of the main class.
    The code compiles fine but the buttons don't work.Please take a look at my code and make suggestions for what I am doing wrong
    Thanks
    import java.awt.*;
    import java.awt.event.*;
    public class project1 extends Frame {
    static Object source;
    static Button input, feedback, apply;
    public project1(){ 
    super("Project Development Coordination System");     
    setSize(500,500);
    setLayout(new BorderLayout());
    //Build and add 1st Panel of project1
    Panel p1 = new Panel(new BorderLayout());
    TextField Title = new TextField();
    Title.setFont(new Font("Sansserif", Font.BOLD, 48));
    Title.setText("HORNSONIC");
    Title.setEditable(false);
    TextField Name = new TextField();
    Name.setFont(new Font("Sansserif", Font.BOLD, 30));
    Name.setText("Hera International, Inc.");
    Name.setEditable(false);
    p1.add(Title, BorderLayout.NORTH);
    p1.add(Name, BorderLayout.CENTER);
    add(p1, BorderLayout.NORTH);
    //Build and add 2nd Panel
    Panel PDCS = new Panel();
    TextField pdcs = new TextField();
    pdcs.setFont(new Font("Sanserif", Font.BOLD, 22));
    pdcs.setText("Project Development Coordination System");
    pdcs.setEditable(false);
    PDCS.add(pdcs);
    add(PDCS, BorderLayout.CENTER);
    //Build and add 3rd Panel
    Panel buttons = new Panel();
    Button input = new Button("INPUT");
    buttons.add(input);
    Button feedback = new Button("FEEDBACK");
    buttons.add(feedback);
    input.addActionListener( new Input());
    feedback.addActionListener(new Feedback());
    add(buttons, BorderLayout.SOUTH);
    addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent event){
         System.exit(0);
    //end of project1()
    //Input class     
    static class Input extends Frame implements ActionListener {
              Input(){
    super("Input");
    setSize(500,500);
    //Build and add FirstPanel of the Frame
    Panel FP = new Panel(new BorderLayout());
    //Build and add northpanel of FP
    Panel np = new Panel(new BorderLayout());
    //Build and add subpanel1 of np
    Panel subpanel1= new Panel();
    Label L1 = new Label("Sample#");
    TextField T1 = new TextField(10);
    T1.setEditable(true);
    Label L12 = new Label("Customer:");
    TextField ctf = new TextField(10);
    ctf.setBackground(Color.gray);
    ctf.setForeground(Color.black);
    ctf.setEditable(true);
    subpanel1.add(L1);
    subpanel1.add(T1);
    subpanel1.add(L12);
    subpanel1.add(ctf);
    //Build and add subpanel2 of np
    Panel subpanel2 = new Panel();
    TextField sub1t = new TextField(10);
    sub1t.setBackground(Color.gray);
    sub1t.setForeground(Color.black);
    sub1t.setEditable(true);
    subpanel2.add(sub1t);
    Label sublabel = new Label("Model#");
    subpanel2.add(sublabel);
    TextField sub2t = new TextField(10);
    sub2t.setBackground(Color.gray);
    sub2t.setForeground(Color.black);
    sub2t.setEditable(true);
    subpanel2.add(sub2t);
    np.add(subpanel1, BorderLayout.NORTH);
    np.add(subpanel2, BorderLayout.CENTER);
    FP.add(np, BorderLayout.NORTH);
    //Build and add centerpanel of FP
    Panel cp = new Panel(new BorderLayout());
    //Build and add subcenter1 of centerpanel
    Panel subcenter1 = new Panel(new BorderLayout());
    Panel NP = new Panel();
    Label Project = new Label("Project Scope");
    NP.add(Project);
    TextField PS = new TextField(10);
    PS.setBackground(Color.gray);
    PS.setForeground(Color.black);
    PS.setEditable(true);
    NP.add(PS);
    Label Appl = new Label("Application:");
    NP.add(Appl);
    TextField Price1 = new TextField(10);
    Price1.setBackground(Color.gray);
    Price1.setForeground(Color.black);
    Price1.setEditable(true);
    NP.add(Price1);
    subcenter1.add(NP, BorderLayout.NORTH);
    Panel CP = new Panel();
    Label TP = new Label("Target Price-");
    CP.add(TP);
    TextField appl = new TextField(10);
    appl.setBackground(Color.gray);
    appl.setForeground(Color.black);
    appl.setEditable(true);
    CP.add(appl);
    Label quote = new Label("Quoted Price-");
    CP.add(quote);
    TextField Q = new TextField(10);
    Q.setBackground(Color.gray);
    Q.setForeground(Color.black);
    Q.setEditable(true);
    CP.add(Q);
    subcenter1.add(CP, BorderLayout.CENTER);
    cp.add(subcenter1, BorderLayout.NORTH);
    //Build subcenter panel of cp
    Panel subcenter = new Panel(new GridLayout(1,3));
    List list = new List (3,true);
    list.addItem("Woofer:");
    list.addItem("Mid:");
    list.addItem("Tweeter");
    subcenter.add(list);
    TextArea inches = new TextArea(3,5);
    inches.setBackground(Color.gray);
    inches.setForeground(Color.black);
    inches.setEditable(true);
    subcenter.add(inches);
    List list1 = new List(3, true);
    list1.addItem("Count-");
    list1.addItem("Count-");
    list1.addItem("Count-");
    subcenter.add(list1);
    TextArea count = new TextArea(3,5);
    count.setBackground(Color.gray);
    count.setForeground(Color.black);
    count.setEditable(true);
    subcenter.add(count);
    List list2 = new List(3, true);
    list2.addItem("Materials:");
    list2.addItem("Materials:");
    list2.addItem("Materials:");
    subcenter.add(list2);
    TextArea materials = new TextArea(3,5);
    materials.setBackground(Color.gray);
    materials.setForeground(Color.black);
    materials.setEditable(true);
    subcenter.add(materials);
    cp.add(subcenter, BorderLayout.CENTER);
    FP.add(cp, BorderLayout.CENTER);
    //Build and add southpanel of FP
    Panel sp = new Panel();
    TextArea comments = new TextArea("Comments:", 3,30);
    sp.add(comments);
    FP.add(sp, BorderLayout.SOUTH);
    add(FP, BorderLayout.NORTH);
    //Build and add SouthPanel of Frame
    Panel SP = new Panel();
    List l1 = new List(8,true);
    l1.addItem("Quote Requested:");
    l1.addItem("Quote to be completed by:");
    l1.addItem("Sample Requested:");
    l1.addItem("STd sent to Factory:");
    l1.addItem("Factory estimated ETD:");
    l1.addItem("Revised ETD#1:");
    l1.addItem("Revised ETD#2:");
    l1.addItem("Revised ETD#3:");
    SP.add(l1);
    TextArea dates1 = new TextArea(8,8);
    dates1.setBackground(Color.gray);
    dates1.setForeground(Color.black);
    dates1.setEditable(true);
    SP.add(dates1);
    List l2 = new List(8, true);
    l2.addItem("Days Quote overdue:");
    l2.addItem("Date Quote Received:");
    l2.addItem("Actual ETD:");
    l2.addItem("Sample Arrival Date:");
    l2.addItem("Days Sample overdue:");
    l2.addItem("Days in Development:");
    l2.addItem("Date sent to customer:");
    l2.addItem("Actual Days to customer:");
    SP.add(l2);
    TextArea dates2 = new TextArea(8,8);
    dates2.setBackground(Color.gray);
    dates2.setForeground(Color.black);
    dates2.setEditable(true);
    SP.add(dates2);
    add(SP, BorderLayout.SOUTH);
    //Build and add CenterPanel of Frame
    Panel TD = new Panel();
    TextField td = new TextField("TIME IN DEVELOPMENT");
    TD.add(td);
    add(TD, BorderLayout.CENTER);
              addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent event){
         System.exit(0);
    }// end of input()
    public void actionPerformed(ActionEvent Event)
    Object source = Event.getSource();
    if (source == input){
                   new Input();
                   setVisible(true);
    }//end of input if
              }//end of actionPerformed.
         }//end of class input
    //Feedback class
    static class Feedback extends Frame implements ActionListener{
    Feedback(){
    super("Feedback");
    setSize(500,500);
    //Build and add panel 1.
    Panel p1 = new Panel(new BorderLayout());;
    //Build and subpanel off panel 1
    Panel subpanel1= new Panel();
    Label L1 = new Label("Sample#");
    TextField T1 = new TextField(10);
    T1.setEditable(true);
    Label L12 = new Label("Customer:");
    TextField ctf = new TextField(10);
    ctf.setBackground(Color.gray);
    ctf.setForeground(Color.black);
    ctf.setEditable(true);
    subpanel1.add(L1);
    subpanel1.add(T1);
    subpanel1.add(L12);
    subpanel1.add(ctf);
    Panel subpanel2 = new Panel();
    TextField sub1t = new TextField(10);
    sub1t.setBackground(Color.gray);
    sub1t.setForeground(Color.black);
    sub1t.setEditable(true);
    subpanel2.add(sub1t);
    Label sublabel = new Label("Model#");
    subpanel2.add(sublabel);
    TextField sub2t = new TextField(10);
    sub2t.setBackground(Color.gray);
    sub2t.setForeground(Color.black);
    sub2t.setEditable(true);
    subpanel2.add(sub2t);
    p1.add(subpanel1, BorderLayout.NORTH);
    p1.add(subpanel2, BorderLayout.CENTER);
    add(p1, BorderLayout.NORTH);
    //Build and add Panel 2
    Panel p2 = new Panel(new BorderLayout());
    //Build and add subcenter1 of Panel 2.
    Panel subcenter1 = new Panel(new BorderLayout());
    //Build subpanels of subcenter 1.
    Panel NP = new Panel();
    Label Project = new Label("Project Scope");
    NP.add(Project);
    TextField PS = new TextField(10);
    PS.setBackground(Color.gray);
    PS.setForeground(Color.black);
    PS.setEditable(true);
    NP.add(PS);
    Label Appl = new Label("Application:");
    NP.add(Appl);
    TextField Price1 = new TextField(10);
    Price1.setBackground(Color.gray);
    Price1.setForeground(Color.black);
    Price1.setEditable(true);
    NP.add(Price1);
    subcenter1.add(NP, BorderLayout.NORTH);
    Panel CP = new Panel();
    Label TP = new Label("Target Price-");
    CP.add(TP);
    TextField appl = new TextField(10);
    appl.setBackground(Color.gray);
    appl.setForeground(Color.black);
    appl.setEditable(true);
    CP.add(appl);
    Label quote = new Label("Quoted Price-");
    CP.add(quote);
    TextField Q = new TextField(10);
    Q.setBackground(Color.gray);
    Q.setForeground(Color.black);
    Q.setEditable(true);
    CP.add(Q);
    subcenter1.add(CP, BorderLayout.CENTER);
    p2.add(subcenter1, BorderLayout.NORTH);
    //BUILD and add subcenter to Panel 2);
    Panel subcenter = new Panel();
    List list = new List (3,true);
    list.addItem("Woofer:");
    list.addItem("Mid:");
    list.addItem("Tweeter");
    subcenter.add(list);
    TextArea inches = new TextArea(3,5);
    inches.setBackground(Color.gray);
    inches.setForeground(Color.black);
    inches.setEditable(true);
    subcenter.add(inches);
    List list1 = new List(3, true);
    list1.addItem("Count-");
    list1.addItem("Count-");
    list1.addItem("Count-");
    subcenter.add(list1);
    TextArea count = new TextArea(3,5);
    count.setBackground(Color.gray);
    count.setForeground(Color.black);
    count.setEditable(true);
    subcenter.add(count);
    List list2 = new List(3, true);
    list2.addItem("Materials:");
    list2.addItem("Materials:");
    list2.addItem("Materials:");
    subcenter.add(list2);
    TextArea materials = new TextArea(3,5);
    materials.setBackground(Color.gray);
    materials.setForeground(Color.black);
    materials.setEditable(true);
    subcenter.add(materials);
    p2.add(subcenter, BorderLayout.CENTER);
    //Build and add south subpanel of Panel 2
    Panel subpanel = new Panel();
    Label L2 = new Label("Sample Disposition:");
    subpanel.add(L2);
    TextField T2 = new TextField(10);
    T2.setEditable(true);
    subpanel.add(T2);
    Label l2 = new Label("Date:");
    subpanel.add(l2);
    TextField t2 = new TextField(10);
    t2.setEditable(true);
    subpanel.add(t2);
    TextArea TF = new TextArea("Feedback:",3,30);
    TF.setEditable(true);
    subpanel.add(TF);
    p2.add(subpanel, BorderLayout.SOUTH);
    add(p2, BorderLayout.CENTER);
    //Build and add Panel 3.
    Panel p3 = new Panel();
    Label L3 = new Label("Project Continued on Revision#:");
    TextField T3 = new TextField(10);
    T3.setEditable(true);
    Label l3 = new Label("Order Placed:");
    TextField t3 = new TextField(10);
    t3.setEditable(true);
    p3.add(L3);
    p3.add(T3);
    p3.add(l3);
    p3.add(t3);
    add(p3, BorderLayout.SOUTH);
    setVisible(true);
    addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent event){
         System.exit(0);
    }//end of Feedback()
    public void actionPerformed(ActionEvent AE){
    if (AE.getSource() == feedback){
    new Feedback();
         setVisible(true);
    }//end of feedback if
    }//end of actionPerformed
    }//end of class Feedback
    public static void main (String args[]){
         project1 window = new project1();
         window.setVisible(true);
         //end of main
    }//end.

    I compiled and did run your code....
    it seems you are trying to implement a Frame with two buttons... each time the user click on a button, the main frame displays the equivalent panel with a set of components .. isn�t it ?
    well... some tips:
    1 - Why don�t you use a JTabbedPane ? a much better container than a simple Frame....
    2 - If you really need to use a Frame as a container of multiple forms.. then you should take a look in the java.awt.CardLayout
    other tip: don�t use the Frame component as the same class as the ActionListener.. divie these comopnents in two classes...

  • Auto generated code in makefile

    For our product we have a TCL script that reads a series of text files and generates C++ classes for easy access to database records. Our code has been in use for make years and works very well. We have always used a solaris command prompt dmake to compile, which first generates the C++ files then complies them. It uses a series of enviroment variables which a user must set before compilation.
    I recently tried to create a Sun Studio Express based on NetBeans 6.5.rc1 project from a make file. This has worked for every other makefile except for this one. The others do not have any auto generated code.
    To run sun studio I in a command prompt source in the environments then run netbeans. Then I choose to build the product but I get an error. I then try to copy the command it is running into telnet window and it works fine. Does anyone have an idea on why in the sun studio I get and error while the telnet window works fine.

    I think the problem is that the SunStudio IDE runs the build command in a wrong directory.
    Can you verify that the working directory is correct?
    (it is in project properties: Build > Make)
    Also you can find this directory in the message in the output, when you try to build the project.
    That's the message, that you copied to the terminal window.
    Thanks,
    Nik

Maybe you are looking for

  • Photo slide show "shuffle" is not random

    I have over 10,000 photos on my ipod touch and they are in multiple folders.  When I view a slide show on shuffle of my "Photo Library" (which contains all of the photos), the order is DEFINITELY not random.  Approximately 90% or more of the photos s

  • MEncoder: DVD to avi with subtitles results in screen flicker

    I'm trying to make an avi-file using mencoder with subtitles. Playing the DVD, or the VOB-file in mplayer works and encoding it without subs in mencoder works, but as soon as I include the subs, the avi-movie starts to flicker like crazy after the fi

  • Problem in cfloder creation

    HI , i am getting error when i am am editing RFX . when i am creating cfolfders i am getiing error. not authrized. but having sap all authorixation. what may be the problem Regards, S.Srinivasulu Reddy.

  • How does the Concurrent Access License (CAL) work.

    Description from Google: How does the Concurrent Access License (CAL) work? Xcelsius Engage Server CALs allow for concurrent live data updates inside Xcelsius dashboards. Every time an end-user triggers a Web service inside an Xcelsius dashboard to r

  • Selection-screen functionality

    Hi, I have 2 questions regarding selection-screens: 1. I have 2 select-options like this in my selection-screen: Matnr:  s_matnr Vendor: s_lifnr How can I make a check that if Matnr is filled then Vendor has to be filled as well and vice versa ? 2. I