Need help on with simple email program

i have been set a task to create a simple email program that has the variables of the sender the recipient the subject the content and a date object representing when the email was sent (this is just to be set to the current system date)
It also needs to include a constructor with four String arguments, i.e the sender, receiver, subject and content. The constructor has to initialise the date of the email then transfer the values of the input parameters to the relevant attributes. If any values of the strings aren'nt given, the string �Unknown� should be set as the value.
I was given a java file to test the one i am to create, but some of the values are not given, if anyone could be of anyhelp or just point me in the right direction then i would be very greatfull, ive posted the code for the test file i have been given below, thanks.
public class SimpleEmailTest {
     public static void main( String[] args ) {
          SimpleEmail email;     // email object to test.
          String whoFrom;          // sender
          String whoTo;          // recipient
          String subject;          // subject matter
          String content;          // text content of email
          static final String notKnown = "Unknown";
          email = new SimpleEmail
(notKnown, notKnown, notKnown, notKnown);
          System.out.println( "SimpleEmail: " +
"\n    From: " + email.getSender() +
"\n      To: " + email.getRecipient() +
"\n Subject: " + email.getSubject() +
"\n    Date: " + 
email.getDate().toString() +
"\n Message: \n" + email.getContent() + "\n";
          email.setSender( "Jimmy Testsender");
          email.setRecipient( "Sheena Receiver");
          email.setSubject( "How are you today?");
          email.setContent( "I just wrote an email class!");
          System.out.println( "SimpleEmail: " +
"\n    From: " + email.getSender() +
"\n      To: " + email.getRecipient() +
"\n Subject: " + email.getSubject() +
"\n    Date: " + 
email.getDate().toString() +
"\n Message: \n" + email.getContent() + "\n";
     }

Start by writing a class named SimpleEmail, implement a constructor with four arguments in it, and the methods that the test code calls, such as the get...() and set...() methods. The class probably needs four member variables too.
public class SimpleEmail {
    // ... add member variables here
    // constructor
    public SimpleEmail(String whoFrom, String whoTo, String subject, String content) {
        // ... add code to the constructor here
    // ... add get...() and set...() methods here
}

Similar Messages

  • I need help some with simple ejb3 app - urgent

    I�m trying to write a small app using ejb3 and I have a big problem.
    1. I created a Session bean in ejb module
    package beans;
    import javax.ejb.*;
    @Stateless()
    public class testBean implements beans.testLocal {
        public String test(String name)
            return "hello "+name;
    package beans;
    public interface testLocal {
         String test(String name);  
    }2. In web module I created a servlet and as in the 'Ejb3 Persistence in netbeans tutorial" and then I called my session bean (http://www.netbeans.org/kb/55/ejb3-preview.html#Exercise_2)
    protected void processRequest(...)
      ...out.println("<body>");
         out.println(aTestBean.test("a Test"));   //bean method call
         out.println("</body>");
         out.println("</html>");        
         out.close();
        @EJB
        beans.testBean aTestBean;   //reference to the session beanI compiled and deployed it.
    And after I invoked the servlet I got that message :
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet test threw exception
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    root cause
    java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
         com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:205)
         com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:90)
         org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:250)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    I also tried to do it like in the flash ejb3 presentation but I got the same result (http://j2ee.netbeans.org/NetBeans_EJB3.html)
        beans.testBean aTestBean;   //reference to the session bean
       @javax.ejb.EJB
        private void setTestBean(beans.testBean aTestBean)
            this.aTestBean = aTestBean;
        }How can I call methods from session beans.
    I'd like to do something like this.
    1.Create an EntityBean for my database.
    2 Create a session bean to manage those EntityBeans � like in the tutorial
    3.Create a web module and a servlet with method calls from that session bean
    4. Create a MIDP 2.0 app using "Mobile client to web app' wizard from the mobility pack, to generate stubs for servlet methods.
    All I need to create one simple method
    public String getDataFromDB(int ID)
    //and here the call to the session bean
    return sesionbeanReference.getData(ID);
    help me

    Hi
    I am Facing th same Problem ,But the solution you have give
    that use Local Interface intead of Bean
    In my case I am using Remote Interface and not the local its giving me the same problems as the Query Posted
    javax.servlet.ServletException: Servlet.init() for servlet NewServlet threw exception
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    root cause
    java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
         com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:205)
         com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:90)
         org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:250)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    note The full stack trace of the root cause is available in the Sun Java System Application Server Platform Edition 9.0 Beta logs.
    My EJB Refernce to rmote interface looks like this
    @EJB ProcessAdvertisementRemote oProcessAdvertisementRemote;
    I am caaling a method on that inferface ,so its giving these exceptions
    Can u plz help me out
    Geetanjalee

  • Pls i need help for this simple problem. i appreciate if somebody would share thier ideas..

    pls i need help for this simple problem of my palm os zire 72. pls share your ideas with me.... i tried to connect my palm os zire72 in my  desktop computer using my usb cable but i can't see it in my computer.. my palm has no problem and it works well. the only problem is that, my  desktop computer can't find my palm when i tried to connect it using usb cable. is thier any certain driver or installer needed for it so that i can view my files in my palm using the computer. where i can download its driver? is there somebody can help me for this problem? just email me pls at [email protected] i really accept any suggestions for this problem. thanks for your help...

    If you are using Windows Vista go to All Programs/Palm and click on the folder and select Hot Sync Manager and then try to sync with the USB cable. If you are using the Windows XP go to Start/Programs/Palm/Hot Sync Manager and then try to sync. If you don’t have the palm folder at all on your PC you have to install it. Here is the link http://kb.palm.com/wps/portal/kb/common/article/33219_en.html that version 4.2.1 will be working for your device Zire 72.

  • Need help in my assignment, Java programing?

    Need help in my assignment, Java programing?
    It is said that there is only one natural number n such that n-1 is a square and
    n + 1 is a cube, that is, n - 1 = x2 and n + 1 = y3 for some natural numbers x and y. Please implement a program in Java.
    plz help!!
    and this is my code
    but I don't no how to finsh it with the right condition!
    plz heelp!!
    and I don't know if it right or wrong!
    PLZ help me!!
    import javax.swing.JOptionPane;
    public class eiman {
    public static void main( String [] args){
    String a,b;
    double n,x,y,z;
    boolean q= true;
    boolean w= false;
    a=JOptionPane.showInputDialog("Please enter a number for n");
    n=Double.parseDouble(a);
    System.out.println(n);
    x=Math.sqrt(n-1);
    y=Math.cbrt(n+1);
    }

    OK I'll bite.
    I assume that this is some kind of assignment.
    What is the program supposed to do?
    1. Figure out the value of N
    2. Given an N determine if it is the correct value
    I would expect #1, but then again this seem to be a strange programming assignment to me.
    // additions followI see by the simulpostings that it is indeed #1.
    So I will give the tried and true advice at the risk of copyright infringement.
    get out a paper and pencil and think about how you would figure this out by hand.
    The structure of a program will emerge from the mists.
    Now that I think about it that advice must be in public domain by now.
    Edited by: johndjr on Oct 14, 2008 3:31 PM
    added additional info

  • Can anyone help me with changing email address for resetting password notification

    Can anyone help me with changing email address for resetting password notification?

    If you know the answers to your security questions, you can change your rescue email address as shown in step 6 in this article: http://support.apple.com/kb/HT5312.
    If you don't kow the answers to your security questions or need other assistance doing this, either contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password, or contact the Apple account security team: http://support.apple.com/kb/HT5699.

  • Acrobat can not connect with the email program, what can I do?

    Acrobat can not connect with the email program, what can I do?

    Hello,
    I'm sorry you're having trouble; unfortunately, I'm not sure I understand what's going wrong. Would you mind giving me more details about what you're trying to do and what the problem appears to be?
    Just in case you're using the desktop version of Acrobat and not Acrobat.com (which is the forum to which you posted your question), here's a link to their forum so you can repost your question there:
    http://forums.adobe.com/community/acrobat
    Thank you!

  • Need Help with Simple Chat Program

    Hello Guys,
    I'm fairly new to Java and I have a quick question regarding a simple chat program in java. My problem is that I have a simple chat program that runs from its own JFrame etc. Most of you are probably familiar with the code below, i got it from one of my java books. In any case, what I'm attempting to do is integrate this chat pane into a gui that i have created. I attempted to call an instace of the Client class from my gui program so that I can use the textfield and textarea contained in my app, but it will not allow me to do it. Would I need to integrate this code into the code for my Gui class. I have a simple program that contains chat and a game. The code for the Client is listed below.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.swing.*;
    public class Client
    extends JPanel {
    public static void main(String[] args) throws IOException {
    String name = args[0];
    String host = args[1];
    int port = Integer.parseInt(args[2]);
    final Socket s = new Socket(host, port);
    final Client c = new Client(name, s);
    JFrame f = new JFrame("Client : " + name);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    c.shutDown();
    System.exit(0);
    f.setSize(300, 300);
    f.setLocation(100, 100);
    f.setContentPane(c);
    f.setVisible(true);
    private String mName;
    private JTextArea mOutputArea;
    private JTextField mInputField;
    private PrintWriter mOut;
    public Client(final String name, Socket s)
    throws IOException {
    mName = name;
    createUI();
    wireNetwork(s);
    wireEvents();
    public void shutDown() {
    mOut.println("");
    mOut.close();
    protected void createUI() {
    setLayout(new BorderLayout());
    mOutputArea = new JTextArea();
    mOutputArea.setLineWrap(true);
    mOutputArea.setEditable(false);
    add(new JScrollPane(mOutputArea), BorderLayout.CENTER);
    mInputField = new JTextField(20);
    JPanel controls = new JPanel();
    controls.add(mInputField);
    add(controls, BorderLayout.SOUTH);
    mInputField.requestFocus();
    protected void wireNetwork(Socket s) throws IOException {
    mOut = new PrintWriter(s.getOutputStream(), true);
    final String eol = System.getProperty("line.separator");
    new Listener(s.getInputStream()) {
    public void processLine(String line) {
    mOutputArea.append(line + eol);
    mOutputArea.setCaretPosition(
    mOutputArea.getDocument().getLength());
    protected void wireEvents() {
    mInputField.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    String line = mInputField.getText();
    if (line.length() == 0) return;
    mOut.println(mName + " : " + line);
    mInputField.setText("");

    Thanks for ur help!i have moved BufferedReader outside the loop. I dont think i am getting exception as i can c the output once.What i am trying to do is repeat the process which i m getting once.What my method does is first one sends the packet to multicasting group (UDP) and other method receives the packets and prints.

  • Need Help with simple array program!

    Hi, I have just recently started how to use arrays[] in Java and I'm a bit confused and need help designing a program.
    What this program does, it reads in a range of letters specified by the user. The user then enters the letters (a, b or c) and stores these characters into an array, which the array's length is equal to the input range the user would enter at the start of the program. The program is then meant to find how many times (a,b and c) appears in the array and the Index it first appears at, then prints these results.
    Here is my Code for the program, hopefully this would make sense of what my program is suppose to do.
    import B102.*;
    class Letters
         static int GetSize()
              int size = 0;
              boolean err = true;
              while(err == true)
                   Screen.out.println("How Many Letters would you like to read in?");
                   size = Keybd.in.readInt();
                   err = Keybd.in.fail();
                   Keybd.in.clearError();
                   if(size <= 0)
                        err = true;
                        Screen.out.println("Invalid Input");
              return(size);
         static char[] ReadInput(int size)
              char input;
              char[] letter = new char[size];
              for(int start = 1; start <= size; start++)
                   System.out.println("Please enter a letter (a, b or c) ("+size+" max), enter # to stop:");
                   input = Keybd.in.readChar();
                   while((input != 'a') && (input != 'b') && (input != 'c') && (input != '#'))
                        Screen.out.println("Invalid Input");
                        System.out.println("Please enter a letter (a, b or c) ("+size+" max, enter # to stop:");
                        input = Keybd.in.readChar();
                                    while(input == '#')
                                                 start == size;
                                                 break;
                   for(int i = 0; i < letter.length; i++)
                        letter[i] = input;
              return(letter);
         static int CountA(char[] letter)
              int acount = 0;
              for(int i = 0; i < letter.length; i++)
                   if(letter[i] == 'a')
                        acount++;
              return(acount);
         static int CountB(char[] letter)
              int bcount = 0;
              for(int i = 0; i < letter.length; i++)
                   if(letter[i] == 'b')
                        bcount++;
              return(bcount);
         static int CountC(char[] letter)
              int ccount = 0;
              for(int i = 0; i < letter.length; i++)
                   if(letter[i] == 'c')
                        ccount++;
              return(ccount);
         static int SearchA(char[] letter)
              int ia;
              for(ia = 0; ia < letter.length; ia++)
                   if(letter[ia] == 'a')
                        return(ia);
              return(ia);
         static int SearchB(char[] letter)
              int ib;
              for(ib = 0; ib < letter.length; ib++)
                   if(letter[ib] == 'b')
                        return(ib);
              return(ib);
         static int SearchC(char[] letter)
              int ic;
              for(ic = 0; ic < letter.length; ic++)
                   if(letter[ic] == 'c')
                        return(ic);
              return(ic);
         static void PrintResult(char[] letter, int acount, int bcount, int ccount, int ia, int ib, int ic)
              if(ia <= 1)
                   System.out.println("There are "+acount+" a's found, first appearing at index "+ia);
              else
                   System.out.println("There are no a's found");
              if(ib <= 1)
                   System.out.println("There are "+bcount+" b's found, first appearing at index "+ib);
              else
                   System.out.println("There are no b's found");
              if(ic <= 1)
                   System.out.println("There are "+ccount+" c's found, first appearing at index "+ic);
              else
                   System.out.println("There are no c's found");
              return;
         public static void main(String args[])
              int size;
              char[] letter;
              int acount;
              int bcount;
              int ccount;
              int ia;
              int ib;
              int ic;
              size = GetSize();
              letter = ReadInput(size);
              acount = CountA(letter);
              bcount = CountB(letter);
              ccount = CountC(letter);
              ia = SearchA(letter);
              ib = SearchB(letter);
              ic = SearchC(letter);
              PrintResult(letter, acount, bcount, ccount, ia, ib, ic);
              return;
    }     Some errors i get with my program are:
    When reading in the letters to store into the array, I get the last letter I entered placed into the entire array. Also I believe my code to find the Index is incorrect.
    Example Testing: How many letters would you like to read? 3
    Enter letter (a, b or c) (# to quit): a
    Enter letter (a, b or c) (# to quit): b
    Enter letter (a, b or c) (# to quit): c
    It prints "There are no a's'" (there should be 1 a at index 0)
    "There are no b's" (there should be 1 b at index 1)
    and "There are 3 c's, first appearing at index 0" ( there should be 1 c at index 2)
    The last thing is that my code for when the user enters "#" that the input of letters would stop and the program would then continue over to the counting and searching part for the letters, my I believe is correct but I get the same problem as stated above where the program takes the character "#" and stores it into the entire array.
    Example Testing:How many letters would you like to read? 3
    Enter letter (a, b or c) (# to quit): a
    Enter letter (a, b or c) (# to quit): #
    It prints "There are no a's'" (should have been 1 a at index 0)
    "There are no b's"
    and "There are no c's"
    Can someone please help me??? or does anyone have a program simular to this they have done and would'nt mind showing me how it works?
    Thanks
    lou87.

    Without thinking too much...something like this
    for(int start = 0; start < size; start++) {
                System.out.println("Please enter a letter (a, b or c) ("+size+" max), enter # to stop:");
                input = Keybd.in.readChar();
                while((input != 'a') && (input != 'b') && (input != 'c') && (input != '#')) {
                    Screen.out.println("Invalid Input");
                    System.out.println("Please enter a letter (a, b or c) ("+size+" max, enter # to stop:");
                    input = Keybd.in.readChar();
                if(input == '#') {
                        break;
                letter[start] = input;
            }you dont even need to do start = size; coz with the break you go out of the for loop.

  • Please help me with simple program

    Can someone please write a simple program for me that opens up a webpage in the center of the screen , with a set size, and then asks the user where they would like to click on the screen. Then once the person clicks it asks how many times they would like to click there, and then once they enter the # the program opens up the webpage (in the center at the same spot as before, with the same set size) and automatically clicks on the predesignated spot , and then closes all open internet windows, and keeps doing it for however many times the person chose. PLEASE HELP ME WITH THIS!!! If you could, please post the source code here. Thank you so much to whoever helps me!!!!!!!

    If it's not to learn, then what is the purpose of
    this project?well, if it's not HW and its not for learning java, then why the hell would anyone like to have a program that may open a webpage and then repeatedly click on predefined place...
    let me see...
    now if he had asked for program that fakes IP as well, then i would suggest that he tryes to generate unique clicks, but now... i'm not sure... maybe just voting in some polls or smthing... though, i would not create a program that clicks on the link or form element, but rather just reload url with given parameters for N times...

  • Need urgent help in a simple java program that adds up even numbers and..

    The task is to write a program that allows the user to enter 8 integers and then displays the sum of the odd integers and the product of the even integers
    what i did so far is
    public class Computation
    private int n;
    private int even;
    private int odd;
    public Computation()
    even =0;
    odd = 1;
    public Computation(int num1, int num2, int num3,int num4,int num5,int num6,int num7, int num8)
    n = num1;
    n = num2;
    n = num3;
    n = num4;
    n = num5;
    n = num6;
    n = num7;
    n = num8;
    for(int i=0; i<=n; i++)
    if(n%2 == 0)
    even += n;
    else
    odd *=n;
    public int getEven(int n)
    return even;
    public int getOdd()
    return odd;
    import java.util.*;
    public class Tester
    public static void main(String [] args)
    System.out.println("Enter any three words");
    Scanner input = new Scanner(System.in);
    int num1 = input.nextInt();
    int num2 = input.nextInt();
    int num3 = input.nextInt();
    int num4 = input.nextInt();
    int num5 = input.nextInt();
    int num6 = input.nextInt();
    int num7 = input.nextInt();
    int num8 = input.nextInt();
    Computation compute = new Computation(num1, num2, num3, num4, num5, num6, num7, num8);
    System.out.println("The Summation of the even numbers is: " + compute.getEven( ) + "\n" +"The product of the odd numbers is: " + compute.getOdd());
    }The result i get is always zero.. however, i think the problem lies in the first class when i constructed the numbers and sat them all to one object "n",
    i need help in fixing this bug,,
    thanks

    7uSamx wrote:
    Can you illustrate by a small example please ?Any small example would already contain pretty much the entire code.
    You know how to declare a method, right? You have several in your code, so I assume you do.
    You already know how to check if a given variable is even or odd. You already showed that code, so I assume you do.
    Now put those two together and you'll have a method that decides if the value passed to it is even or odd.
    Now put the desired action in each of the branches of the if-statement and you're almost done.
    Now call the method with each method from your constructor and you're done.

  • Need help setting up file for program Ai CS5 Mac

    Hello everyone, I am hoping you can help me with something. I am having a 20 page conference program printed through a 3rd party company.The printer sent me back the proof today and on almost every page my artwork is being chopped off.
    This is the email sent with the proof today:
    "               I want you to look at these spreads and tell me if this is how you       visualized your finished pages? A lot of your art is being cut off. The finished size is 11x17.       You sent pages that were 9x12, so I used them at 100% on the 12x18       press sheet. You only need to provide a 1/8" bleed, not a 1/2". You also have       bleeds on the centers of the spreads. Those should not have a bleed. Only the outside 3 edges should       bleed.
    I had trouble getting all of the art to line up."
    Printer Info:
    They print on 12/18 trimmed down to 11 x 17 (for full bleed)
    Requested bleed: 1/8
    They print out of Quark
    I was told I can send them individual PDFs and they will paginate them (in order and add page numbers)
    I created a file in Ai CS5 with 20 artboards (one for each page of the program) Now, the trim marks should be placed at 1 inch because they are trimming 1 inch from the top and 1 inch from the bottom. The bleed should be 1/8 so 0.125 on the 3 "outside" edges. Is this correct?
    I primarily do lay-outs, the person responsible for this project bailed last minute so I am a bit stuck. If I am designing it as individual pages what are the exactly dimensions, bleed, and trim marks needed for each page to be set up correctly for the printer to paginate. Should I also add a .5 margin along the edges as a safe zone or is that not necessary because of the bleed?
    Let me know if I didn't provide enough information. I appreciate any help I can get. Thanks in advance!
    -d

    It is often just simpler to build your pages (or spreads) to the actual size of the press sheet.
    I'll assume this is a saddle-stitched booklet.
    The press sheets will be 12 x 18 inches.
    It will be printed, then, as 11 x 17 printer spreads.
    That means it will have a half inch (not a whole inch) between the trims and the press sheet edges on all four sides.
    There will be three-eights inch between the bleed and the edges.
    (This is crowding things a tad; typically one tries to allow at least a half-inch gripper margin.)
    Anyway....
    1. Setup the document with twenty 9x12 vertical Artboards, with zero spacing, in two columns. Zero Bleed.
    (Often, depending on the nature of the content, I would choose to build such a thing as ten 12 x 18 Artboards, with content already arranged as printing spreads, thus eliminating the need for stripping. But in the following, you'll go ahead and make 20 separate Artboards, abutted in pairs, and treat these as two-page reader spreads, to make layout easy, and to accommodate artwork that may jump the gutter.)
    2. Turn on Show Grid. Turn on Snap To Grid.
    Rectangle Tool: Click the page. In the dialog, specify a 17 x 11 rectangle. This corresponds to your trim.
    Rectangle Tool: Click the page. In the dialog, specify a 17.25 x 11.25 rectangle. This corresponds to your bleed.
    Center align the two rectangles to each other, both horizontally and vertically.
    3. Zoom in. White Pointer: Snap the upper left corner of the rectangles to the grid at .375 H and .375 V of the top left Artboard.
    4. Convert the two rectangles to Guides. (View>Guides>Make)
    5. Line Tool: Snapping to the grid, draw your own trim marks at each corner, outboard of the trim. Use .25 pt. stroke weight. Registration color.
    6. Unlock Guides. (turn off View>Guides>Lock)
    7. Black Pointer: Marquee select around all the trim marks and the two rectangluar Guides.
    DoubleClick the Black Pointer. In the resulting Move dialog, enter a vertical movement of 12" and click copy.
    Transform Again (Ctrl D) 8 times.
    Now you have a set of trim guides, bleed guides, and trim marks on all 10 two-page reader spreads.
    8. Create the content as if the pairs of Artboards are facing pages of reader spreads. The top pair are the front and back. The other pairs are sequentially-numbered reading speads. Set up this way, your artwork can jump the gutter when desired.  You can put other printer's marks (sep names, etc.) in the bleed area if needed.
    9. Save A Copy to PDF with Use Artboards checked. The resulting PDF will contain 9x12 vertical pages. Viewed as spreads in Acrobat, you can see that the pages align.
    10. But when they are printed, they will be stripped into two-page printing spreads, ordered like so:
    JET

  • Need help making a simple script for my webcam

    Hey everyone, fairly new to applescript programming. I just bought a usb camera for my macbook because I use it for video conferencing/playing around, and it is better quality than the built in isight. However, in order to use this camera I need to use drivers from a program called camTwist. This being said camTwist needs to be opened first and the usb camera must be selected from camTwist Step 1 list in order for any other application to use the camera. I just want to make a simple program that would open camTwist first, then select "webcam" from the list (double click it like I always have to in order to select it) in order to activate the driver, and then open photo booth which would then be using the camTwist driver in order to take pictures.
    I made a crude program but it does not automatically select "webcam" from the Step 1 list in camTwist:
    tell application "CamTwist" to activate
    delay 10
    tell application "Photo Booth" to activate
    that’s basically it. I set the delay to 10 seconds so that when camTwists boots up first I can manually select my webcam. HOWEVER, I would like to make a script that would boot up CamTwist first, select my webcam from the list automatically, and then open Photo Booth with the CamTwist webcam driver already selected.
    Don't know much about applescript so any help to make a working script to solve my problem would be greatly appreciated! Thanks!

    Solved my problem but now I need help with something else! First I used CamTwist user options to create user defined hot keys with the specific purpose to load the webcam. I chose Command+B. I tested it out in CamTwist and it worked. The program follows a logical order from there. First it loads CamTwist, then after a short delay it presses the hot keys in order to load the webcam from the video source list, then another short delay and Photo Booth is opened with the driver loaded from camTwist. Everything works Perfect! Here's the code:
    tell application "System Events"
    tell application "CamTwist" to activate
    delay 0.5
    --Press command+b which is a user defined hot key to load webcam
    key code 11 using command down
    end tell
    delay 0.5
    tell application "Photo Booth" to activate
    My Next question is, would it be possible with this same script to have both applications quit together. For example I always quit Photo Booth first, so when I quit photo booth is there a way to make CamTwist also quit and keep everything within the same script? Please let me know. This forum has been very helpful and lead me to a solution to my problem! Hoping I can solve this next problem as well! Thanks everyone.

  • Looking for help-DVD with web/email links

    Hall writes...
    "snip...DVD@ccess is actually quite limited and not entirely compatible with the range of DVD playback software/hardware available on a PC... you might be better off using eDVD from Sonic (which is PC software, making use of the Interactual Player, rather than @ccess)."
    I've no experience with Sonic yet but there is a small project in Chicago that needs help immediately. I'm looking for leads to pass on.
    [email protected]
    Thanks

    Well, there's the rub.
    If you use DVD@ccess then pretty much every Mac will run the software easily enough, but you have to install it on a PC and even then it doesn't work as it should in a lot of cases.
    If you use eDVD then PCs will almost certainly already have the player installed (since it is a far more ubiquitous piece of software than @ccess, and is used by a high number of commercial discs already in circulation), but you'll need to install the Interactual player on the Mac...
    There are probably going to be far less Mac users than PC users - which might indicate that you go for eDVD and a more PC friendly solution.
    But don't be fooled - eDVD is not the saviour that we all hope it will be. There are still issues on some PCs with it, and as you have already found, some issues on a Mac as well. The thing to consider is whether the eDVD solution gives more compatibility overall with your target users than DVD@ccess will.
    You could opt for a more simple solution and just place the documents that you want included into a ROM folder on the disc, then use a menu to explain what's there and how to get to it.
    The strong advantage here is that you'd have to create that menu anyway for those who view the disc in a set top player, and you are also not trying to post edit your files (as eDVD requires) or use software that simply isn't good enough on PCs (as @ccess seems to be).
    It may be a less elegant and less gimmicky option, but I'll bet hardly any of your users will know the difference anyway...

  • Need help in creating a java program

    Hi everyone.
    I'd like to say before i start about my problem, that i've only begun learning java and my teacher hasn't explained anything at all. He only showed us by doing it himself and then showing us the final version. I've searched a little on how to program but i get little success in finding a good tutorial.
    I need help creating a program which has been assigned to me due in a few days in which i can't contact my teacher for help.
    I need to write a java program which inputs 3 items. The number of kilometres you drove, the number of litres of gas you used and the price you paid for the gas. Then, the program must calculate the number of litres used per 100km driven, which is litres divided by kilometres times 100, how much it costs to drive 100km, which is the result (a) times the price per litre and the number of miles per American gallon of gas ( one American gallon = 3.785 litres, and one mile = 1.609 km.
    The program has to output my name, the inputs given, the results computed and a message saying "Program Complete".
    To give you what i've done to begin with, from what i understood, is:
    import javax.swing.JOptionPane;
    public class prog1
         public static void main(String args[])
              final double americanGallon = 3.785;
              final double mile = 1.609;
              kilometresDriven,
              gasUsed;
              priceOfLiterGas;
              System.out.println("My Name");
              System.out.println("Number of kilometres driven:");
              kilometresDriven = JOptionPane.showInputDialog ("Kilometres Driven");
              System.out.println("Number of Litres of gas used:");
              gasUsed = JOptionPane.showInputDialog ("Litres of gas used");
              System.out.println("Price of a liter of gas:");
              priceOfLiterGas = JoptionPane.showInputDialog("Price per liter");
    Up to now, that's all i've got. i know i'm wrong, but i'm not sure how to do this. Could someone give me an outline of what this program is suppose to look like?
    Thanks in advance.

    Here's an update on my program. I've worked on certain details and would need your comments whether it contains errors. I'd also want to know if it would work or not because i don't know how to check it on my computer.
    Here's the update:
    import javax.swing.JOptionPane;
    public class Prog1
    public static void main(String args[])
    String name;
    double kmDriven;
    double litresUsed;
    double pricePaidForGas;
    double priceOfALiter;
    name = JOptionPane.showInputDialog("Name");
    input = JOptionPane.showInputDialog("Number of km driven");
    kmDriven = Double.parseDouble (input);
    input = JOptionPane.showInputDialog("Number of litres of gas used");
    litresUsed = Double.parseDouble (input);
    input = JOptionPane.showInputDialog("Price paid for gas");
    pricePaidForGas = Double.parseDouble (input);
    input = JOptionPane.showInputDialog("Price of a litre of gas");
    priceOfALiter = Double.parseDouble (input);
    a = (litresUsed/kmDriven)*100;
    b = ((litresUsed/kmDriven)*100)*priceOfALiter);
    c = (kmDriven/1.609)
    System.out.println("Name:" + name);
    System.out.println("Number of litres used per 100km:" + a);
    System.out.println("Cost of driving 100km" + b);
    System.out.println("Number of miles per American Gallon of Gas:" + c);
    System.out.println("Program Complete");
    System.exit(0);
    Comments please.
    Thanks in advance

  • I need help finding a workable web program that is not CSS based.  I tried IWeb and it just won't work for me.  Way too limiting.  I've been using a 12 year old copy of Macromedia Dreamweaver, but the new Dreamweaver is CSS

    Been building web pages for nearly 20 years, starting with GoLive.  Went to Dreamweaver about 12 years ago, the Macromedia version.  Tried going to iWeb when it came with a new Mac, but found it way too limiting with it's CSS template base.   Unknowlingly, I then bought a new copy of Dreamweaver.   Ooops, Adobe had bought Macromedia and Dreamweaver, too, is now CSS based, which for my money makes it useless to anyone who likes simplicity.   Now I find that even iWeb has been discontinued.  I was told yesterday that Apple doesn't have a web program any more.   At 12 years old, I just don't think it's practical to try to load my old Macromedia Dreamweaver into the new Mountain Lion (I'm getting a new Mac), though it is running, barely, in Snow Leopard.
    I need to find a web builder program that will permit simple construction of educational pages, nothing fancy, nothing artistic, just create a page, give it a color, type or drag in text, insert a table, insert pix in the table blocks, add text under the pix... done!    I should note that I am not looking to build traffic.  I teach simple things for free and people who want to learn those things (antique sewing machine repair, quilting, building longbows) find me.
    I've downloaded trial versions of half a dozen or so programs and looked at maybe 20 more, but all are either CSS based and drive me insane with requirments for constantly making rules and template models, and/or require that you base your web presence in their server.   Also, many will not work with pages built in other programs.  I maintian a volume of over 1000 web pages, many requiring regular updating, and they have been with the same server for more than 15 years.  I'm not about to change.
    So, anybody know a simple, old fashioned web builder that's happpy on a Mac platform?
    Captain Dick

    Although not supported anymore, iWeb does still function using Mountain Lion...
    http://www.iwebformusicians.com/iWeb/mountain-lion.html
    ... and you can purchase it from Amazon.
    Start with a blank page using the Black or WHite template.
    All modern websites use CSS and there are thousands of free templates to be had if you want to use a code entry style application. You will need to go this route if you want to create a site that is viewable on mobile devices although you can create an iPhone version using iWeb...
    http://www.iwebformusicians.com/iWeb/Mobile-iWeb.html
    Search this forum for numerous topics about iWeb alternatives.

Maybe you are looking for

  • Issue with sorting in a PPR report

    Hi: I have a report based on a query that references a view whose defining query references a remote table. I have the columns of this report enabled for sorting and there is no default sort column specified All is fine when the page containing this

  • Credit check at sales order level?

    Dear experts I want to set credit check at sale order level with following conditions consider open deliveries for credit exposure consider billing documents for creadit exposure do not consider any open orders Also if oldest items are open for more

  • Imported music not showing in list view

    I switched iMAC's and used "add to library" to bring in all my music from a DVD I burned for backup. It copied the files fine, but only about half of the song names showed up in the music list in the iTunes application? The file folders are in the iT

  • ITunes 5 incompatible with Quark XPress 4.1

    I wish I had come to this forum before installing the iTunes "upgrade." Unfortunately, I did install it, and it makes my Quark XPress 4.1 hang. When I started encountering problems with Quark, I checked the Quark forum and a poster described this sit

  • Is it possible to run popular contemporary games in any Mac?

    Yah the thing is, I am going for MAC PC, at least it is in my mind but kids are very fond of latest games, windows games can't be played in mac but is there a way available? Thank and Regards Michael (Mike) Kossar.