Uni student needs help... again 8(

hello,
i need some help in understanding my applet. i have little experience programming and i am required to write the following small applet as part of an exam for this the first thursday in june.
http://www-csfy.cs.ualberta.ca/~c114/LabExams/LElocations/lbe28.html
I also am restricted to using the following classes and methods:
http://www-csfy.cs.ualberta.ca/~c114/LabExams/LElocations/library.html
I have written some of the code for this exercise and it compiles fine, but when I try to push the enter button and push the string object into the stack I get a nullpointerException. Does anyone know why this would be the case? What would be my fix and why?
Once again Thanks in Advance to all who respond.
This is the code that I have written so far:
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import java.util.*;
public class Exam28 extends Applet implements ActionListener {
private final static String enter = "Enter";
private final static String reverse = "Reverse";
private String aString;
private Button anEnterButton, aReverseButton;
private TextField aTextField;
private Stack aStack;
     public void init() {
          this.aTextField = new TextField(20);
          this.add(aTextField);
          this.anEnterButton = new Button(Exam28.enter);
          this.anEnterButton.addActionListener(this);
          this.add(this.anEnterButton);
          this.aReverseButton = new Button(Exam28.reverse);
          this.aReverseButton.addActionListener(this);
          this.add(this.aReverseButton);
          repaint();
     public void paint( Graphics g ) {
     public void actionPerformed(ActionEvent event){
     String enterButtonPicked=event.getActionCommand();
     if (enterButtonPicked.equals(Exam28.enter)){
          aString=aTextField.getText();
          aStack.push(aString);

you need to initialize your Stack before you push anything on to it.
you could do it when you declare itat the top, like:
private Stack aStack = new Stack();
cheers
jamie

Similar Messages

  • Im a Uni student&need help:JAVA Final Year Project: Undo Manager Problem

    Hey all,
    Im writing a Final Year Project and have minimal experience writing in JAVA.
    It is an information visualisation assignment which involves reproducing code/text in a reduced format. Sort of to do with Line oriented statistics.
    http://www.cc.gatech.edu/aristotle/Tools/tarantula/continuous.gif
    This image will give you an idea of what im talking about.
    Anyway, i need to know if its possible to get information about individual undos/edits from an undomanager.
    Basically i need to be able to say, for example,
    there are 12 undos
    undo 12 occurs at line X
    undo 11 occurs at line Y
    etc etc
    I need to be able to get this information without actually invoking the Undo last edit call.
    Im bringing the Java undomanager tutorial home but from what ive read it seems like impossible?
    Any and all help appreciated.
    Regards,
    P

    When I was at uni I had to implement that for the text area of an IDE. All I did was rip off the code from the Notepad.java that comes with the SDK.

  • Uni student needs helps

    hello,
    i need some help in understanding my applet. i have little experience programming and i am required to write the following small applet as part of an exam for this the first thursday in june.
    http://www-csfy.cs.ualberta.ca/~c114/LabExams/LElocations/lbe28.html
    I also am restricted to using the following classes and methods:
    http://www-csfy.cs.ualberta.ca/~c114/LabExams/LElocations/library.html
    What I am trying to do is output each entry in the stack that is created previously using the draw method until the stack is empty. I have tried to do this but I get null pointer exceptions. What I need to understand is what part of my thought process am I omitting? Once again any responses are always appreciated.
    this is the code that I have written so far:
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.util.*;
    public class Exam28 extends Applet implements ActionListener {
    private final static String enter = "Enter";
    private final static String reverse = "Reverse";
    private final static int increment=20;
    private String aString, anotherString;
    private Button anEnterButton, aReverseButton;
    private TextField aTextField;
    private Stack aStack = new Stack();
    private int numberLine;
         public void init() {
              this.aTextField = new TextField(20);
              this.add(aTextField);
              this.anEnterButton = new Button(Exam28.enter);
              this.anEnterButton.addActionListener(this);
              this.add(this.anEnterButton);
              this.aReverseButton = new Button(Exam28.reverse);
              this.aReverseButton.addActionListener(this);
              this.add(this.aReverseButton);
              repaint();
         public void paint( Graphics g ) {
              this.numberLine=40;
              g.drawString(anotherString, 10,this.numberLine);
              this.numberLine=this.numberLine+Exam28.increment;
              repaint();
         public void actionPerformed(ActionEvent event){
    //enters the text from the textfield and puts it into the stack
         String enterButton = event.getActionCommand();
         if (enterButton.equals(Exam28.enter)){
              this.aString = aTextField.getText();
              this.aStack.push(aString);
    //how do I empty the stack and print it's output from here using the paint method?
    //And print each output of the stack on a different line?
         String reverseButton=event.getActionCommand();
         if (reverseButton.equals(Exam28.reverse)){
              if (this.aStack.empty()){
         else
             anotherString =(String)this.aStack.pop();

    In your reverseButton action, just call repaint ...only.
    Inside your paint method ...do all the logic to empty and print the stack like this:
        while(!aStack.isEmpty()) {
          anotherString =(String)this.aStack.pop();
          g.drawString(anotherString, 10,this.numberLine);
          this.numberLine=this.numberLine+Exam28.increment;
        this.numberLine=40; // reset the counter for next time... so you can do it all again.You have to do it all at once, right inside paint, because a new call to paint will clear any previous output.

  • Uni student needs help

    hello,
    i need some help in understanding my applet. i have no little experience programming and i am required to write the following small applet as part of an exam for this the first thursday in june.
    http://www-csfy.cs.ualberta.ca/~c114/LabExams/LElocations/lbe29.html
    This is the code that I have written so far:
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class Exam29 extends Applet implements ActionListener {
    private final static String square = "Square";
    private final static String circle = "Circle";
    private final static String draw = "Draw";
    private final static String noShape = "Not a shape";
    private String someText;
    private Button drawButton;
    private TextField aTextField;
         public void init() {
              this.aTextField = new TextField(20);
              this.add(aTextField);
              this.drawButton = new Button(Exam29.draw);
              this.add(drawButton);
              repaint();
    public void actionPerformed(ActionEvent event){
         String aDrawButton = event.getActionCommand();
         if (aDrawButton.equalsIgnoreCase(Exam29.draw))
              this.someText=aTextField.getText();
         public void paint( Graphics g ) {
              g.drawString(noShape,10,40);
         if (Exam29.square.equalsIgnoreCase(this.someText))
              g.drawRect(10,40,10,10);
         else if (Exam29.circle.equalsIgnoreCase(this.someText))
              g.drawOval(10,40,10,10);
         else
              g.drawString(noShape,10,40);
    Now my problem is that it doesn't respond to input. it just goes through the program and executes the last statement of my last condition.
    I know this is simple. But simple things always escape me. What is wrong with my understanding of the problem?
    I don't want people to write the program for me, i just want to know where i am going wrong.
    Thanks in advance to all who respond.
    screefer

    try this code.
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class Exam29 extends Applet implements ActionListener {
    private final static String square = "Square";
    private final static String circle = "Circle";
    private final static String draw = "Draw";
    private final static String noShape = "Not a shape";
    private String someText;
    private Button drawButton;
    private TextField aTextField;
    public void init() {
    this.aTextField = new TextField(20);
    this.add(aTextField);
    this.drawButton = new Button(Exam29.draw);
    // actionListener added needed to call actionPerformed()
    this.drawButton.addActionListener(this);
    this.add(drawButton);
    repaint();
    public void actionPerformed(ActionEvent event){
    String aDrawButton = event.getActionCommand();
    if (aDrawButton.equalsIgnoreCase(Exam29.draw))
    this.someText=aTextField.getText();
    // need to repaint after button click
    repaint();
    public void paint( Graphics g ) {
    //   g.drawString(noShape,10,40);
       if (Exam29.square.equalsIgnoreCase(this.someText))
          g.drawRect(10,40,10,10);
       else if (Exam29.circle.equalsIgnoreCase(this.someText))
          g.drawOval(10,40,10,10);
       else
          g.drawString(noShape,10,40);
    }cheers
    jamie

  • News "FLASH"... Nancy O (the legend) ... i need help again

    I am trying to put a banner on my website for my exam.... It will have to have an image with logos flashing across and stopping for a few seconds before carrying on.and out the other side.  I have looked up everywhere to see how this is done but with no joy. There is lots of info out there but it is not working for me.  In Flash i have no problem creating a banner image with various logos moving  from one side to the other or even changing the image from one shape to another or bouncing it up and down the stage from one side to the other. I can even stagger the timelines for the logos to make them enter one after the other. The one thing i can not get to grips with is making the images stop or pause after they have entered from one side before exiting  the other side. I have followed step by step many  youtube tutorials but the authors are wizzing through them too fast and despite folling every step second by second, i  am missing a vital step somewhere.   Would someone please let me know step by  step (and please assume i am an idiot when doing this) the sequence i must follow from the very begining to the last step when i publish.

    Noooooooo........ When i saw your email notification i had high hopes of getting the answer i have been trying to work out for two days....but no problem ..your still a legend ha ha ... you got me out of a big hole in this project the last time... but thanks for taking the time to reply, i will try the other forum.
    Date: Thu, 26 Jan 2012 17:28:18 -0700
    From: [email protected]
    To: [email protected]
    Subject: News "FLASH"... Nancy O (the legend) ... i need help again
    Re: News "FLASH"... Nancy O (the legend) ... i need help again created by Nancy O. in Dreamweaver - View the full discussion
    You'll get better answers in the Flash Forums for whichever Action Script ver you're using.
    Sorry.  I don't do much Flashy stuff anymore.  As far as I'm concerned, when Apple iDevices quit supporting Flash, it became a dying web technology.  
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4167793#4167793
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4167793#4167793. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Dreamweaver by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Need Help again...

    Hi all...
    Really need help again this time...
    I am trying to do a web page and thought of placing 4 video
    clips into
    1 Loader...viewers can simply choose any of the videos they
    would like
    to watch...and all the video clips will then play in the same
    Loader on
    the exact X & Y values...Is it possible?
    eg. 4 Buttons with linking to 4 different video clips.
    When a video clip selected, play in a Loader of X and Y
    values.
    When another clip selected, play in the same Loader.
    Moca or anyone...please help me a.s.a.p...Thanks in
    advance...

    Does this happen to a wired computer or to a wireless computer? If it happens to a wireless computer ONLY but not to a wired computer, a firmware upgrade might not be necessary at all.
    Make sure your wireless settings are personalized, try using channel 11 and when you go to advanced wireless settings, try setting the beacon interval to 50 instead of 100.
    On how to do the things mentioned in the 2nd paragraph, open up IE and type on the address bar the numbers 192.168.1.1 (username leave it blank, password as a default is admin). Go the the Wireless tab.

  • Need help again. please

    This is my code for the game called Pig. I asked help before and I fixed it. But it still doesn't seem to work.
    I need it to jump from the loop where answer = y to the next loop where answer = n.
    Which part is wrong in my program?
    Any help will be appreciate. Thank you.
    public class Pig
        public static void main (String[] args)
          String answer="y";
          int num3=0, num6=0; 
          PairOfDice die1 = new PairOfDice(); // die # 1
          PairOfDice die2 = new PairOfDice(); // die # 2
          while (num3 <= 100 || num6 <= 100)
          while (answer.equalsIgnoreCase("y"))
                rollUser();
                System.out.println ("Do you want to roll again? (y/n)");
                answer = Keyboard.readString();
          while (answer.equalsIgnoreCase("n"))
                rollComputer();
                System.out.println ();
                answer = "y";
        public static void rollUser ()
            int num1, num2, num3 = 0, two = 2;
            PairOfDice die1 = new PairOfDice(); // die # 1
            PairOfDice die2 = new PairOfDice(); // die # 2
            num1 = die1.roll();
            num2 = die2.roll();
            while (two == 2)
              if (num1 == 1) // when either face is 1
                 {num3 = num3;
                     two = 1;
              if (num2 == 1)
                 num3 = num3;
                     two = 1;}
              else  
                  if (num1 == 1)
                      if (num2 == 1) // when both faces are 1
                     {num3 = 0;
                         two = 1;}
                  else
                      num3 += num1 + num2; // sum of two faces
            System.out.println (num1 +" "+ num2); // shows both faces
            System.out.println (num3);   
        public static void rollComputer()
            int num4, num5, num6 = 0, one = 1;
            PairOfDice die1 = new PairOfDice(); // die # 1
            PairOfDice die2 = new PairOfDice(); // die # 2
            String answer="n";
            num4 = die1.roll();
            num5 = die2.roll();
           while (one == 1)
              if (num4 == 1) // when either face is 1
                 {num6 = num6;
                     one = 2;
              if (num5 == 1)
                 num6 = num6;
                     one = 2;}
              else  
                  if (num4 == 1)
                      if (num5 == 1)// when both faces are 1
                     {num6 = 0;
                         one = 2;}
                  else
                      num6 += num4 + num5; // sum of two faces
              System.out.println (num4 +" "+ num5); // shows both faces
              System.out.println (num6); // shows the sum of faces
              if (num6<=20)
                 {one=2; answer = "y";}
         

    I need it to jump from the loop where answer = y to the next loop where answer = n.And would you like to tell us what happens instead?
    -- as the code stands, your second loop will never repeat, so should not be a while loop but rather an if block.
    -- or maybe you wanted to assign the value of answer in rollComputer, but instead you declared a local variable, which you assign values to but never test.
    db

  • Help ex student need help ASAP

    Hello I'm in need of immediate help !!! I am a graduate of a design course visual communications and purchased the design suite under student ID. I am no longer a student and have currently had a computer crash and needed a new hard drive. As I needed to reinstall suite but I don't have a serial number anymore! Can someone help me I'm  currently doing a job for someone with a few days remaining on trial so this is errant!! 

    https://www.adobe.com/account.html for your Adobe orders page
    When you buy software via download you should ALWAYS write the download itself, and a text file with your serial number, to AT LEAST one "off your computer" backup... be that to a DVD or a USB hard drive
    If you can't find your serial number on your orders page, nobody can help

  • I need help again!

    HI
    This is driving me crazy, I discussed this before and I did manage to get it to work once.
    But I don't know how and I can't repeat it.
    I need to scale the video clip from one key frame to the next, but every time I change the size at either key frame it changes for the whole clip.
    In video 1 I want it to stay at 100% until the first key frame, and then change to 110% gradually until key frame 2 and stay there until the end.
    I swore that I was going to figure it out on my own and not bother you guys, but after spending an hour messing with it and searching all the help files I could find I still didn't find anything that describes the process.
    What I've done is set  both key frames to Bezier then I set the marker on frame 1, but then what?
    There doesn't seem to be any activate button, other then the Toggle Animation button, but that doesn't seem to do anything.  It just says that it will remove any previous key frames but I don't see anything happen when I click it.
    So I move to key frame 2 and I change the scaling on the clip to 110% I click the Animation button since there isn't' anything else to click (I've tried not clicking anything too) and the whole clip changes to 110%.
    What is the step by step process to change the size between the key frames .
    I just don't know what I'm missing.
    Mike
    Never mind, I finally found the little arrow that changes it from Opacity to Motion!!!
    I should have noticed that it said Opacity in the bar, but my eyes aren't that great anymore and it's pretty small.
    I go to have eye surgery in a couple of weeks.
    Hopefully it will be better after that, but I have my fingers crossed.
    My old partner in the graphic design business has vision so bad he can't drive any more.

    Hi
    I'm using PE 12, in Windows 8 64 bit.
    I'm trying to not over stress it and it's working better but still a little laggy.
    My icons for Effects, transitions, etc. have vanished again, after working for a couple of days.
    They actually come and go, I have had them show up and then disappear again.
    That's one issue I'd really like to get fixed, but I don't have a clue why it would do that.
    I think I've got the motion thing down now, I used in in this video to make the background zoom in when the camera moves in on Lucy.
    http://vimeo.com/78481370
    It adds another capability, I can see different layers moving at different speeds to give the illusion of depth.
    Bye for now.
    Mike

  • New Java Programming Student Needs Help

    Hey everyone,
    I've just started taking a Java programming class at Penn State University, and I have had some prior experience with programming, i.e. C, C++, HTML, SQL. However, this will be my first attempt at Java. I know there are a lot of similarities between C++ and Java, but I'm still a little lost on some methodology.
    To get myself going, I've been looking through the textbook a little and came across a problem that gave me some difficulty. I'll write out the outline:
    A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hours they work and time and a half (i.e. 1.5 times their hourly wage) for overtime hours worked, commission workers (who receive $250 plus 5.7% of their gross weekly sales), and pieceworkers (who receive a fixed amount of money per item for each of the items they produce � each pieceworker in this company works on only one type of item).
    +Define a Java class named EmployeePayment that includes functionality to compute the weekly pay for each employee. You do not know the number of employees in advance. Each type of employee has its own pay code: Managers have paycode 1, hourly workers have paycode 2, commission workers have paycode 3 and pieceworkers have paycode 4.+
    +Define a main method that creates an instance of the EmployeePayment class, and calls the setManagerPay method to set the managers weekly salary to $625.00. The main method should then prompt the user for the paycode ��Enter paycode (-1 to end): �, validate the input and perform the associated processing for that paycode. Your program should allow the user to process employees until a paycode of -1 has been entered. Use a switch structure to compute each employee�s pay, based on the employee�s paycode. Within the switch, prompt the user (i.e. the payroll clerk) to enter the appropriate facts your program needs to calculate each employee�s pay based on that employee�s paycode, invoke the respective method (defined below) to perform the calculations and return the weekly pay for each type of employee, and print the returned weekly pay for each employee.+
    +Define a setManagerPay method that accepts and stores the fixed weekly salary value for managers.+
    +A private instance variable weeklyManagerPay should be defined in the EmployeePayment class to support these accessor and mutator methods.+
    +Define a calcManagerPay method that has no parameters and returns the fixed weekly salary.+
    +Define a calcHourlyWorkerPay method that accepts the hourly salary and total hours worked as input parameters and returns the weekly pay based on the hourly worker pay code description.+
    +Define a calcCommWorkerPay method that accepts the gross weekly sales as an input parameter and returns the weekly pay based on the commission worker pay code description.+
    +Define a calcPieceWorkerPay method that accepts the number of pieces and wage per piece as input parameters and returns the weekly pay based on the piece worker pay code description.+
    +Once all workers have been processed, the total number of each type of employee processed should be printed. Define and manage the following private instance variables (*numManager*, numHourlyWorker, numCommWorker, and numPieceWorker) within the EmployeePayment class. What are the ways in which these variables can be updated?+
    Sorry for the length, but I wanted this to be thorough. Basically, I'm having the most trouble writing the switch statement, and outputting the total number of each type of employee...
    Any help and pointers will be greatly appreciated...thanks all.

    You said you've written C and C++ code before. I don't have an excellent memory but from the little code that I wrote in C, I believe the switch statement is exactly the same.
    Read this: [http://java.sun.com/docs/books/tutorial/java/nutsandbolts/switch.html]
    If you're having trouble understanding something post what your specific problem is. No one is going to write your homework for you, but many, myself included, would be more than willing to help if you're really stumped. Just post your concise problem.
    Edited by: sheky on Mar 12, 2008 9:52 PM

  • Google Fonts, DIVS, student needs help

    For a class project I am trying to replicate this magazine page I selected.  The idea of the project is to use things such as google web fonts.
    So far, I have done this - the font's don't have to match.  It just needs to have the same sort of look:
    OK, so far so good.  But I KNOW that this isn't semantic markup!  The name "Andre Benjamin" should be the <h1>, but I cannot figure out how to do that using google web fonts since the heading used 3 different fonts and different sizes. 
    Additionally, though it looks great in firefox this is how it renders in IE - No google font showing up, the divs are not lining up right.  The site is not "live", this is the view from previewing in IE.  Maybe IE needs it loaded on a server for google font to show?:
    So thanks for any help you can provide.  I know that I need to clean up this code before I go much further.
    The html is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="typography.css" rel="stylesheet" type="text/css" />
    <link href='http://fonts.googleapis.com/css?family=Ewert' rel='stylesheet' type='text/css'><!--A-->
    <link href='http://fonts.googleapis.com/css?family=Asset' rel='stylesheet' type='text/css'><!--NDR-->
    <link href='http://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'><!--E-->
    </head>
    <body>
    <div id="container">
    <div id="largeH1">A</div>
    <div id="medH1">NDR</div>
    <div id="medH1_2">&eacute</div>
    <div id="smallH1">BENJAMIN</div>
    </div><!--container-->
    </body>
    </html>
    The CSS is:
    @charset "utf-8";
    body {
        background-color: #333;
    #container {
        height: 1242px;
        width: 960px;
        margin-top: 20px;
        margin-right: auto;
        margin-bottom: 20px;
        margin-left: auto;
        background-image: url(images/bgNapkin.jpg);
        border: thin solid #ADC2A1;
    #largeH1 {
        font-family: 'Ewert', cursive;
        font-size: 300px;
        color: #d94730;
        margin-left: 35px;
        height: 300px;
        width: 215px;
        float: left;
    #medH1 {
        font-family: 'Asset', cursive;
        font-size: 75px;
        margin-left: 200px;
        color: #D94730;
        padding-top: 60px;
    #medH1_2 {
        font-family: 'Chivo', sans-serif;
        color: #D94730;
        font-size: 110px;
        margin-left: 625px;
        margin-top: -120px;
    #smallH1 {
        font-family: 'Chivo', sans-serif;
        color: #D94730;
        font-size: 36px;
        letter-spacing: 40px;
        margin-left: 255px;
        margin-top: -10px;

    Read up on nth-child pseudo-selectors.
    http://css-tricks.com/how-nth-child-works/
    Below, a quick and dirty example with span tags.
    CSS:
    span:nth-child(1)
    {font-size:250%}
    span:nth-child(2)
    {font-size:150%}
    span:nth-child(3)
    {font-size:100%}
    span:nth-child(4)
    {font-size:75%}
    span:nth-child(5)
    {font-size:50%}
    HTML:
    <h1><span>This</span> <span>is</span> <span>a</span> <span>spanned</span> <span>heading</span></h1>
    The result:
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • First Java Programming Assignment - Grad student needs Help

    Thank-you to whomever helps me out here (I have been waiting for the Professor to respond for 2 days now, and our asignment is due by midnight 2-nite. Here is my problem. We have a value called nPer. This value is defined as a double (it needs to since, it perfoms lots of calculations). Now the assigment calls for the print line to display the field in its integer format. So I have done the following:
    nPer=Math.ceil(nPer);
    This has caused the value to be represented as 181.0. Not good enough! The value needs to be truncated and represented as 181.
    The professor has provided us with directions that use the following syntax
    (int)181.0
    Putting that exact code in my program causes JBuilder to create an error message. Ergo, its not right. I have serached all over the tutorial looking for the proper method to resolve this, however - no luck. Could some kind sole please help??? Thank-you.

    You can look at either java.math.BigDecimal, if the
    true representation of the value and rounding are a
    concern, or java.text.NumberFormat if it's simply a
    matter of display.
    Your professor must be an old C programmer. Casting a
    double to an int? Oh, my. - MODBut that's what his assignment says, display it as an int. And the cast would work; I'm assuming he just didn't use it right.

  • Web Design/Graphic Arts Student needs help choosing a Macbook.

    First post on board so greetings!
    I have went back through all the archives and read every post I could on purchasing a Macbook for Web Design/Graphics but would like more info.
    Being a first time Mac user I am a little overwelmed by the all the guru talk. I will be going back to college next month for mainly Web Design/Development with Graphic Arts thrown into the program. The College has Mac Desktops to use but some of my classes will be online and I would like the portability of a Macbook to work from home with.
    I will be having to use Adobe Creative Suite (all 10 programs within it) and Autodesk 3ds Max. Being that I will be dealing with graphics I am willing to pay for the 15" Retina Screen. I have read that the Quadcore I7 processor may be over kill since alot of programs will never use the extra cores but with technology changing all the time I don't want to have tot upgrade in 2 years.
    So I'm looking for suggestions and will gladly add more info to help make my choice...
    Thanks in advance!

    lespaul75 wrote:
    First post on board so greetings!
    I will be having to use Adobe Creative Suite (all 10 programs within it) and Autodesk 3ds Max.
    I don't want to have tot upgrade in 2 years.
    welcome to the ASC-
    I would buy quadcore, with RAM maxed out and the largest HD for your specified needs.
    Web Design/Graphic Arts you will have many software packages running simultaneously to do your work.

  • Display presenter's note! Need help again Please

    Since installing leopard I cannot see the presenter's note on my screen and the slide on the projector's screen. I had wonderful advice in the past on how to do it in Tiger, I tried every configuration possible and I cannot do it.
    When I click off mirror I can see the slide on the screen but not on my laptop all I see is the empty desktop. If I choose to see presenter's display then my audience sees both slides and my notes.
    What am I doing wrong?
    Thank you for any help you might give me.
    Mireille

    Hi Mirelle,
    I think you need to make sure, that your notebook have found the attached monitor/projector before you begin the presentation, that way when switching off mirroring you should get a perfect picture on both monitor and projector.
    To see the notes, please be aware, that you manually have to enable notes. If you have chosen the outline view and writes here, it is not presentaed as notes. In the View menu chose show presenter notes, and now you can write your notes here, and they will be displayed during presentation at the presenter display.
    --Klaus

  • Java Intro student needs help on arrays

    As my first assignment I have created a program called RobotRat which has a "Rat" move north, south, east, or west on an array floor. I have the program running but am having trouble creating my "floor" using a two-dimensional array. My teacher also wants us to use boolean values for our array. I am drawing a blank on how to create this. From my books I have gathered the following code but cannot get it to work. Any help would be greatly appreciated:
    1.public class RobotRatArray
    2.{
    3.
    4. dataType RobotRatArray[] [];
    5. int matrix [] [];
    6. matrix = new int [20] [20];
    7.
    8.
    9.}

    Okay, I just spoke with a classmate of mine and they said my array isn't in another window. I need to do some system.out.print commands so they print out on my dos window. I am just so confused with this program. I am going to copy and paste it in here in case anyone has any guidance for me. It would be greatly appreciated. (Sorry, I can't figure out how to get my line numbers to populate from textpad when I paste in this message)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class RobotRat extends JFrame implements ActionListener
         private JPanel panel1 = null;
         private JPanel panel2 = null;
         private JPanel panel3 = null;
         private JLabel label1 = null;
         private JLabel label2 = null;
         private JLabel label3 = null;
         private JTextField textfield1 = null;
         private JButton button1 = null;
         private JButton button2 = null;
         private JButton button3 = null;
         private JButton button4 = null;
         private boolean[][] floor = null;
         private int current_column = 21;
         private int current_row = 21;
         private static final int UP = 1;
         private static final int DOWN = 0;
         private static final int NORTH = 0;
         private static final int EAST = 1;
         private static final int SOUTH = 2;
         private static final int WEST = 3;
         private int pen_position = UP;
         private int rats_direction = EAST;
    public RobotRat()
    super("RobotRat");
    label1 = new JLabel("Spaces: ");
    textfield1 = new JTextField(40);
    button1 = new JButton("Move North");
    button2 = new JButton("Move South");
    button3 = new JButton("Move East");
    button4 = new JButton("Move West");
    button1.addActionListener(this);
    button2.addActionListener(this);
    button3.addActionListener(this);
    button4.addActionListener(this);
    this.getContentPane().setLayout(new FlowLayout());
    this.getContentPane().add(label1);
    this.getContentPane().add(textfield1);
    this.getContentPane().add(button1);
    this.getContentPane().add(button2);
    this.getContentPane().add(button3);
    this.getContentPane().add(button4);
    this.setSize(600, 100);
    this.setLocation(100, 100);
    this.show();
    public void togglePen()
         switch(pen_position)
              case (UP): pen_position = DOWN;
              label1.setText("DOWN");
              break;
              case (DOWN): pen_position = UP;
              label1.setText("UP");
              break;
              default: break;
    public void turnLeft()
         switch(rats_direction)
              case NORTH: rats_direction = WEST;
              label3.setText("WEST");
              break;
              case EAST: rats_direction = NORTH;
              label3.setText("NORTH");
              break;
              case SOUTH: rats_direction = EAST;
              label3.setText("EAST");
              break;
              case WEST: rats_direction = SOUTH;
              label3.setText("SOUTH");
              break;
    public void move()
         int spaces_to_move = 0;
         try
              spaces_to_move=Integer.parseInt(textfield1.getText());
         catch(Exception e)
         switch(pen_position)
              case UP:
                   switch(rats_direction)
                        case NORTH: ;
                        case SOUTH: ;
                        case WEST: ;
                        case EAST: ;
              break;
              case DOWN:
                   switch(rats_direction)
                        case NORTH: ;
                        case SOUTH: ;
                        case WEST: ;
                        case EAST: ;
              break;
    public void actionPerformed(ActionEvent e)
         if (e.getActionCommand().equals("TogglePen")) {
         togglePen();
         else if (e.getActionCommand().equals("TurnLeft")) {
         turnLeft();
    public static void main(String[] args)
         RobotRat rr = new RobotRat();

Maybe you are looking for

  • After canceling a pre-order from iTunes I don't have the money credit back

    I recently pre-ordered an album from iTunes on my iPod Touch. (gift card) After about a week I decided that I'd rather get the actual physical disk from the store once it's released, so I canceled the pre-order and  I was told by the iTunes store tha

  • Identity of FMCYPREP entries in FMBL tables - Funds Management

    Dear Experts We have transferred the budget data planned to version 0 using t code FMCYPREP. However the internal budget process field "PREP" is not available any of the FM tables including FMBL and FMBH. How can we identify from the line items the s

  • Problem with indexOf ()

    Hi, I have a strange problem with this method. I have a some String like this: ":8547:Yog.Mora 200g:5123:0.4:0.5:123456789" ":8548:Yog.Mora 220g:5123:0.8:0.9:123456789" ":8549:Yog.Mora 250g:5123:1.0:1.2:123456789" ok now I use indexOf to find when ot

  • Send a render job to Media Encoder on another system?

    I am a recovering Final Cut Pro user. Switched over about version FCP X 10.3. The railroad tie that broke the camel's back for me was a removed feature I am hoping I can do with Premiere in some way. In FCP 7 and even FCP X up to 10.3, you had the op

  • Unable to login to SDM

    Hi, I am trying to login to SDM, But, I am getting the following error Could not establish connection to server XXXXX at port 50018: The file access permissions do not allow the specified action. I tried  all this... before posting this : -- tried to