I need some Applescript help with numbers

I am trying to automate some share price data calculations from delimited text files I download from my online broker service. I am having trouble getting past first base.
I can open the files, delete columns and rows but something is wrong with my syntax for getting values from cells so I can perform some calculations and put the results back where I want them.
Here's my test script. It compiles and runs fine up to "set FirstCell to cell 1 of row 1" then it returns a try error.
Hope someone can set me straight.
Alistair
--Variables
set fileName to "portfoliopositions-"
set fileNumber to 1
set fileExtention to ".xls"
set fileHandle to fileName & fileNumber & fileExtention
-- ultimately I will get a list of all the files from the download folder and process them one by one in date order
tell application "Finder"
set filePath to path to downloads folder as string
end tell
set fileToOpen to filePath & fileHandle
--Display Dialog
tell application "Finder"
--display dialog filePath & fileHandle
end tell
try
--Open Numbers document
activate application "Numbers"
tell application "Numbers"
open fileToOpen
tell document 1
tell sheet 1
tell table 1
repeat 8 times
-- removes columns from the end of the sheet
remove column 13
end repeat
-- adds an empty column
add column after column 12
set rowCount to get row count
--display dialog "rowCount = " & rowCount
set FirstCell to cell 1 of row 2
--This is what I want to do ultimately
-- repeat with n from 2 to rowCount
--set CostOfShares to cell n of column 8
--set percentYield to ProfitLoss / CostOfShares
--set cell n of column 13 to percentYield
--end repeat
end tell
end tell
end tell
end tell
on error
display dialog "error "
end try

alivation wrote:
Thanks for that ... beginner problems understanding when to use "value to".
Think that a cell is a complex structure: a value, a background, borders …
Look at this screenshot :
It appear clearly that value is just a small subset of what is a cell.
Yvan KOENIG (VALLAURIS, France) samedi 9 avril 2011 22:36:00

