In Need of Help Creating an Action

Hello,
I need to create several thousand QR codes and I am trying to work out how to automate it so that I don't have to make them one at a time.
My idea was to download the EVEnX QR Code plugin for Photoshop and then make an action, or series of actions, to make the codes en mass. The information I need in each QR Code is a URL, with each code having a unique one that links to the products serial number.
So, I created a file roughly the size of the QR codes I needed and used vairables to insert the URL on text layer. I was hoping to be able to create an action that would copy that text, open the plugin (which works like a filter), paste the text, create the code and save/close the image.
However, I can't seem to get it to work. I don't know how to make an action to have it highlight the text layer or an action to paste it into the plugin.
Also, the plugin allows you to make a variable of certain information it pulls from the file but the closest I can get to what I need is file name, however I can't make the files named for the URL because of the slashes. They allows you to use file name, file path and the information like size and date.
Sorry for the long post but I HAVE to get this figured out as this project is for work and I am on a time limit. I don't have to use an action, any other way would be fine! I don't have much experience with scripts but if you can walk me through one that would work then I would be happy to try! PLEASE HELP!!!
Thanks!
In Need of Help Creating an Action

Have you checked out Image > Variables and the Help chapter »Creating data-driven graphics« yet?

Similar Messages

  • I need Fusion help creating a demo of BRM JCA Resource Adapter

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

  • Hi, In need of help creating a simple effect to image.

    Attached is an image which shows more or less the effect I am needing to achieve.
    http://i303.photobucket.com/albums/nn149/Jaybeedubya/FotoliaComp_635945_xs3N3VFLwPNTIOm1.j pg
    I created the image above by desaturating the colour image of the man and then adding a new purple layer and selecting 'vivid light' from the layer palette drop down box. In doing this the man became purple but the white area surrounding him stayed white...I then adjusted the layers on the first layer so that the white part became purple - the final result is what you see in the attached image.
    The problem is this - I need to create this effect for 15 or so images all with a specific purple pantone colour, I need to create these for print ready artwork. All the pictures (ie the man) I will be using, need to look the same kind of shade. The way I was creating these before was to adjust the bottom layer so its grey rather than white so that the white area becomes purple.
    Confusing huh, If you dont understand my question (and I dont blame you!) then all I need is to create a set of 15 images that look like the attached image (using a specific pantone) but I have no idea how the best way to do it is.
    How would you guys achieve that? Any help greatly appreciated.

    So its gonna be a two-color-job?
    Because with the extreme depths adding Black at least might be beneficial.
    You could make a Selection of a black&white-version-of-the-photographs luminance, inverse it and, in the Channels-Panels PopUp-menu, choose Add New Spot Channel for the Foreground color and select the Pantone color.
    Then Add New Spot Channel for the background-color and fill that solid black and hide the layers that contain the composite of the photograph.
    This should leave You with blank composite channels and the two Spot Channels visible.
    Indesign can handle either psd- or DCS2-files containing Spot Channels.
    The problem I perceive here is that depending on the print-process and the background color selected it might proof necessary to knock out the foreground elements if the company is very strict on their CI colors. Unfortunately simply inversing the foreground selection would probably not work as this might leave the mixed-color-areas greyish.
    Are the prints gonna be offset or silkscreen?

  • Need big help creating PDF/X-1a compliant document.

    Hi all,
    I have tried this on my own but cannot make it work as I am not so computer savy. I have created all the files to specifications as best I can but when I try and use the preset PDF/X-1a it says violation both artbox and trimbox for every page. Ive tried fixing this manually and by using Preflight but it doesnt work for me. Can someone please help me create a PDF/X-1a complient document? I am desperate as I am trying to do this for a friend who needs my help. Looking for a good savior/Samaratin for help. My email is [email removed by host] Any help at all would be greatly appreciated either in an answer here or an email.
    Thank you in advance

    I create the files in photoshop and saved as PDF with the preset PDF/X-1a_2001 but I cant or at least I dont know how to define the bounding boxes like Trim Box and etc. in photoshop. The problem I am facing is that the pages are supposed to be set as 11.5 x8.75 for printing at 11.0 and 8.5. So I made my files the 11.5 x 8.75 size but now I cant set them to be printed at the right size(if that makes any sense-sorry I am a noob). So I am not sure what to do. I thought saving it as a PDF in photoshop and then fixing it in Acrobat was what I was supposed to do? I tried manually to set the artbox to 0 and set the trimbox to where it needed to be 11.0x8.5 with different parts cut off for the odds and even pages. But still when I try to save as PDF/X-1a it gives me error messages. I have searched the web but cant figure it out. It seems so easy for people to do it but I cant figure it out and I am panicking and need help. Can anyone help me?

  • Help creating batch action, save as tiff

    I'm not *getting* it, and have been trying for a couple hours. Please, what am I missing???
    Steps I've done;
    Created a set called rit sq color balance
    Created an action called color balance
    Created an action called save and close, Saving as TIFF, Close
    Should I not be able to run this sequence of adjusting the color, saving into the destination file as a tiff?
    Each action works separately, but not together.

    You need to add (just drag it like you might a layer) the save step of save and close action into the color balance action, making that action a two-step action (color balance, then save). Then your batch setup will run.
    If you check the "override action save as" (which you've done), you should see the warning below. Since there are no save steps in your color balance action (right now they reside in the save and close action), no files are saved. If you don't see this warning, you might consider resetting all the warning dialogues in the general areas of the prefs.
    This would all be less confusing if you actions weren't named the steps they call...

  • Need tech help creating project with PE11, Windows 7

    I still need help creating a slideshow set to music for DVD playback at my 50th high school reunion. 
    Video Media = 700 still images in .jpg or .tff format.  Pixel sizes range from 200x200 to over 3000x4000.
    I first created this project using PE's presets and original image sizes.  Images added to PE were more blurred than originals & images burned to DVD were even more blurred so I asked for advice.
    Last week several people in the forum tried to help.  I really appreciate everyone's suggestions but would still appreciate further advice. 
    Forum experts said to restart my project with project settings changed to DV 720x480...and to resize my images to 1000x750 pixels.  Then today in a PE11 chat session, I was told something different: use project settings changed to DVD 720p 30 and resize only larger images down to 1280 x 720 (leave smaller images alone). 
    So what project settings and resizing should I use for better image clarity?  How do I change project settings?  By clicking on "new" under "file" >change project settings >DVD 720p 30 or something else?

    Up-rezzing small Still Images, regardless of the program and the Scaling algorithm used, can lead to a diminished quality. As Steve says, pixels are created, where none existed. I try to stay away from up-rezzing, whenever possible, due to that diminished qualtiy.
    If I have to work with very small Images, I often use another workflow, and a different asethetic choice. When faced with the prospect of using small Images, I will create a background of some sort (many options here), and then use that small Image at its original size, "framed" within that background - no Scaling involved, but obviously, that small Image will not fill the screen. The viewer usually has fewer problems with the small Image, than one that is larger, but has started to fall apart, due to the up-rezzing.
    One "trick" that I use is to use that small Image AS the background, but alter it greatly, probably dropping its contrast and upping its brightness, and even adding a Blur to it, then do a PiP (Picture in Picture) of the Image at its original size. I might even create a "picture frame" in Photoshop, to really set that small Image apart from the background. That is but one of dozens of such possible treatments, and one is only limited by their imagination.
    Another possible treatment would be to do a "photo wall" with several of the small Images in say a 3 x 2 matrix of PiP's. Sort of like a Contact Sheet.
    Good luck,
    Hunt

  • In need of help creating a photo to look like...

    Hey guys and gals,
    I'm trying to basically to make an image very similar to this one, only with different people and a different color.  For the life of me, I can't figure out how to create this effect.  If anyone could help me, I would be SO appreciative!
    Thanks to much!!!

    I didn't have any young people to use in an example, so I give you some of 'The Convention Committee' 
    The pictures will have started off as individual portraits, so find and select them all in Bridge, and go Tools > Photoshop > Load into Photoshop layers.
    You then need to select each person and remove the background.  There's a group of tutorials on how to do that here  under 'Selecting parts of an image'. Learn Photoshop CC | Adobe TV
    After making each selection, copy to a new layer so the background has gone.
    Then enlarge the Canvas width so you have room to spread the layers out.
    Select the move tool, make sure Auto Select is off, and set to Layers (as opposed to Group).  Hold down the Ctrl key, and drag each layer into position.  (You will probably have to adjust the layer order so that they overlap in the right order)
    Now select the uppermost layer, and make a copy merged layer. (Shift Alt Ctrl e)
    add a B&W adjustment layer.
    I actually used Topaz Adjust > Portrait smooth to smooth away some detail, but if you have CC, you can do the same thing with the camera RAW filter using negative Clarity.
    add a Curves layer and give it a pronounce S shape to increase contrast.
    add a Hue/Saturation layer.  Check Colorize, and adjust to suite.  I gave mine a bit more saturation than in your example.
    BTW In case anyone wants to set up a Facebook fan page for The Committee, they are Don (ex PSNZ President and adviser), Fred (treasurer), Iain (poster maker), Denise (catering), and Joy (excursions and travel). 

  • Need some help creating a GUI

    I'm creating a program that allows you to order a pizza. It is a border layout with section containing different grid layouts that are contained within there own classes in separate files. My question is that I'd like to produce a running total for the cost of the pizza but I'm having trouble getting the classes to "talk" to each other. How would I go about being able to access a double value that is in one class and use it in another class?

    Thanks for the input. I think I've got that part of the program figured out, now my problem is how to add an action listener to a JComboBox. What I have is a combobox that represents the quantity of pizzas to be ordered. All I need it to do is set the variable Quant equal to the current selection but I'm having a hard time calling the current selection. Here's what I've got so far
    //  QuantityPanel
    //  Sets up the quantity panel
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class QuantityPanel extends JPanel
         public static double sodaPrice = 1.5;
         public static int Quant;
       public QuantityPanel()
          setLayout (new GridLayout(10, 1,0,0));
              JLabel quantity, beverages, space;
              quantity = new JLabel ("Number of Pizzas:");
              beverages = new JLabel ("Beverages:");
              space = new JLabel ();
              int choices[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
              String bev[] = {"Pepsi", "Mt. Dew", "Dr. Pepper", "Sierra Mist", "Root Beer",
                                  "Water"};
              JComboBox numpizzas = new JComboBox();
              JComboBox beverage = new JComboBox();
              for (int i=0;i<choices.length;i++)
                   numpizzas.addItem (choices);
              for (int x=0;x<bev.length;x++)
                   beverage.addItem (bev[x]);
              numpizzas.addActionListener (new ComboListener());
              add (quantity);
              add (numpizzas);
              add (space);
              add (beverages);
              add (beverage);
              private class ComboListener implements ActionListener
                   public void actionPerformed (ActionEvent event)
                        if (current == 1)
                        Quant = 1;
                        else Quant = 1;
                        if (current == 2)
                        Quant = 2;
                        else Quant = 1;
                        if (current == 3)
                        Quant = 3;
                        else Quant = 1;
                        if (current == 4)
                        Quant = 4;
                        else Quant = 1;
                        if (current == 5)
                        Quant = 5;
                        else Quant = 1;
                        if (current == 6)
                        Quant = 6;
                        else Quant = 1;
                        if (current == 6)
                        Quant = 6;
                        else Quant = 1;
                        if (current == 7)
                        Quant = 7;
                        else Quant = 1;
                        if (current == 8)
                        Quant = 8;
                        else Quant = 1;
                        if (current == 9)
                        Quant = 9;
                        else Quant = 1;
                        if (current == 10)
                        Quant = 10;
                        else Quant = 1;

  • In need of help, creating a semi- simple program

    I'm creating a program that is suppose to fit such criteria,
    Read a file of real numbers (doubles), find the smallest and largest, print the numbers read (4 per line), and print the following statistics for the input data:
    · Sum
    · Smallest
    · Largest
    · Average
    I know how to get the file and im using readline to get the information. Below is some of my code where it is as of now.
    BufferedReader bufRead = new BufferedReader(input);
    String line;
    line = bufRead.readLine();
    while (line != null)
         double random = new double(line);
         //Im getting complaints with my while statement also....
         System.out.printf("% 8d\n",randomint.dblValue());
    line = bufRead.readLine();
    bufRead.close();
    catch (ArrayIndexOutOfBoundsException e)
    System.out.println("Usage: java ReadFile filename\n");
                   catch (IOException e)
    e.printStackTrace();
    Any help is greatly appreciated as Im kinda rusty at programing. been a while.

    It's probably a good idea to begin with your own code: compiling and running it at each step to make sure it is correct. If you get stuck post what you have so far (using the "code" tags) and say what the exact compiler message is. And even before writing your own code, figure out what you are going to do - think about how you would solve this problem with pencil and paper. If you had a stream of numbers being given to you, what things would you have to keep track of so that you could report the sum, min max and average at the end?
    That said "new double(line)" makes no sense as double is a primitive. To parse a string (that is, figure out its numeric counterpart) use the Double method [parseDouble()|http://java.sun.com/javase/6/docs/api/java/lang/Double.html#parseDouble(java.lang.String)]. And it makes no sense to close the reader each time you read a line.

  • Need solid help creating a second user account identical to the first user account on one laptop

    Hi,
    I am in the process of setting up a new Windows 8.1 laptop for my parents. Currently, there is just one user admin account on it - my dad's. Coming from Windows XP, this has been an unexpectedly lengthy and complex process.
    So as to avoid having to fine-tune so many settings a second time for my mom, how can I create an exact duplicate (or make a copy) of Dad's account for Mom to use?
    In a nutshell... 
    One laptop: Currently have one admin account named "Dad". Want to duplicate/copy "Dad" EXACTLY and name it "Mom".
    I cannot find a clear cut answer on this even though I have searched for hours and hours. Previously, it seems that many users utilized Microsoft's Easy Transfer to accomplish this feat; however, this is no longer an option for Windows 8.1 users. Also, there
    are a few "guides", but they often contradict each other. 
    Through extensive research, one of my resulting primary concerns is that doing this the wrong way has the potential of essentially destroying all of the hard work that I have put into my dad's account.
    Specifically, I have read that one particular method is not meant to preserve the original account for continued use so much as it is meant to transfer salvageable settings and files from a corrupt account to a new one. However, other "guides" say
    to use that particular method.
    So much mind-boggling confusion! Any solid help and/or solid guides would be greatly appreciated beyond measure!

    russvel88,
    Since you're looking for more information than what you've found already, you may benefit from a higher level overview of Sysprep, which can be found
    here.  You can also find more information on Windows ADK on
    this page.  Please let us know if you have any additional questions.
    Hope this helps!
    Mike
    Windows Outreach Team – IT Pro

  • Need a help about init action in HttpServlet

    I provided a new class MServlet which extends HttpServlet.
    I want to use the Mservlet class for my all servlets. My Mservlet must do some thiggs.
    For example i have a class:
    public class ListNews extends MServlet
    So now i need some things would be done automaticaly. For example
    response.setContentType("text/html;charset=windows-1257"); must be setted
    that i do nor need to write this line in all servlets?
    How i can do it?
    If i am using public void init method in servlet and put there the string
    response.setContentType("text/html;charset=windows-1257");
    This does not work
    Thanks

    Just a minor switch with the previous post...
    Use the MServlet to implement the doGet and doPost methods, make them final so that the subclasses can override them.
    Provide a 'responseSetup' method that sets things that you want.
    Provide your own 'doGetWork and doPostWork methods that the subclass overrides with its own stuff:
    public MServlet extends HttpServlet {
      public final void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
          responseSetup(response);
          doGetWork(request, response);
      public final void doPost(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
          responseSetup(response);
          doPostWork(request, response);
      //Default implementation does the same as HttpServlet.doGet()
      public void doGetWork(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
          super.doGet(request,response);
      //Default implementation does the same as HttpServlet.doPost()
      public void doPostWork(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
          super.doPost(request,response);
      //Do your init stuff here
      private void responseSetup(HttpServletResponse response) {
          response.setContenType("text/html;charset=windows-1257");
    }Then subclasses would use doGetWork and doPostWork like notmal HttpServlet subclasses would use doGet and doPost...

  • Need some Help Creating Widescreen Video???

    Got a simple question (hopefully) from a first time user of Final Cut Express.... I'm trying to make my son's birth video in widescreen format. I must have accidentally changed something on the settings. (b/c I burned a video once before with FCE and it played in widescreen format). For some crazy reason this video will not play in widescreen and I cannot figure out what I've done wrong. I hate to start the project over, b/c I've spent so much time on it already.
    Hoping it's simple......Can anyone help me?
    Thank you!

    We shot in widescreen format. Our new video recorder that we used is Canon HD 1920x 1080 Recording.
    The item properties of the Sequence I edited are: Creator- QuickTime Player, Source- Macintosh HD, Size- 1.1 GB, Vid Rate- 29.97 fps, Frame Size- 720x 480, Compressor - H.264, Data Rate- 620.1 K/sec, Pixel Aspect - NTSC - CCIR 601, Field Dominance - Lower (Even), Alpha - None/Ignore, Composite- Normal.
    Not sure how to find the item properties of the slip I captured.... working on that right now

  • Help creating an action

    I have a number of images that I want to use an action on but one of the last action steps is save for web.  I don't want to overwrite a file but I'd like the action to pause at that point asking me for the name of the file and then continue on.  I can't figure out a way to do this.  Is this possible?  Thanks.

    Tick the box to the left of the comamnd in the list of the action ommands
    Colin

  • Creating an Action and then Batch Process

    Need some help creating an action and then batch processing a file using that action. I was able to do it in previous versions of PS (wish I had kept the action!). For some reason its not working. Keeps creating the same file over and over again. Here goes:
    Action:
    Open up a PDF (separate PDFs of a PowerPoint Pres, may contain 80-100 pages); convert to grayscale; reduce to 43.2%; save as a TIF and close file.
    Batch:
    Use this action on all files.
    When I create the action it just recognizes the first file that I use as a sample and saves over the result over and over again.
    Thanks in advance.
    Tom

    You probably recorded a save as command in it and changed the name of the file. This change is also recorded and after playing the action it just overwrites the same filename over and over again.
    Always leave the filename untouched when recording actions.

  • Need help creating arraylist

    I am trying to help a friend in school with a project and we need some help...
    We need to write a program to estimate how much paint is needed to paint a house. Assuming we know the square feet that a gallon of paint covers, number of coats required, and the dimensions of the wall, window, door, or gable.
    We are using a GUI to enter the data for the different regions.
    We have the GUI created and the hierchy competed. I need some help creating the arraylist to run the program.
    The user will enter a new region by selecting:
    surface type
    width
    height
    then you will be able to add or insert to include this region in the list.
    You will also be able modify, delete, or navigate to existing regions in the list by selecting the appropriate navigigation buttons below:
    ( |< or < or > or >| )
    Classes include:
    PaintEstimatorView
    PainEstimator Model
    Regions:
    Wall
    Door
    Gable
    Window
    And the Approriate Listners
    Each region will have its own height and width which are set when the region is created
    Each region will compute and return its area and the walls and gables will contribute to the surface; windows and doors will reduce the surface.
    each region will calculate its area.
    We need to include a View and Model
    The view will manage the interface and the model will provide the necessary processing.
    responsibilities of the view:
    Instantiate and arrange the windowobjects
    instantiate and initialize the model
    handle user generated events such as button clicks and menu selections by sending message to the model
    represent the model to the user.
    Model:
    Define and manage the applications data(coordinating the activities of several programmer defined classes)
    respond to messages from the view
    We have the GUI completed I just need some help getting the arraylist started to run the program.
    We will need to keep a count and index of all the regions created by the user and you need to be able to shuffle throught them if you need to delete or modify them. You also need to insert windows and doors which will subtract from the total surface area but you have to go back to which ever wall or gable and create the window or door before or after that region.
    If anybody could help it would be greatly appreciated.
    Thanks in adavnce
    Rus

    Sorry, I forgot to add my code last night.
    This is what we have so far.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    public class TestSwingCommonFeatures extends JFrame {
    private JRadioButton wall, window, gable, door;
    private JButton computegal;
    public TestSwingCommonFeatures() {
    // Create a panel to group three buttons
    JPanel p1 = new JPanel(new GridLayout(2, 2, 5, 5));
    JTextField sqftpergal = new JTextField(8);
         JTextField coats = new JTextField(8);
         JTextField gallonsneeded = new JTextField(8);
         gallonsneeded.setEditable(false);
         p1.add(new JLabel("SQ ft / gallon"));
    p1.add(sqftpergal);
    p1.add(new JLabel("Number of gallons:"));
    p1.add(coats);
    p1.add(new JLabel("Gallons needed:"));
    p1.add(gallonsneeded);
         p1.add(computegal = new JButton("Compute gallons needed"));
         //computegal;
    p1.setBorder(new TitledBorder("Select gallons & coats"));
    // Create a font and a line border
    Font largeFont = new Font("TimesRoman", Font.BOLD, 20);
    Border lineBorder = new LineBorder(Color.BLACK, 2);
    // Create a panel to group two labels
    // panel 2
         JPanel p2 = new JPanel(new GridLayout(4, 2, 5, 5));
    p2.add(wall = new JRadioButton("wall"));
    p2.add(gable = new JRadioButton("gable"));
         p2.add(new JButton("ADD"));
              p2.add(window = new JRadioButton("window"));
              p2.add(door = new JRadioButton("door"));
                   p2.add(new JButton("Remove"));
    p2.add(new JLabel("Width"));
    p2.add(new JTextField(12));
         p2.add(new JButton("Insert"));
         p2.add(new JLabel("Height"));
    p2.add(new JTextField(12));
         p2.add(new JButton("Delete"));
    p2.setBorder(new TitledBorder("Controls"));
    ButtonGroup radiogroup = new ButtonGroup();
    radiogroup.add(wall);
    radiogroup.add(gable);
         radiogroup.add(window);
         radiogroup.add(door);
    //panel 3     
         JPanel p3 = new JPanel(new GridLayout(2, 1, 5, 5));
    p3.setBorder(new TitledBorder("Section Selection"));
         p3.add(new JButton("<|"));
              p3.add(new JButton("<"));
                   p3.add(new JButton(">"));
                        p3.add(new JButton("|>"));
    p3.add(new JLabel("Count"));
    p3.add(new JTextField(4));
         p3.add(new JLabel("Index"));
    p3.add(new JTextField(4));
    // Add two panels to the frame
    setLayout(new GridLayout(3, 1, 5, 5));
    add(p1);
    add(p2);
         add(p3);
    public static void main(String[] args) {
    // Create a frame and set its properties
    JFrame frame = new TestSwingCommonFeatures();
    frame.setTitle("TestSwingCommonFeatures");
    frame.setSize(600, 400);
    frame.setLocationRelativeTo(null); // Center the frame
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    private class UpdateListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Update button was clicked");
    private class NavListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Nav button was clicked");
    // Create a list to store data
    java.util.ArrayList paintList = new java.util.ArrayList();
    This is the GUI for the project that we have come up with. I have to write the arraylist for inside the model.
    I have tried a couple different things but have been unsuccessful getting it to work. All I am looking for is a start of the arraylist I will try to figure out the rest myself.
    Thanks

Maybe you are looking for

  • Why does my iPhone 4S no longer appear as a camera under windows XP

    I have an iPhone 4S for about 6 months. I have taken many pictures and previously when I connected it to my PC runnng Windows XP pro, the iTunes application started and the "camera wizard" also started. With the camera wizard I could download any or

  • Error creating avi file

    I use Flash Cs4 and all of a sudden when I try to export to avi I get "error creating avi file." Any ideas why or how to fix this? I can still export to quicktime. thanks

  • Attach_file_to_response kills iframe content

    Hello, I have a WDA application using an iframe. I fill the iframe by using an object of if_http_response and add this object to the server cache: cl_http_server=>server_cache_upload. This works perfectly fine. I added a button in order to save the c

  • Adding new field in Billing due list in CRM

    Hi What are ways to add new fields to billing due list in CRM. Can we use any badi Is there any configuration of layout. Any other way Thanks in advance for your help Amit

  • Position Hierarchy - Employee Supervisor Change

    Hello, We have few of our Operating Units setup with Position Hierarchy Approval method for Purchasing documents. We want to change this to Employee-Supervisor Relationship due to change in some of the global policies. Would like to know what are the