Similar Messages

  • Need some URGENT help with 3 DVD mastering issues PLEASE! :

    Hi there,
    Firstly, I am running DVD SP 3.0.2 on Mac OS 10.4.7 on a G5 Dual 2 GHz 3Gb Ram plenty of HD space...
    I am creating a DVD with: An intro sequence, a main menu, 4 sub menus, and 4 sections with around 12 chapters each.
    I am having some big problems, and a pretty stuck. I will lest them separately below, numbered. If you are able to help, please refer clearly to which number you are helping with. Any help is MUCH appreciated! Many thanks!!
    1. Each of the 5 menus (1 main, 4 sub) have a background video, and a separate audio track. I added the background videos by simply dragging them to the assests panel, then from there onto the menu editor window. They are created in FCP and are properly encoded. However, when I click the motion button, or use the simulator, the videos do not show up. The music plays, but all i see is plain black.
    What is going on?!?!?!
    2. I am really struggling with rollover buttons. I have custom created buttons, and I wand them to have a soft red glow around them when hovered over. HOW ON EARTH DO I ACTUALLY DO THIS??
    The buttons are in photoshop so can be exported with/without background/glow in any format.
    3. Is it possible, once I have got the above rollover working, to have an image to the right hand side of my buttons which changes with the the button rollover. i.e. hover over button 1, see image 1. hover over button 2, image changes to image 2.
    PLEASE PLEASE give any help you can, I have a deadline coming up and am quite stumped. Thanks again!!

    I am still having problems regarding issue Number 1. PLEASE ANYONE HELP?!
    Sorry, I'm not sure about the motion menus. I avoid those whenever possible. But you might click on the menu in the storyline tab (whatever it's called -- the hierarchical view with the disc, tracks, slideshows, etc.) and look at the properties and see if there's anything you have to enable specifically for motion. And be sure the motion button is on on the main display/preview area, but it sounds like you already know how that works.
    For your information, here is a screen grab of the menu I am trying to create:
    http://www.redhavoc.co.uk/stuff/menu.jpg
    I think it is obvious that when a button is hovered over, I want it to glow red, and the image to the right will change to match the respective button.
    IS THIS GOING TO BE POSSIBLE????
    Yes.
    First, your menus have to be layered menus. Unfortunately, there's no way to convert non-layered menus to layered menus, so if you already have non-layered, you'll have to just delete them and create new layered menus. The button (and menu item) to create a layered menu should be right by the normal new-menu item.
    Next, the graphical work is all in Photoshop.
    Side tip: You may already know this, but I found it's best to use 640x480 for the Photoshop document. When I do text and leave it as a text object in the Photoshop file, it resizes poorly in DVDSP. So this ends up being another 720x480 vs. 640x480 square/rectangular pixel conversion thing. DVDSP plays in the 640x480 world, at least as far as the designer can see. So I keep my images at 640x480, and it doesn't have to resize, and everything looks right.
    Moving on... Set up your basic background, the part that won't change (or will have other things covering it, like for your square image).
    Then put in all the buttons and images you'll be using, each part in a separate layer. This could have fifteen buttons (you have five buttons, and there can be three versions for each -- inactive, selected, and activated versions) and five or six square images (you said one for each button, and you might want a blank default if, say, you want to add a "back" button on the menu and want some blank or default image for the square when they're on the "back" button).
    Sometimes people don't bother with a separate "active" button state, but you usually want some visual feedback that they clicked the button. Also, I usually just build the default (unselected) button into the background; that's less hassle later on, and it will just draw the selected or activated buttons over that when the user is on that button.
    Line up all your buttons and images. All the square images lined up perfectly on top of each other, all the buttons in the right places (so you'll have three buttons stacked on top of each other in each spot). Give each layer a short but quickly recognizable name, and line them up in a consistent order. (button1-default, button1-selected, button1-active, button1-squarepicture, then button2-default, ... etc.) Photoshop and DVDSP don't care, but it makes it easier for you later.
    Note that earlier versions of DVDSP won't show Photoshop layer effects. (They handle layers, just not the effects, like inner glow, outer bezel, etc.) I don't remember when they changed this, but I think it was version 4.something. So if you're using that method to make your buttons glow, you may have to flatten each selected or active button layer, and you may even need to create a dummy blank layer underneath it first to give it something to flatten onto.
    Save the file as a standard Photoshop file (.psd). Drag the file onto your DVDSP layered menu and set it as the background.
    Now, in DVDSP, create all your buttons. Just drag boxes over/around the button pictures you have. Feel free to make them extra-big; users won't see the actual area you've selected, and bigger areas makes it easier for people to hit them if they're using a mouse on a computer to watch the DVD. You can point the buttons to their targets now if you want, and set the end jumps on the tracks if you want. (I tend to set the end jumps on the tracks so they automatically select the button for the next track.)
    Now's the fun part, since it will actually hook everything up and should be easy if your naming layer order were consistent. Click on the layered menu (in that hierarchical view) and look at the properties window. (Sorry I can't remember the technical names for all these windows; I'm doing this all from memory. So feel free to ask more questions if you can't find what I'm talking about.) One of the properties tabs should have a grid of checkboxes with a list of your layers. Make sure the background is checked for all of the states. Then check the layers you want to show for each button state, as well as the corresponding square image to show for each.
    Again, I'm doing this from memory, and I can't remember exactly how things are listed in that grid. But I remember it keeps your layers in the same order you put them in the Photoshop file and shows you those names, so it should make it easy to go down the list and check the right boxes.
    And another side tip: You can update the Photoshop file, but once you've put it in DVDSP, if you change the layer order, it will screw up the check boxes you checked. It always shows you the layer names correctly, but it keeps the checkboxes in DVDSP simply assigned to the layer number, so the fifth layer will keep the same checkboxes even if you juggle them so some other layer is now the fifth layer. So if you do juggle the layers in Photoshop, go back and fix the checkbox list in DVDSP.
    I put a sample Photoshop file based on yours in
    http://dan.black.org/layered-menu-sample.psd
    It's quick and dirty, but shows the layer layout, and you should be able to drop it on DVDSP to play with. (I also won't leave it there forever, maybe a few weeks, so anybody reading this in a month or more probably will get a 404 for that url.)
    Again, doing this from memory, so feel free to ask if anything doesn't work or doesn't make sense.
    G4/dual867   Mac OS X (10.4.5)   2GB/0.8TB

  • Need some quick help with redoing a website

    Hi, I did my website done in iWeb in 2008, published it, and have it hosted by GoDaddy. I want to take it offline for now and design a new 'under construction' site, but there is a chance that I might want to still go back to the original version.
    I see the current 'Domain' in Home Folder>Library>Application Support>iWeb.
    Can I just redo my site (still working in pre-2008 iWeb), publish it, and if I need to, use the old 'Domain' to revert to my current website?
    If yes, how do I do that....and, if 'no', what should I do?
    Thanks!

    Hi and thanks. To reply....
    I published the website in iWeb and it is on my MobleMe. It was done in iWeb v 1.1.2, and I have not upgraded iLife on the computer that I designed the website on, as I feared losing some/all of it in an upgrade.
    I do, however, pay GoDaddy for my corporate URL AND hosting....which I suspect is the forwarding and not 'hosting' per se....but on my Hosting account on GoDaddy it does say 'Shared Hosting'.
    I do not want to 'overwrite' my current site just yet, as I am uncertain about the next one's content or the time to do it the way I envision it. What I want to do is SAVE my current site in case I want it back and, in the meantime, put up a page that says Under Construction. Can you help with that?
    Much appreciated

  • I need some serious help with MPEG Streamclip and iMovie 11

    Hello, everyone!
    I hope that some kind soul here is able to help me. My sister-in-law asked me if I could help her re-edit a video that they made of a conference she gave because she didn't like the way some parts were edited. I oh-so-kindly (and perhaps stupidly) offered to help her out!
    A little background: even though I studied audiovisual communications in college, I leaned (a LOT) towards the audio production part of it and, lately, photography, too. That means that I'm not very good at the whole creating-a-movie-in-iMovie thing, even though I know it's supposed to be easy.
    So, here goes: I have a DVD from her which has the typical TS files for audio and video. I downloaded a program called MPEG Streamclip and then it said I needed to buy the QuickTime MPEG-2 Playback Component so that I could rip the DVD my sister-in-law gave me. I bought the component.
    I've converted, done small, 1-minute tests, of the DVD with MPEG Streamclip to DV and also to MP4 (just in case). I do it, then import them to iMovie 11. I don't edit anything at all, just a test to see how it looks, so I immediately send the project to iDVD to see how it looks. It DOES NOT look good.
    Compared to the DVD she gave me, which looks all smooth (picture-wise), mine has a certain amount (NOT HUGE) of pixelation. I can tell especially because there are some slides that were added to her project, so I can see the pixelated parts around the edges of the letters.
    The DVD she gave me does NOT look HD. In fact, it looks SD (4:3), so I don't believe it's that.
    If anybody here knows about this, what am I doing wrong? Am I not ripping it correctly using MPEG Streamclip? Am I not making the iMovie 11 project right? Am I burning in the "wrong way"?
    If it's the MPEG Streamclip ripping that I'm doing wrong, what are the settings I should be using? What format should I be using so that it is VERY iMovie-friendly?
    I want the final video that I would edit to look exactly as the one she gave me. That IS possible, right?
    For extra information, if needed, I am running a MacBook Pro, 13", i7 with 4 GB of RAM and am running OS 10.6.6. I've been a Mac user since the OS 9 days.
    Thanks in advance for anyone who helps me out.
    Serge

    Ok. Got it!!!
    Z, thanks a lot!! Now things don't look pixelated and my test burn looks exactly like the dvd my sister-in-law gave me... except for ONE THING:
    There are these graphics done in I-don't-know-what program with a cube transition. They look like when you do 3D cube transitions in virtual desktop, you know?
    Anyway, HER dvd looks completely smooth when you see these transitions but MY dvd looks... well, not right. It looks a bit like the screen or the letters "tremble" or shake a bit. I hope you can understand what I'm saying.
    I followed your advice to the letter and everything is perfect with the exception of those transitions (because after the transition passes and you see the slide with the writing, it looks completely smooth).
    Do you know of something that I can do to help with this problem?
    Thanks again!
    Serge

  • I need some serious help with Oracle Database....PLEASE!!

    I am using Microsoft Virtual PC 2007 that has Oracle Database 10g and Wondows XP installed on it.
    Database instance is DOWN but that is not the problem
    Listener is UP
    Agent Connection to Instance is DOWN, and I cannot get this running!
    How can I fix this problem? I am not an expert, but I have been trying for a long time to fix this issue, but I can't. It just came to the point that I want to grab my pc and throw it across the room.
    Error message: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    Here is my LISTENER.ORA file:
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.109)(PORT = 1521))
    Here is my TSNNAME.ORA file:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.109)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Once again, I am not an expert, so please try to explain it as simple as possible...I know, I am an idiot when it comes to networking issues.
    if you guys need some more information, just let me know!
    Thank you!

    What I mean is that I can get the Instance UP with no problem, but the Connection with the Instance is the problem.
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-NOV-2009 21:38
    :06
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:144 refused:0 state:ready
    LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: PAOLOSCAMARDELL, pid: 2576>
    (ADDRESS=(PROTOCOL=tcp)(HOST=paoloscamardell)(PORT=2307))
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:144 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-NOV-2009 21:52
    :03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 25-NOV-2009 11:50:27
    Uptime 0 days 10 hr. 1 min. 39 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
    ra
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.109)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\Paolo\Desktop\courselabs\labs>

  • I'm new to java and I need some quick help with NetBeans.

    Hi. To whomever can help here's the problem. I've been trying to install netbeans ide 5.0 on my computer for a while now and i can't seem to find out what is wrong. I'm in a java programming course and i need the J2SE Developement Kit 5.0 Update 7 and NetBeans IDE 5.0 Installer on my comp. Whenever i go to install it, it can't automatically create a directory and has erroe null in place of it. Whenever i made a new directory for it a page would come up telling me all of the errors during the installation which are null. Since i have administrator privelages and plenty of free space on my hardrive.

    Hi,
    I want to suggest you that
    1.please check if any prerequisite is require before installing the NetBeans IDE,i hope there is nothing like that except proper jdk on your machine.
    2.if you already having JDK on your machine check for the compatibility of that jdk version with the required NetBeans IDE version.
    3.follow the steps provided to install the NetBeans IDE 5.0 for that refer the below link
    http://www.netbeans.org/community/releases/50/install.html
    hope you will get rid of the problem .....
    ---Vidya

  • Need some urgent help with Java code...

    Hello
    i am taking a java class..beginner..and i am a dud at programming...
    had a couple of questions ..how do make a program ignore negative
    integer values,make it terminate when zero is entered instead of a number ,how should i calculate maximum minimum of integers..please help me..
    thanks
    damini

    You got some good advice from Java_Jay.
    Here is a snippet I keep handy for console input and output. It doesn't do your home work but gives you a working example of getting numbers from stdin:
    import java.io.*;
    public class DemoKeyboardInput {
         public static void main(String[] args) throws IOException {
              // open keyboard for input (call it 'stdin')
              BufferedReader stdin = new BufferedReader(new InputStreamReader(
                        System.in), 1);
              // get input from the keyboard
              System.out.print("Please enter your name: ");
              String name = stdin.readLine();
              System.out.print("Please enter your age: ");
              String s1 = stdin.readLine();
              System.out.print("Please enter the radius of a circle: ");
              String s2 = stdin.readLine();
              // perform conversions on input strings
              int age = Integer.parseInt(s1); // string to int
              double radius = Double.parseDouble(s2); // string to double
              // operate on data
              age++; // increment age
              double area = Math.PI * radius * radius; // compute circle area
              // output results
              System.out.println("Hello " + name);
              System.out.println("On your next birthday, you will be " + age
                        + " years old");
              System.out.println("Area of circle is " + area);
    }

  • I need some syntax help with reading some values from a selected row in an Access form.

    My goal:  to extract the data from 4 fields in a datasheet row and place them in another form.
    My problem:  I can only get the field values from the first row of the datasheet.
    I have tried using the Form_Click event as the location for the code I've tried.  This seems to be the right place, but apparently referring to the desired fields by their names with Me. in front just references the first record in the datasheet, not
    the one I've selected.
    Should I just read the source form's recordset using the Currentrecord value somehow?  I could use some direction on that.
    Thank you.
    Marj Weir

    It's generally considered good forum etiquette to post back a description of the solution which you've reached.
    The normal control for a multi-valued field is a combo box rather than a text box, but unless it is necessary for you to use a  multi-valued field, i.e. your database is interfacing with SharePoint in the very limited context in which this feature is necessary,
    I'd advise that you model the many-to-many relationship type in the time-honoured way by means of a table which resolves the relationship type into two one-to-many relationship types, and use a subform to show the data.  You can alternatively use a multi-select
    list box or a text box which shows a value list.  You'll find examples of all three methods in StudentCourses.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    Ken Sheridan, Stafford, England

  • Need some urgent help with my (simple) Applet!

    Hello, I'm pretty new to Java and I am beginning to like it!
    I'm still verry much new to the language, but if you can help me you make me verry happy!
    Oke so I made an Applet where if you push on the button Omhoog, Omlaag, Links, Rechts, and Reset the ball (created with g.Oval in the methode paint) the ball should move above, down, left, right, and with reset it should go to the specified beginningpoint. The thing which I can't get to work is that when you push for instance on rechts(right) I want it to change in color for each specific movement (i.e left right...) and turn to black again when pushing on the reset button. I have been meshing around with if and else but I don't seem to know how to set this proparly. (I hope you can help me out!)
    this is my sourcecode:
    package oefening80;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class Applet1 extends Applet {
    int xPos = 130, yPos = 130;
    Button Omhoog, Omlaag, Links, Rechts, Reset;
    boolean geklikt, gekliktL;
    public void init() {
    setBackground( Color.yellow );
    setLayout( null );
    geklikt = false;
    Omhoog = new Button( "Omhoog" );
    Omhoog.addActionListener( new OmhoogHandler() );
    Omhoog.setBounds( 120, 20, 50, 20 );
    gekliktL = false;
    Omlaag = new Button( "Omlaag" );
    Omlaag.addActionListener( new OmlaagHandler() );
    Omlaag.setBounds( 120, 60, 50, 20 );
    Reset = new Button( "Reset" );
    Reset.addActionListener( new ResetHandler() );
    Reset.setBounds( 120, 40, 50, 20);
    Links = new Button( "Links" );
    Links.addActionListener( new LinksHandler() );
    Links.setBounds(70, 40, 50, 20 );
    Rechts = new Button( "Rechts" );
    Rechts.addActionListener( new RechtsHandler() );
    Rechts.setBounds( 170, 40, 50, 20 );
    add( Omhoog );
    add( Omlaag );
    add( Reset );
    add( Links );
    add( Rechts );
    public void paint( Graphics g ) {
    g.fillOval( xPos, yPos, 30, 30 );
    class OmhoogHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    yPos -= 10;
    repaint();
    class OmlaagHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    gekliktL = true;
    yPos += 10;
    repaint();
    class ResetHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    xPos = 130;
    yPos = 130;
    repaint();
    class LinksHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    xPos -= 10;
    repaint();
    class RechtsHandler implements ActionListener {
    public void actionPerformed( ActionEvent e ) {
    xPos += 10;
    repaint();
    thanks.

    Gotten tag.
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class Applet1 extends Applet
         int     xPos = 130, yPos = 130;
         Button  Omhoog, Omlaag, Links, Rechts, Reset;
         boolean geklikt, gekliktL;
    public void init()
         setBackground( Color.yellow );
         setLayout( null );
         ActionListener actl = new OHandler();
         geklikt = false;
         Omhoog = new Button("Omhoog");
         Omhoog.addActionListener(actl);
         Omhoog.setBounds(115, 20, 60, 20 );
         gekliktL = false;
         Omlaag = new Button("Omlaag");
         Omlaag.addActionListener(actl);
         Omlaag.setBounds(115, 60, 60, 20 );
         Reset = new Button("Reset");
         Reset.addActionListener(actl);
         Reset.setBounds(120, 40, 50, 20);
         Links = new Button("Links");
         Links.addActionListener(actl);
         Links.setBounds(70, 40, 50, 20 );
         Rechts = new Button("Rechts");
         Rechts.addActionListener(actl);     
         Rechts.setBounds(170, 40, 50, 20 );
         add(Omhoog);
         add(Omlaag);
         add(Reset);
         add(Links);
         add(Rechts);
    public void paint(Graphics g)
         super.paint(g);
         g.fillOval(xPos, yPos, 30, 30 );
    class OHandler implements ActionListener
    public void actionPerformed(ActionEvent e)
         Object obj = e.getSource();
         if (obj.equals(Omhoog)) yPos -= 10;
         if (obj.equals(Omlaag)) yPos += 10;
         if (obj.equals(Rechts)) xPos += 10;
         if (obj.equals(Links))  xPos -= 10;
         if (obj.equals(Reset)) 
              xPos = 130;
              yPos = 130;
         repaint();
    [/code
    Noah                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need some urgent help with ps vita

    My son has a ps vita, and a few days ago, I found some history of visiting adult websites. He claims that these sites just pop up, and he is not purposely seeking out these sites.
    Is it possible for adult sites to pop up on ps vitas?
    Thanks
    IW

    Sony PlayStation has a separate community which can be found here. Please visit the link for best assistance with your PlayStation Vita.
    If my post answers your question, please click on "Accept as Solution"

  • Need some quick help with server proxy on PI 7.1 system

    Hi,
    I am implementing a server proxy on the PI 7.1 system to do some logging to a table. So, when I go the the proxy in sproxy and generate it, in the interface section on the properties tabs I only see a drop down that says point to point enabled. There is no implementing class to click into and thus not method to populate with the custom code. Some direction would be appreciated, I have been working 7.0 for a while, so the missing implementing class is new to me! I know the method name has changed from the execute_asycronous etc... Am I going to the wrong place now to find the implementing method?
    Thanks,
    Chris

    Whoops! Brain cramp. accidentally set the interface to outbound and not inbound in the ESR lol. Sorry.

  • Need some quick help with jbutton

    Hi,
    My first post so please be gentle!
    I currently have two buttons in my container. The first one when pressed calls another function that generates a set of coordinates (button = generate). I now have another button that wants to take those coordinates and draw them on-screen, but I'm having trouble doing this since I can't get the "generate" button function to pass the xycoords over to the "draw" button function. I'm more of a Fortran/Perl programmer and I'm a bit confused how to go about this. I tried making the variable (xycoords) a gloabl variable, but id rather not do this.
    Any tips?
    Cheers,
    Adriano

    Sure, show us the code. Otherwise we have to try to read you mind.
    Here is the scenario you are in:
    Event Driven Method (ActionPerformed/ButtonClicked/etc): you do not have arguments that you can control, so if you want to use something from within that method you have to have visibility to it (global definition with respect to the routine) and in the Java world that usually boils down to class variables or some type of public data class.
    Now, it you want the coordinates of the click event, that is contained in the MouseEvent... getX and getY, so you can use these as arguments to other methods from within your MouseListener.

  • I really need some serious help with Encore import

    Ok I will start off by saying  Iam a complete and total newbie to this field.  I have produced a few small projects in premier and encore but nothing advanced until now.
    Here is what I have done
    I am using CS04 Suite
    I have built a Premier Project using AVCHD footage that is 2.5 hours long (roughly)
    I exported the final project using AME to H.264 so that I could import it into Encore
    The files is 16 GB in size
    I am trying to import the file as an asset into encore to build the menus,  I need to create 2 images in encore, one DVD image and 1 Blueray Image.  I am trying to do the DVD image at this time.  Encore allows the import, shows the video in the asset list but my hard drive has been running like a fool for 3 hours now,  I cant seem to drag it to the timeline, if I right click  I cant even access the Transcode setting of the file, my system is very sluggish.  It almost seems like it is pre-transcoding but I see no progress bars anywhere.
    Is Encore simply still importing the file?
    Am I doing this correctly?
    Should I break up the video into smaller files? Will I need to create multiple Premier Projectes to do so?
    If I wait long enough will it be ok?
    I have 6 days to finish this project... I really need your help !!!

    An external ESATA would do just fine.
    Keep all of your media on the external drive.  Only use the internal drive for Windows and your applications.
    Your quad-core and 4 GB of RAM is OK.  Not great (I'd get 2 GB of RAM per core), but OK.
    -Jeff

  • I need some basic help with Email setup

    Hello, I ve just been connected to infinity and I m trying to setup a few email addresses but the BT yahoo system is confusing me.
    I managed to create a new email (sub account) for my wife but I m struggling with finding a way to have a couple more for myself. Do I really need to make a sub account for each email?
    The default email has my name and surname in it which is not something I generally use for that purpose, I would only use that one for close friends and family, I would like to setup another one for general use and one for when there is a likelyhood it ll get a lot of spam.
    The way to add extra emails is usually very simple (with previous isps) , login to "manage my account" and choose username and password then enter the details in outlook express.
    With BT I m having to deal with the Yahoo thingy, which does a lot of more than just emails but at this time I have interest in it at all.
    1 - I would simply like to setup a few emails to use with outlook express, what is the best way to achieve that ?
    2 - The yahoo email seems to be part of a network like facebook, as I  don t intend to use that side of it I would prefer not to have my personal details associated with a profile that I do not  need . It seems to be for public viewing by default.
    Can I set up and use my emails without having an online profile for yahoo?
    How do i keep my details offline (not publicly viewable in yahoo)?
    thanks.

    yes!
    you get one prime email address. the one you agreed to and the one to set up your bt mail, it was in letter confirming bt set up. (order ref)
    for more for yourself, or anybody else,  its got to be sub. up to ten for INF2
    I have set up 4 sub accounts with different names, etc. but use the same password for all 5 .
    I then had them set up with outlook express, there is a bt prog to do this. look on site.
    Then I use incredimail as my final mail client, this also has a prog to set up from outlook express.
    so all my mail to and from me ends up in incredimail with my 4 sub accounts, using one as my prime.
    my bt prime I do not use, as it is my full name.
    so far so good, just a bit slow finding its way, like you my previous ISP (tesco) was less complicated, but slow copper wire.
    good luck
    Ronin22
    In the end we will all be star dust.
    Then start all over again.

  • Sigh... i need some specific help with airport wireless connectivity

    hi. long time reader, first time poster. Pretty much comes down to a failure in how to search... so, links to answers are a-ok with me!
    here's the problem, PowerPC 970 (2.0ghz, 2 cpu Power Mac G5 for search string) that does not like the airport extreme card that i'm trying to install. using the apple documentation, and using card model A1026 emc# 1951
    machine will not boot after card installation. running fresh install of 10.5 with 10.5.8 and latest airport install.
    any help as to what i'm doing wrong here and why we're not booting up? Thanks! if there's a database that has a list of compatible cards by machine, please please please linky
    TIA

    Hi-
    One Airport Extreme card, M8881 (LL/A is US model) PN#652-0817:
    http://www.smalldog.com/product/73422/atfgc
    http://support.apple.com/kb/HT3024
    Airport Installation:
    http://manuals.info.apple.com/en/AirPort_Card.pdf
    The Bluetooth module is separate from the Airport Extreme card:
    http://www.yourmacstore.com/shop/shopexd.asp?id=467&bc=no

Maybe you are looking for

  • Adobe Photoshop CS3 has stopped working: A problem caused the program to stop working correctly.

    I recently purchased a new desktop computer and installed Adobe CS3 Master Edition on it and I get the following error: Adobe Photoshop CS3 has stopped working: A problem caused the program to stop working correctly. Windows will close the program an

  • Unwanted web page appearing. How do I block or delete?

    I web browse with Mozilla Firefox V6.0.1. and my home page is http://www.google.com.au/firefox?client=firefox-a&rls=org.mozilla:en-GB:official. McAfee Virus Scanner is operable and current. My problem is, that after web browsing and having multiple t

  • NVL in select query

    I have query as below select a.id, (select dep from table2 where table2.name=table1.name ) from table1 The second value is null as table2.name=table1.name has no value for table1 if i use NVL as below select a.id, (select NVL(dep,0) from table2 where

  • Downpayment process

    Hi experts, can anyone explain me the downpayment process in SAPB1.Why system does not allow us to copy downpayment request to downpayment invoice?

  • Configure Managed Sever to Work the the Node Manager using Console

    I just start to use weblogic server 10g. I have some problem to configure managed server. I need helps of all of you. my os is window 7 considere i work on local machine my domain name is: adf_test my machine name is: machine1 how can i configure thi