Please Please Help with Projectile Project Here are the Codes

I've got three(3) classes a Model, a view, and a controller.
This is a project about projectiles.it is an animation of a cannonball being fired from a cannon and travelling under the effect of gravity.A cannon fired at angle 'a' to the horizontal and with an initial speed 's', will have an initial velocity given by:
vx := s * cos(a);//velocity x equals the speed multiply by the cosine of angle a.
vy := s * sin(a);//velocity y equals the speed multiply by the sine of angle a.
Here are the code.
Model:
/** Cannon specifies the expected behaviour of a cannon*/
public class Cannon{
public static final int TICK = 60;
private int velocity = 0;
private static final double gravity = .098f;
private double angle = 0;
// distances & positions are meausred in pixels
private int x_pos; // ball's center x-position
private int y_pos; // ball's center y-position
// speed is measured in pixels per `tick'
private int x_velocity; // horizonal speed; positive is to the right
private int y_velocity; // vertical speed; positive is downwards
public Cannon() {
velocity = 3;
angle = 60;
angle = radians(angle);
x_pos = 0;
y_pos = 385;
/** shoot fires a shot from the cannon*/
public void shoot(){
move();
/**reload reloads the cannon with more shorts*/
public void reload() {
/** changeAngle changes the angle of the canon
* @params value - the amount to add or subtract from the current angle value*/
public void changeAngle(double value) {
angle = (double)value;
angle = radians(angle);
/** getAngle returns the current angle value of the cannon*/
public double getAngle() {
return angle;
/** changeVelocity changes the speed at which a cannon ball that is to be fire will travel at
* @params value - the new speed at which the user wants a cannon ball to travel at.*/
public void changeVelocityX(int value){
x_velocity = x_velocity * (int)Math.cos(value);
public void changeVelocityY(int value){
y_velocity = y_velocity * (int)Math.sin(value);
/** getVelocity returns the current velocity value of the cannon*/
public int getVelocityX() {
return x_velocity;
public int getVelocityY() {
return y_velocity;
/** getGravity returns the current gravity value of the cannon*/
public double getGravity() {
return gravity;
public int xPosition(){
return x_pos;
public int yPosition(){
return y_pos;
public void move(){
double dx = getVelocityX() * Math.cos(getAngle());
double dy = getVelocityY() * Math.sin(getAngle());
x_pos+=dx;
y_pos-=dy;
double radians (double angle){
return ((Math.PI * angle) / 180.0);
View:
import java.awt.*;
import javax.swing.*;
/** CannonView displays a cannon being fired.*/
public class CannonView extends JPanel{
/** DISPLAY_SIZE specifies the overall display area of the cannon and the bucket.*/
public static final int DISPLAY_AREA_SIZE = 600;
public RotatablePolygon rectangle;
public RotatablePolygon triangle;
public Cannon cannon;
public CannonView(Cannon c) {
this.setPreferredSize(new Dimension(600,450));
this.setBackground(Color.black);
cannon = c;
int xRectangle[] = {0,0,40,40,0};
int yRectangle[] = {400,300,300,400,400};
int xTriangle[] = {0,20,40,0};
int yTriangle[] = {300,280,300,300};
rectangle = new RotatablePolygon (xRectangle, yRectangle, 5,20,350);
// rectangle.setPosition (100, 100);
// triangle = new RotatablePolygon (xTriangle, yTriangle, 4,0,290);
triangle = new RotatablePolygon (xTriangle, yTriangle, 4,20,350);
//triangle.setPosition (100, 100);
JFrame frame = new JFrame();
frame.getContentPane().add(this);
frame.pack();
frame.setVisible(true);
frame.setTitle("Width = " + frame.getWidth() + " , Height = " + frame.getHeight());
/** drawBucket draws a bucket/target for which a moving cannon ball should hit.
* @param g - the graphics pen for which the drawing should occur.*/
public void drawBucket(Graphics g) {
g.setColor(Color.red);
int xvalues[] = {495, 519, 575, 595, 495};
int yvalues[] = {340, 400, 400, 340, 340};
Polygon poly1 = new Polygon (xvalues, yvalues, 5);
g.fillPolygon(poly1);
g.setColor(Color.white);
g.fillOval(495, 328, 100, 24);
Graphics2D g2d = (Graphics2D)g;
g2d.setStroke(new BasicStroke(2));
g.setColor(Color.red);
g.drawOval(495, 328, 100, 24);
g.drawOval(495,311,100,54);
/** drawCannon draws a cannon
* @param g - the graphics pen that will be used to draw the cannon.*/
public void drawCannon(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
g.setColor(Color.red);
g2.fill(rectangle);
g.setColor(Color.orange);
g2.fill(triangle);
g.setColor(Color.blue);
g.fillOval(95, 340, 60, 60);
g.setColor(Color.magenta);
for (int i = 0; i < 6; i++){
g.fillArc(95, 340, 60, 60, i* 60, 30);
g.setColor(Color.black);
g.fillOval(117, 362, 16, 16);
/** drawCannonShots will draw the actual number of shots already used by the cannon
* @param g - the graphics pen that will be used to draw the shots of the cannon.*/
public void drawCannonShots(Graphics g) {
g.setColor(Color.orange);
g.fillOval(cannon.xPosition(),cannon.yPosition(),16,16);
/** drawTrail will draw a trail of smoke to indicate where a cannon ball has passed
* @param g - the graphics pen used to draw the trail.*/
public void drawTrail(Graphics g){}
/**drawGround draws the ground for which the cannon sits*/
public void drawGround(Graphics g) {
g.setColor(Color.green.brighter());
g.fillRect(0,400,600,50);
/** drawMovingCannonBall draw a cannon ball moving at a certain speed (velocity),
* with a certain amount of gravitational acting upon it, at a certain angle.
* @params g - the graphics pen used to draw the moving cannon ball.
* @params gravity - the value of gravity.
* @params velocity - the speed at which the ball is travelling.
* @params angle - the angle at which the ball was shot from.*/
public void drawMovingCannonBall(Graphics g, double gravity, double velocity, double angle){}
/** paintComponent paints the cannon,bucket
* @param g - graphics pen.*/
public void paintComponent(Graphics g) {
super.paintComponent(g);
drawGround(g);
drawBucket(g);
drawCannon(g);
drawCannonShots(g);
Controller
/** CannonController controls the interaction between the user and a cannon*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class CannonController extends JFrame{
public JMenuBar jMenuBar2;
public JMenu jMenu2;
public JMenuItem jMenuItem1;
public JMenu jMenu3;
public JMenuItem jMenuItem2;
public JLabel angleLabel, velocityLabel;
public JTextField angleTextField, velocityTextField;
public JButton fireButton, reloadButton;
public JSlider angleSlider, velocitySlider;
private CannonView view;
private Cannon cannon;
int oldValue, newValue;
public CannonController(Cannon acannon) {
cannon = acannon;
view = new CannonView(cannon);
loadControls();
angleTextField.setText(String.valueOf(angleSlider.getValue()));
oldValue = angleSlider.getValue();
newValue = oldValue + 1;
velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
this.setSize(328,308);
this.setLocation(view.getWidth()-this.getWidth(),0);
/** loadControl loads all of the GUI controls that a
* user of the cannon animation will use to interact with the program*/
public void loadControls() {
jMenuBar2 = new JMenuBar();
jMenu2 = new JMenu();
jMenuItem1 = new JMenuItem();
jMenu3 = new JMenu();
jMenuItem2 = new JMenuItem();
angleLabel = new JLabel();
velocityLabel = new JLabel();
angleTextField = new JTextField();
velocityTextField = new JTextField();
fireButton = new JButton();
reloadButton = new JButton();
angleSlider = new JSlider();
velocitySlider = new JSlider();
jMenuBar2.setBorderPainted(false);
jMenu2.setModel(jMenu2.getModel());
jMenu2.setText("File");
jMenuItem1.setText("Exit");
jMenuItem1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
jMenu2.add(jMenuItem1);
jMenuBar2.add(jMenu2);
jMenu3.setText("Help");
jMenuItem2.setText("About this Program");
jMenuItem2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jMenuItem2ActionPerformed(evt);
jMenu3.add(jMenuItem2);
jMenuBar2.add(jMenu3);
getContentPane().setLayout(null);
setTitle("Cannon Controller Form");
setResizable(false);
setMenuBar(getMenuBar());
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent evt) {
exitForm(evt);
angleLabel.setText("Angle:");
getContentPane().add(angleLabel);
angleLabel.setLocation(10, 20);
angleLabel.setSize(angleLabel.getPreferredSize());
velocityLabel.setText("Velocity:");
getContentPane().add(velocityLabel);
velocityLabel.setLocation(10, 80);
velocityLabel.setSize(velocityLabel.getPreferredSize());
angleTextField.setToolTipText("Only numeric values are allow");
getContentPane().add(angleTextField);
angleTextField.setBounds(280, 20, 30, 20);
velocityTextField.setToolTipText("Only numeric values are allow");
getContentPane().add(velocityTextField);
velocityTextField.setBounds(280, 80, 30, 20);
fireButton.setToolTipText("Click to fire a shot");
fireButton.setText("Fire");
fireButton.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent evt) {
fireButtonMouseClicked(evt);
getContentPane().add(fireButton);
fireButton.setBounds(60, 160, 80, 30);
reloadButton.setToolTipText("Click to reload cannon");
reloadButton.setText("Reload");
reloadButton.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent evt) {
reloadButtonMouseClicked(evt);
getContentPane().add(reloadButton);
reloadButton.setBounds(150, 160, 80, 30);
angleSlider.setMinorTickSpacing(30);
angleSlider.setPaintLabels(true);
angleSlider.setPaintTicks(true);
angleSlider.setMinimum(0);
angleSlider.setMajorTickSpacing(60);
angleSlider.setToolTipText("Change the cannon angle");
angleSlider.setMaximum(360);
angleSlider.setValue(0);
angleSlider.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent evt) {
angleSliderStateChanged(evt);
getContentPane().add(angleSlider);
angleSlider.setBounds(60, 20, 210, 40);
velocitySlider.setMinorTickSpacing(5);
velocitySlider.setPaintLabels(true);
velocitySlider.setPaintTicks(true);
velocitySlider.setMinimum(1);
velocitySlider.setMajorTickSpacing(10);
velocitySlider.setToolTipText("Change the speed of the cannon ball");
velocitySlider.setMaximum(28);
velocitySlider.setValue(3);
velocitySlider.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent evt) {
velocitySliderStateChanged(evt);
getContentPane().add(velocitySlider);
velocitySlider.setBounds(60, 80, 210, 50);
setJMenuBar(jMenuBar2);
pack();
private void reloadButtonMouseClicked(MouseEvent evt) {
reloadButtonClick();
private void fireButtonMouseClicked(MouseEvent evt) {
fireButtonClick();
/** firstButtonClick is the event handler that sends a message
* to the cannon class to invokes the cannon's fire method*/
public void fireButtonClick() {
// JOptionPane.showMessageDialog(null,"You click Fire");
cannon.shoot();
view.repaint();
/** reloadButtonClick is the event handler that sends a message
* to the cannon class to invokes the cannon's reload method*/
public void reloadButtonClick() {
JOptionPane.showMessageDialog(null,"reload");
private void angleSliderStateChanged(ChangeEvent evt) {
angleTextField.setText(String.valueOf(angleSlider.getValue()));
view.rectangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
view.triangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
cannon.changeAngle(angleSlider.getValue());
view.repaint();
private void velocitySliderStateChanged(ChangeEvent evt) {
velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
cannon.changeVelocityX(velocitySlider.getValue());
private void gravitySliderStateChanged(ChangeEvent evt) {
private void jMenuItem1ActionPerformed(ActionEvent evt) {
System.exit (0);
private void jMenuItem2ActionPerformed(ActionEvent evt) {
String message = "Cannon Animation\n"+
"Based on the Logic of Projectiles";
JOptionPane.showMessageDialog(null,message,"About this program",JOptionPane.PLAIN_MESSAGE);
/** Exit the Application */
private void exitForm(WindowEvent evt) {
System.exit (0);
/** Pause execution for t milliseconds. */
private void delay (int t) {
try {
Thread.sleep (t);
} catch (InterruptedException e) {}
public static void main(String [] args){
Cannon cn = new Cannon();
CannonController control = new CannonController(cn);
control.setTitle("Test");
control.setVisible(true);
if the cannon ball land in the bucket it should stop and the animation should indicate a 'hit' in some way. maybe by displaying a message.
if the cannonball hits the outside of the bucket it should bounce off.
Extra Notes.
1) The acceleration due to gravity is 9.8m/s to the (power of (2) eg s2.
2) The distance travelled in time t by a body with initial velocity v under constant acceleration a is:
v * t + a * t.pow(2) div 2;
The velocity at the end of time t will be v + a * t.
Distance is measure in pixels rather than meter so for simplicity we use 1 pixel per meter
When i pressed the fire button nothings happens. I'm going crazy. Please please help!

Here is the interface specification for the RotatablePolygon class. I do not have the actual .java source.
Thanks
Class RotatablePolygon
java.lang.Object
|
--java.awt.geom.Area
|
--RotatablePolygon
All Implemented Interfaces:
java.lang.Cloneable, java.awt.Shape
public class RotatablePolygon
extends java.awt.geom.Area
Polygons which can be rotated around an `anchor' point and also translated (moved in the x and y directions).
Constructor Summary
RotatablePolygon(int[] xs, int[] ys, int n, double x, double y)
Create a new RotatablePolyogon with given vertices and anchor point (x,y).
Method Summary
double getAngle()
The current angle of rotation.
double getXanchor()
x-coordinate of the anchor point.
double getYanchor()
y-coordinate of the anchor point.
void rotate(double da)
Rotate the polygon from its current position by angle da (in radians) around the anchor.
void rotateDegrees(double da)
Rotate the polygon from its current position by angle da (in degrees) around the anchor.
void setAngle(double a)
Set the angle of rotation of the polygon to be angle a (in radians) around the anchor.
void setAngleDegrees(double a)
Set the angle of rotation of the polygon to be angle a (in degrees) around the anchor.
void setPosition(double x, double y)
Shift the polygon's position to put its anchor point at (x,y).
void translate(double dx, double dy)
Shift the polygon's position and anchor point by given amounts.
Methods inherited from class java.awt.geom.Area
add, clone, contains, contains, contains, contains, createTransformedArea, equals, exclusiveOr, getBounds, getBounds2D, getPathIterator, getPathIterator, intersect, intersects, intersects, isEmpty, isPolygonal, isRectangular, isSingular, reset, subtract, transform
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
RotatablePolygon
public RotatablePolygon(int[] xs,
int[] ys,
int n,
double x,
double y)
Create a new RotatablePolyogon with given vertices and anchor point (x,y).
REQUIRE: xs.length >= n && ys.length >= n
Parameters:
xs - x-coordinates of vertices
ys - y-coordinates of vertices
n - number of vertices
x - x-coordinate of the rotation anchor
y - y-coordinate of the rotation anchor
Method Detail
setPosition
public void setPosition(double x,
double y)
Shift the polygon's position to put its anchor point at (x,y).
Parameters:
x - new x-coordinate for anchor point
y - new y-coordinate for anchor point
translate
public void translate(double dx,
double dy)
Shift the polygon's position and anchor point by given amounts.
Parameters:
dx - amount to shift by in x-direction
dy - amount to shift by in y-direction
setAngle
public void setAngle(double a)
Set the angle of rotation of the polygon to be angle a (in radians) around the anchor.
Parameters:
a - angle to rotate to, in radians
setAngleDegrees
public void setAngleDegrees(double a)
Set the angle of rotation of the polygon to be angle a (in degrees) around the anchor.
Parameters:
a - angle to rotate to, in degrees
rotate
public void rotate(double da)
Rotate the polygon from its current position by angle da (in radians) around the anchor.
Parameters:
da - angle to rotate by, in radians
rotateDegrees
public void rotateDegrees(double da)
Rotate the polygon from its current position by angle da (in degrees) around the anchor.
Parameters:
da - angle to rotate by, in degrees
getAngle
public double getAngle()
The current angle of rotation.
getXanchor
public double getXanchor()
x-coordinate of the anchor point.
getYanchor
public double getYanchor()
y-coordinate of the anchor point.

Similar Messages

  • Please Help with Physics Project Here are the codings

    I've got three(3) classes a Model, a view, and a controller.
    This is a project about projectiles.it is an animation of a cannonball being fired from a cannon and travelling under the effect of gravity.A cannon fired at angle 'a' to the horizontal and with an initial speed 's', will have an initial velocity given by:
    vx := s * cos(a);//velocity x equals the speed multiply by the cosine of angle a.
    vy := s * sin(a);//velocity y equals the speed multiply by the sine of angle a.
    Here are the code.
    Model:
    /** Cannon specifies the expected behaviour of a cannon*/
    public class Cannon{
    public static final int TICK = 60;
    private int velocity = 0;
    private static final double gravity = .098f;
    private double angle = 0;
    // distances & positions are meausred in pixels
    private int x_pos; // ball's center x-position
    private int y_pos; // ball's center y-position
    // speed is measured in pixels per `tick'
    private int x_velocity; // horizonal speed; positive is to the right
    private int y_velocity; // vertical speed; positive is downwards
    public Cannon() {
    velocity = 3;
    angle = 60;
    angle = radians(angle);
    x_pos = 0;
    y_pos = 385;
    /** shoot fires a shot from the cannon*/
    public void shoot(){
    move();
    /**reload reloads the cannon with more shorts*/
    public void reload() {
    /** changeAngle changes the angle of the canon
    * @params value - the amount to add or subtract from the current angle value*/
    public void changeAngle(double value) {
    angle = (double)value;
    angle = radians(angle);
    /** getAngle returns the current angle value of the cannon*/
    public double getAngle() {
    return angle;
    /** changeVelocity changes the speed at which a cannon ball that is to be fire will travel at
    * @params value - the new speed at which the user wants a cannon ball to travel at.*/
    public void changeVelocityX(int value){
    x_velocity = x_velocity * (int)Math.cos(value);
    public void changeVelocityY(int value){
    y_velocity = y_velocity * (int)Math.sin(value);
    /** getVelocity returns the current velocity value of the cannon*/
    public int getVelocityX() {
    return x_velocity;
    public int getVelocityY() {
    return y_velocity;
    /** getGravity returns the current gravity value of the cannon*/
    public double getGravity() {
    return gravity;
    public int xPosition(){
    return x_pos;
    public int yPosition(){
    return y_pos;
    public void move(){
    double dx = getVelocityX() * Math.cos(getAngle());
    double dy = getVelocityY() * Math.sin(getAngle());
    x_pos+=dx;
    y_pos-=dy;
    double radians (double angle){
    return ((Math.PI * angle) / 180.0);
    View:
    import java.awt.*;
    import javax.swing.*;
    /** CannonView displays a cannon being fired.*/
    public class CannonView extends JPanel{
    /** DISPLAY_SIZE specifies the overall display area of the cannon and the bucket.*/
    public static final int DISPLAY_AREA_SIZE = 600;
    public RotatablePolygon rectangle;
    public RotatablePolygon triangle;
    public Cannon cannon;
    public CannonView(Cannon c) {
    this.setPreferredSize(new Dimension(600,450));
    this.setBackground(Color.black);
    cannon = c;
    int xRectangle[] = {0,0,40,40,0};
    int yRectangle[] = {400,300,300,400,400};
    int xTriangle[] = {0,20,40,0};
    int yTriangle[] = {300,280,300,300};
    rectangle = new RotatablePolygon (xRectangle, yRectangle, 5,20,350);
    // rectangle.setPosition (100, 100);
    // triangle = new RotatablePolygon (xTriangle, yTriangle, 4,0,290);
    triangle = new RotatablePolygon (xTriangle, yTriangle, 4,20,350);
    //triangle.setPosition (100, 100);
    JFrame frame = new JFrame();
    frame.getContentPane().add(this);
    frame.pack();
    frame.setVisible(true);
    frame.setTitle("Width = " + frame.getWidth() + " , Height = " + frame.getHeight());
    /** drawBucket draws a bucket/target for which a moving cannon ball should hit.
    * @param g - the graphics pen for which the drawing should occur.*/
    public void drawBucket(Graphics g) {
    g.setColor(Color.red);
    int xvalues[] = {495, 519, 575, 595, 495};
    int yvalues[] = {340, 400, 400, 340, 340};
    Polygon poly1 = new Polygon (xvalues, yvalues, 5);
    g.fillPolygon(poly1);
    g.setColor(Color.white);
    g.fillOval(495, 328, 100, 24);
    Graphics2D g2d = (Graphics2D)g;
    g2d.setStroke(new BasicStroke(2));
    g.setColor(Color.red);
    g.drawOval(495, 328, 100, 24);
    g.drawOval(495,311,100,54);
    /** drawCannon draws a cannon
    * @param g - the graphics pen that will be used to draw the cannon.*/
    public void drawCannon(Graphics g) {
    Graphics2D g2 = (Graphics2D)g;
    g.setColor(Color.red);
    g2.fill(rectangle);
    g.setColor(Color.orange);
    g2.fill(triangle);
    g.setColor(Color.blue);
    g.fillOval(95, 340, 60, 60);
    g.setColor(Color.magenta);
    for (int i = 0; i < 6; i++){
    g.fillArc(95, 340, 60, 60, i* 60, 30);
    g.setColor(Color.black);
    g.fillOval(117, 362, 16, 16);
    /** drawCannonShots will draw the actual number of shots already used by the cannon
    * @param g - the graphics pen that will be used to draw the shots of the cannon.*/
    public void drawCannonShots(Graphics g) {
    g.setColor(Color.orange);
    g.fillOval(cannon.xPosition(),cannon.yPosition(),16,16);
    /** drawTrail will draw a trail of smoke to indicate where a cannon ball has passed
    * @param g - the graphics pen used to draw the trail.*/
    public void drawTrail(Graphics g){}
    /**drawGround draws the ground for which the cannon sits*/
    public void drawGround(Graphics g) {
    g.setColor(Color.green.brighter());
    g.fillRect(0,400,600,50);
    /** drawMovingCannonBall draw a cannon ball moving at a certain speed (velocity),
    * with a certain amount of gravitational acting upon it, at a certain angle.
    * @params g - the graphics pen used to draw the moving cannon ball.
    * @params gravity - the value of gravity.
    * @params velocity - the speed at which the ball is travelling.
    * @params angle - the angle at which the ball was shot from.*/
    public void drawMovingCannonBall(Graphics g, double gravity, double velocity, double angle){}
    /** paintComponent paints the cannon,bucket
    * @param g - graphics pen.*/
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    drawGround(g);
    drawBucket(g);
    drawCannon(g);
    drawCannonShots(g);
    Controller
    /** CannonController controls the interaction between the user and a cannon*/
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class CannonController extends JFrame{
    public JMenuBar jMenuBar2;
    public JMenu jMenu2;
    public JMenuItem jMenuItem1;
    public JMenu jMenu3;
    public JMenuItem jMenuItem2;
    public JLabel angleLabel, velocityLabel;
    public JTextField angleTextField, velocityTextField;
    public JButton fireButton, reloadButton;
    public JSlider angleSlider, velocitySlider;
    private CannonView view;
    private Cannon cannon;
    int oldValue, newValue;
    public CannonController(Cannon acannon) {
    cannon = acannon;
    view = new CannonView(cannon);
    loadControls();
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    oldValue = angleSlider.getValue();
    newValue = oldValue + 1;
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    this.setSize(328,308);
    this.setLocation(view.getWidth()-this.getWidth(),0);
    /** loadControl loads all of the GUI controls that a
    * user of the cannon animation will use to interact with the program*/
    public void loadControls() {
    jMenuBar2 = new JMenuBar();
    jMenu2 = new JMenu();
    jMenuItem1 = new JMenuItem();
    jMenu3 = new JMenu();
    jMenuItem2 = new JMenuItem();
    angleLabel = new JLabel();
    velocityLabel = new JLabel();
    angleTextField = new JTextField();
    velocityTextField = new JTextField();
    fireButton = new JButton();
    reloadButton = new JButton();
    angleSlider = new JSlider();
    velocitySlider = new JSlider();
    jMenuBar2.setBorderPainted(false);
    jMenu2.setModel(jMenu2.getModel());
    jMenu2.setText("File");
    jMenuItem1.setText("Exit");
    jMenuItem1.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem1ActionPerformed(evt);
    jMenu2.add(jMenuItem1);
    jMenuBar2.add(jMenu2);
    jMenu3.setText("Help");
    jMenuItem2.setText("About this Program");
    jMenuItem2.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem2ActionPerformed(evt);
    jMenu3.add(jMenuItem2);
    jMenuBar2.add(jMenu3);
    getContentPane().setLayout(null);
    setTitle("Cannon Controller Form");
    setResizable(false);
    setMenuBar(getMenuBar());
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    exitForm(evt);
    angleLabel.setText("Angle:");
    getContentPane().add(angleLabel);
    angleLabel.setLocation(10, 20);
    angleLabel.setSize(angleLabel.getPreferredSize());
    velocityLabel.setText("Velocity:");
    getContentPane().add(velocityLabel);
    velocityLabel.setLocation(10, 80);
    velocityLabel.setSize(velocityLabel.getPreferredSize());
    angleTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(angleTextField);
    angleTextField.setBounds(280, 20, 30, 20);
    velocityTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(velocityTextField);
    velocityTextField.setBounds(280, 80, 30, 20);
    fireButton.setToolTipText("Click to fire a shot");
    fireButton.setText("Fire");
    fireButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    fireButtonMouseClicked(evt);
    getContentPane().add(fireButton);
    fireButton.setBounds(60, 160, 80, 30);
    reloadButton.setToolTipText("Click to reload cannon");
    reloadButton.setText("Reload");
    reloadButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    reloadButtonMouseClicked(evt);
    getContentPane().add(reloadButton);
    reloadButton.setBounds(150, 160, 80, 30);
    angleSlider.setMinorTickSpacing(30);
    angleSlider.setPaintLabels(true);
    angleSlider.setPaintTicks(true);
    angleSlider.setMinimum(0);
    angleSlider.setMajorTickSpacing(60);
    angleSlider.setToolTipText("Change the cannon angle");
    angleSlider.setMaximum(360);
    angleSlider.setValue(0);
    angleSlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    angleSliderStateChanged(evt);
    getContentPane().add(angleSlider);
    angleSlider.setBounds(60, 20, 210, 40);
    velocitySlider.setMinorTickSpacing(5);
    velocitySlider.setPaintLabels(true);
    velocitySlider.setPaintTicks(true);
    velocitySlider.setMinimum(1);
    velocitySlider.setMajorTickSpacing(10);
    velocitySlider.setToolTipText("Change the speed of the cannon ball");
    velocitySlider.setMaximum(28);
    velocitySlider.setValue(3);
    velocitySlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    velocitySliderStateChanged(evt);
    getContentPane().add(velocitySlider);
    velocitySlider.setBounds(60, 80, 210, 50);
    setJMenuBar(jMenuBar2);
    pack();
    private void reloadButtonMouseClicked(MouseEvent evt) {
    reloadButtonClick();
    private void fireButtonMouseClicked(MouseEvent evt) {
    fireButtonClick();
    /** firstButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's fire method*/
    public void fireButtonClick() {
    // JOptionPane.showMessageDialog(null,"You click Fire");
    cannon.shoot();
    view.repaint();
    /** reloadButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's reload method*/
    public void reloadButtonClick() {
    JOptionPane.showMessageDialog(null,"reload");
    private void angleSliderStateChanged(ChangeEvent evt) {
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    view.rectangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    view.triangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    cannon.changeAngle(angleSlider.getValue());
    view.repaint();
    private void velocitySliderStateChanged(ChangeEvent evt) {
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    cannon.changeVelocityX(velocitySlider.getValue());
    private void gravitySliderStateChanged(ChangeEvent evt) {
    private void jMenuItem1ActionPerformed(ActionEvent evt) {
    System.exit (0);
    private void jMenuItem2ActionPerformed(ActionEvent evt) {
    String message = "Cannon Animation\n"+
    "Based on the Logic of Projectiles";
    JOptionPane.showMessageDialog(null,message,"About this program",JOptionPane.PLAIN_MESSAGE);
    /** Exit the Application */
    private void exitForm(WindowEvent evt) {
    System.exit (0);
    /** Pause execution for t milliseconds. */
    private void delay (int t) {
    try {
    Thread.sleep (t);
    } catch (InterruptedException e) {}
    public static void main(String [] args){
    Cannon cn = new Cannon();
    CannonController control = new CannonController(cn);
    control.setTitle("Test");
    control.setVisible(true);
    if the cannon ball land in the bucket it should stop and the animation should indicate a 'hit' in some way. maybe by displaying a message.
    if the cannonball hits the outside of the bucket it should bounce off.
    Extra Notes.
    1) The acceleration due to gravity is 9.8m/s to the (power of (2) eg s2.
    2) The distance travelled in time t by a body with initial velocity v under constant acceleration a is:
    v * t + a * t.pow(2) div 2;
    The velocity at the end of time t will be v + a * t.
    Distance is measure in pixels rather than meter so for simplicity we use 1 pixel per meter
    When i pressed the fire button nothings happens. I'm going crazy. Please please help!

    Hi,
    U put something on forum and keeping silence.If it is not necessary dont put in forum.I moved your cannon ball.If u want continous movement I need some more information.
    Johnson

  • Please, need help with a query

    Hi !
    Please need help with this query:
    Needs to show (in cases of more than 1 loan offer) the latest create_date one time.
    Meaning, In cases the USER_ID, LOAN_ID, CREATE_DATE are the same need to show only the latest, Thanks!!!
    select distinct a.id,
    create_date,
    a.loanid,
    a.rate,
    a.pays,
    a.gracetime,
    a.emailtosend,
    d.first_name,
    d.last_name,
    a.user_id
    from CLAL_LOANCALC_DET a,
    loan_Calculator b,
    bv_user_profile c,
    bv_mr_user_profile d
    where b.loanid = a.loanid
    and c.NET_USER_NO = a.resp_id
    and d.user_id = c.user_id
    and a.is_partner is null
    and a.create_date between
    TO_DATE('6/3/2008 01:00:00', 'DD/MM/YY HH24:MI:SS') and
    TO_DATE('27/3/2008 23:59:00', 'DD/MM/YY HH24:MI:SS')
    order by a.create_date

    Take a look on the syntax :
    max(...) keep (dense_rank last order by ...)
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions056.htm#i1000901
    Nicolas.

  • Please need help with this query

    Hi !
    Please need help with this query:
    Needs to show (in cases of more than 1 loan offer) the latest create_date one time.
    Meaning, In cases the USER_ID, LOAN_ID, CREATE_DATE are the same need to show only the latest, Thanks!!!
    select distinct a.id,
    create_date,
    a.loanid,
    a.rate,
    a.pays,
    a.gracetime,
    a.emailtosend,
    d.first_name,
    d.last_name,
    a.user_id
    from CLAL_LOANCALC_DET a,
    loan_Calculator b,
    bv_user_profile c,
    bv_mr_user_profile d
    where b.loanid = a.loanid
    and c.NET_USER_NO = a.resp_id
    and d.user_id = c.user_id
    and a.is_partner is null
    and a.create_date between
    TO_DATE('6/3/2008 01:00:00', 'DD/MM/YY HH24:MI:SS') and
    TO_DATE('27/3/2008 23:59:00', 'DD/MM/YY HH24:MI:SS')
    order by a.create_date

    Perhaps something like this...
    select id, create_date, loanid, rate, pays, gracetime, emailtosend, first_name, last_name, user_id
    from (
          select distinct a.id,
                          create_date,
                          a.loanid,
                          a.rate,
                          a.pays,
                          a.gracetime,
                          a.emailtosend,
                          d.first_name,
                          d.last_name,
                          a.user_id,
                          max(create_date) over (partition by a.user_id, a.loadid) as max_create_date
          from CLAL_LOANCALC_DET a,
               loan_Calculator b,
               bv_user_profile c,
               bv_mr_user_profile d
          where b.loanid = a.loanid
          and   c.NET_USER_NO = a.resp_id
          and   d.user_id = c.user_id
          and   a.is_partner is null
          and   a.create_date between
                TO_DATE('6/3/2008 01:00:00', 'DD/MM/YY HH24:MI:SS') and
                TO_DATE('27/3/2008 23:59:00', 'DD/MM/YY HH24:MI:SS')
    where create_date = max_create_date
    order by create_date

  • Why is "erase junk mail" de-highlighted in the drop down menus.  I'm not able to delete my junk mail box without doing each one individually.  Simple, but please someone help with an answer.  Thanks.

    why is "erase junk mail" de-highlighted in the drop down menus.  I'm not able to delete my junk mail box without doing each one individually.  Simple, but please someone help with an answer.  Thanks.

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Need help with calculator project for an assignment...

    Hi all, I please need help with my calculator project that I have to do for an assignment.
    Here is the project's specifications that I need to do"
    """Create a console calculator applicaion that:
    * Takes one command line argument: your name and surname. When the
    program starts, display the date and time with a welcome message for the
    user.
    * Display all the available options to the user. Your calculator must include
    the arithmetic operations as well as at least five scientific operations of the
    Math class.
    -Your program must also have the ability to round a number and
    truncate it.
    -When you multiply by 2, you should not use the '*' operator to perform the
    operation.
    -Your program must also be able to reverse the sign of a number.
    * Include sufficient error checking in your program to ensure that the user
    only enters valid input. Make use of the String; Character, and other
    wrapper classes to help you.
    * Your program must be able to do conversions between decimal, octal and
    hex numbers.
    * Make use of a menu. You should give the user the option to end the
    program when entering a certain option.
    * When the program exits, display a message for the user, stating the
    current time, and calculate and display how long the user used your
    program.
    * Make use of helper classes where possible.
    * Use the SDK to run your program."""
    When the program starts, it asks the user for his/her name and surname. I got the program to ask the user again and again for his/her name and surname
    when he/she doesn't insert anything or just press 'enter', but if the user enters a number for the name and surname part, the program continues.
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??
    Here is the programs code that I've written so far:
    {code}
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Project {
         private static String nameSurname = "";     
         private static String num1 = null;
         private static String num2 = null;
         private static String choice1 = null;
         private static double answer = 0;
         private static String more;
         public double Add() {
              answer = (Double.parseDouble(num1) + Double.parseDouble(num2));
              return answer;
         public double Subtract() {
              answer = (Double.parseDouble(num1) - Double.parseDouble(num2));
              return answer;
         public double Multiply() {
              answer = (Double.parseDouble(num1) * Double.parseDouble(num2));
              return answer;
         public double Divide() {
              answer = (Double.parseDouble(num1) / Double.parseDouble(num2));
              return answer;
         public double Modulus() {
              answer = (Double.parseDouble(num1) % Double.parseDouble(num2));
              return answer;
         public double maximumValue() {
              answer = (Math.max(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double minimumValue() {
              answer = (Math.min(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double absoluteNumber1() {
              answer = (Math.abs(Double.parseDouble(num1)));
              return answer;
         public double absoluteNumber2() {
              answer = (Math.abs(Double.parseDouble(num2)));
              return answer;
         public double Squareroot1() {
              answer = (Math.sqrt(Double.parseDouble(num1)));
              return answer;
         public double Squareroot2() {
              answer = (Math.sqrt(Double.parseDouble(num2)));
              return answer;
         public static String octalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
    String octal1 = Integer.toOctalString(iNum1);
    return octal1;
         public static String octalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String octal2 = Integer.toOctalString(iNum2);
              return octal2;
         public static String hexadecimalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
              String hex1 = Integer.toHexString(iNum1);
              return hex1;
         public static String hexadecimalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String hex2 = Integer.toHexString(iNum2);
              return hex2;
         public double Round1() {
              answer = Math.round(Double.parseDouble(num1));
              return answer;
         public double Round2() {
              answer = Math.round(Double.parseDouble(num2));
              return answer;
              SimpleDateFormat format1 = new SimpleDateFormat("EEEE, dd MMMM yyyy");
         Date now = new Date();
         SimpleDateFormat format2 = new SimpleDateFormat("hh:mm a");
         static Date timeIn = new Date();
         public static long programRuntime() {
              Date timeInD = timeIn;
              long timeOutD = System.currentTimeMillis();
              long msec = timeOutD - timeInD.getTime();
              float timeHours = msec / 1000;
                   return (long) timeHours;
         DecimalFormat decimals = new DecimalFormat("#0.00");
         public String insertNameAndSurname() throws IOException{
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        while (nameSurname == null || nameSurname.length() == 0) {
                             for (int i = 0; i < nameSurname.length(); i++) {
                             if ((nameSurname.charAt(i) > 'a') && (nameSurname.charAt(i) < 'Z')){
                                       inputCorrect = true;
                        else{
                        inputCorrect = false;
                        break;
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your name and surname: ");
                             nameSurname = inStream.readLine();
                             inputCorrect = true;
                        }catch (IOException ex) {
                             System.out.println("You did not enter your name and surname, " + nameSurname + " is not a name, please enter your name and surname :");
                             inputCorrect = false;
                        System.out.println("\nA warm welcome " + nameSurname + " ,todays date is: " + format1.format(now));
                        System.out.println("and the time is now exactly " + format2.format(timeIn) + ".");
                        return nameSurname;
              public String inputNumber1() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter a number you want to do a calculation with and hit <ENTER>: ");
                             num1 = br.readLine();
                             double number1 = Double.parseDouble(num1);
                             System.out.println("\nThe number you have entered is: " + number1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("\nYou did not enter a valid number: " + "\""+ num1 + "\" is not a number!!");
                             inputCorrect = false;
                        return num1;
         public String calculatorChoice() throws IOException {
              System.out.println("Please select an option of what you would like to do with this number from the menu below and hit <ENTER>: ");
              System.out.println("\n*********************************************");
              System.out.println("---------------------------------------------");
              System.out.println("Please select an option from the list below: ");
              System.out.println("---------------------------------------------");
              System.out.println("1 - Add");
              System.out.println("2 - Subtract");
              System.out.println("3 - Multiply");
              System.out.println("4 - Divide (remainder included)");
              System.out.println("5 - Maximum and minimum value of two numbers");
              System.out.println("6 - Squareroot");
              System.out.println("7 - Absolute value of numbers");
              System.out.println("8 - Octal and Hexadecimal equivalent of numbers");
              System.out.println("9 - Round numbers");
              System.out.println("0 - Exit program");
              System.out.println("**********************************************");
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your option and hit <ENTER>: ");
                             choice1 = inStream.readLine();
                             int c1 = Integer.parseInt(choice1);
                             System.out.println("\nYou have entered choice number: " + c1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid choice number: " + "\""+ choice1 + "\" is not in the list!!");
                             inputCorrect = false;
                        return choice1;
         public String inputNumber2() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br2 = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter another number you want to do the calculation with and hit <ENTER>: ");
                             num2 = br2.readLine();
                             double n2 = Double.parseDouble(num2);
                             System.out.println("\nThe second number you have entered is: " + n2);
                             System.out.println("\nYour numbers are: " + num1 + " and " + num2);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid number: " + "\""+ num2 + "\" is not a number!!");
                             inputCorrect = false;
                        return num2;
         public int Calculator() {
              int choice2 = (int) Double.parseDouble(choice1);
              switch (choice2) {
                        case 1 :
                             Add();
                             System.out.print("The answer of " + num1 + " + " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 2 :
                             Subtract();
                             System.out.print("The answer of " + num1 + " - " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 3 :
                             Multiply();
                             System.out.print("The answer of " + num1 + " * " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 4 :
                             Divide();
                             System.out.print("The answer of " + num1 + " / " + num2 + " is: " + decimals.format(answer));
                             Modulus();
                             System.out.print(" and the remainder is " + decimals.format(answer));
                             break;
                        case 5 :
                             maximumValue();
                             System.out.println("The maximum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             minimumValue();
                             System.out.println("The minimum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 6 :
                             Squareroot1();
                             System.out.println("The squareroot of value " + num1 + " is: " + decimals.format(answer));
                             Squareroot2();
                             System.out.println("The squareroot of value " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 7 :
                             absoluteNumber1();
                             System.out.println("The absolute number of " + num1 + " is: " + decimals.format(answer));
                             absoluteNumber2();
                             System.out.println("The absolute number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 8 :
                             octalEquivalent1();
                             System.out.println("The octal equivalent of " + num1 + " is: " + octalEquivalent1());
                             octalEquivalent2();
                             System.out.println("The octal equivalent of " + num2 + " is: " + octalEquivalent2());
                             hexadecimalEquivalent1();
                             System.out.println("\nThe hexadecimal equivalent of " + num1 + " is: " + hexadecimalEquivalent1());
                             hexadecimalEquivalent2();
                             System.out.println("The hexadecimal equivalent of " + num2 + " is: " + hexadecimalEquivalent2());
                             break;
                        case 9 :
                             Round1();
                             System.out.println("The rounded number of " + num1 + " is: " + decimals.format(answer));
                             Round2();
                             System.out.println("The rounded number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 0 :
                             if (choice2 == 0) {
                                  System.exit(1);
                             break;
                   return choice2;
              public String anotherCalculation() throws IOException {
                   boolean inputCorrect = false;
                   while (inputCorrect == false) {
                             try {                              
                                  BufferedReader br3 = new BufferedReader (new InputStreamReader(System.in));
                                  System.out.print("\nWould you like to do another calculation? Y/N ");
                                  more = br3.readLine();
                                  String s1 = "y";
                                  String s2 = "Y";
                                  if (more.equals(s1) || more.equals(s2)) {
                                       inputCorrect = true;
                                       while (inputCorrect = true){
                                            inputNumber1();
                                            System.out.println("");
                                            calculatorChoice();
                                            System.out.println("");
                                            inputNumber2();
                                            System.out.println("");
                                            Calculator();
                                            System.out.println("");
                                            anotherCalculation();
                                            System.out.println("");
                                            inputCorrect = true;
                                  } else {
                                       System.out.println("\n" + nameSurname + " thank you for using this program, you have used this program for: " + decimals.format(programRuntime()) + " seconds");
                                       System.out.println("the program will now exit, Goodbye.");
                                       System.exit(0);
                             } catch (IOException ex){
                                  System.out.println("You did not enter a valid answer: " + "\""+ more + "\" is not in the list!!");
                                  inputCorrect = false;
              return more;
         public static void main(String[] args) throws IOException {
              Project p1 = new Project();
              p1.insertNameAndSurname();
              System.out.println("");
              p1.inputNumber1();
              System.out.println("");
              p1.calculatorChoice();
              System.out.println("");
              p1.inputNumber2();
              System.out.println("");
              p1.Calculator();
                   System.out.println("");
                   p1.anotherCalculation();
                   System.out.println("");
    {code}
    *Can you please run my code for yourself and have a look at how this program is constructed*
    *and give me ANY feedback on how I can better this code(program) or if I've done anything wrong from your point of view.*
    Your help will be much appreciated.
    Thanks in advance

    Smirre wrote:
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??You cannot restrict the user. It is a sad fact in programming that the worst bug always sits in front of the Computer.
    What you could do is checking the input string for numbers. If it contains numbers, just reprompt for the Name.
    AND you might want to ask yourself why the heck a calculator needs to know the users Name.

  • Help with GUI project.

    I need help with JcomboBox when I select the Exit in the File box it will open
    //inner class
    class exitListener implements ActionListener {
    I have the part of the parts of statement but I don't know how to assign the Keystoke. here is that part of the code
    filemenu.setMnemonic(KeyEvent.VK_X);Here is my code...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class MyFrame extends JFrame {
         String[] file = { "New", "Open", "Exit" };//items for file
        String[] edit = { "Cut", "Copy", "Paste" };//items for edit
        JComboBox filemenu = new JComboBox();
        JComboBox editmenu = new JComboBox();
         public MyFrame(String title) {
              super(title);
              this.setSize(250, 250); //sets the size for the frame
              this.setLocation(200, 200);//location where frame is at
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // setup contents
              makeComponents();
              initComponents();
              buildGUI();
              // display
              this.setVisible(true);
         private void makeComponents() {
              JPanel pane = new JPanel();
    //          file menu section
              filemenu = new JComboBox();
            JLabel fileLabel = new JLabel();
            pane.add(fileLabel);
            for (int i = 0; i < file.length; i++)
                 filemenu.addItem(file);
    pane.add(filemenu);
    add(pane);
    setVisible(true);
    //edit menu section
    editmenu = new JComboBox();
    JLabel editLabel = new JLabel();
    pane.add(editLabel);
    for (int i = 0; i < edit.length; i++)
         editmenu.addItem(edit[i]);
    pane.add(editmenu);
    add(pane);
    setVisible(true);
         private void initComponents() {
              filemenu.addActionListener(new exitListener());
         //inner class
    class exitListener implements ActionListener {
    public void actionPerformed(ActionEvent arg0) {
    int x = JOptionPane.showOptionDialog(MyFrame.this, "Exit Program?",
    "Exit Request", JOptionPane.YES_NO_OPTION,
    JOptionPane.QUESTION_MESSAGE, null, null,
    JOptionPane.NO_OPTION);
    if (x == JOptionPane.YES_OPTION) {
    MyFrame.this.dispose();
         private void buildGUI() {
              Container cont = this.getContentPane();// set gui components into the frame
              this.setLayout(new FlowLayout(FlowLayout.LEFT));// Comp are added to the frame
              cont.add(filemenu);
              cont.add(editmenu);
         // / inner classes
    public class ButtonFrame {
         public static void main(String[] args) {
              MyFrame f1 = new MyFrame("This is my Project for GUI");
    Thanks
    SandyR.

    One way is to
    1) pass a reference of the Window object to the USDListener class, and set a local Window variable say call it window, to this reference.
    2) Give the Window class a public method that returns a String and allows you to get the text from USDField. Same to allow you to set text on the euroField.
    3) Give the Listener class a Converter object.

  • I need help with exporting project for the web

    Probably something i am doing wron g but here are the problems. When I use Quicktime Converter, if I try to convert to a Quicktime movie or an MPEG-4 nothing happens and i get a 'File error;File Unknown message' when i try to convert to an AVI File, it works, but even though I have already rendered the project, it shows up with little flashes of blue that say 'unrendered'. and finally, when I try to make it a w
    Windows Media File, it stops after 29 seconds. Any ideas?
    I have an iMac with dual core processor, and FCE HD 3.5.1. I have my video files on an external drive.
    iMac   Mac OS X (10.4.10)  

    perform a search using the term export for web and it should throw up some ideas.
    here's one for starters:
    http://discussions.apple.com/thread.jspa?messageID=2309121&#2309121
    If you're using flip4mac to convert to wmv, the trial stops at 30 seconds - you need at least wmvstudio to export to wmv:
    http://www.flip4mac.com/wmv.htm

  • HT203175 I have attempted to sync my new iPod touch 4th gen. with my current PC running Windows XP and everytime I attempt it I get the dreaded blue screen, here are the error codes- 0x0000007E; 0XC00000005; 0X00000000; 0XBA51B7C8; 0XBA51B4C4 any suggesti

    I have attempted to sync my new iPod touch 4th gen. with my current PC running Windows XP and everytime I attempt it I get the dreaded blue screen, here are the error codes- 0x0000007E; 0XC00000005; 0X00000000; 0XBA51B7C8; 0XBA51B4C4 any suggestions?

    In the course of your troubleshooting to date, have you worked through the following document?
    iPhone, iPad, or iPod touch: Windows displays a blue screen message or restarts when connecting your device

  • Can Anyone help with syncing my contacts are getting duplicated and there is a file from my computer and they are not the same it is driving me carazy can anyone help?

    Can Anyone help with syncing my contacts are getting duplicated and there is a file from my computer and they are not the same it is driving me carazy can anyone help?

    Are you in DSL? Do you know if your modem is bridged?
    "Sometimes your knight in shining armor is just a retard in tin foil.."-ARCHANGEL_06

  • HT5621 I am having trouble with my Apple ID and AppStore Here are the steps I have taken and the results: 1.     Changed my Apple ID with new email address. 2.     Changed my iCloud with above new email address. 3.     NOW - Apple ID appears correct in Ap

    I am having trouble with my Apple ID and AppStore
    Here are the steps I have taken and the results:
    Changed my Apple ID with new email address.
    Changed my iCloud with above new email address.
    NOW - Apple ID appears correct in AppStore Settings, iCloud and AppStore*
    If I scroll to bottom of screen in *App Store/Featured, I can see that the Apple ID is my new email.
    Upon “updating” Apple ID reflects OLD email.
    Deleted accounts, re-added accounts.
    Signed out and signed in with new UN/Email
    Issue remains the same.

    To migrate your data to a new iCloud account go to Settings>iCloud and turn off all synced data (contacts, calendars, etc.), when prompted choose to keep the data on your phone.  After everything is set to off, scroll to the bottom and tap Delete Account.  Next, create the new iCloud account on your phone and turn on syncing for contacts, calendars, etc again.  If prompted, choose Merge.  This will upload your data to the new iCloud account.

  • Er so i bougi bought something from game the game is Deer huntht some golds and app store took money from my visa but i didn't find any golds that i bought ! please any help or how can i use the gold or restore the money? thank you

    i bought something from game the game is Deer hunter i bought some golds and app store took money from my visa but i didn't find any golds that i bought ! please any help or how can i use the gold or restore the money? thank you

    If you've been charged but not received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com

  • I bought my mac book pro 4 years ago and it is really slow now. I have downloaded Etrecheck after reading some threads on here and here are the results

    I got my MacBook Pro 4 years ago and its getting really slow.
    After reading dome threads on this site i downloaded Etrecheck and here are the results.
    Any help would be greatly appreciated.
    EtreCheck version: 2.1.8 (121)
    Report generated 21 March 2015 9:41:28 PM AEDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 814
    Video Information: ℹ️
        NVIDIA GeForce GT 330M - VRAM: 256 MB
            Color LCD 1440 x 900
            spdisplays_display_connector
        Intel HD Graphics - VRAM: 288 MB
            spdisplays_display_connector
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: one day 2:7:40
    Disk Information: ℹ️
        TOSHIBA MK3255GSXF disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (150.44 GB free)
        MATSHITADVD-R   UJ-898
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Configuration files: ℹ️
        /etc/hosts - Count: 31
    Kernel Extensions: ℹ️
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (2.3.3 - SDK 10.8) [Click for support]
        [not loaded]    com.zeobit.kext.Firewall (2.3.3 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.devguru.driver.SamsungComposite (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.leapfrog.codeless.kext (2) [Click for support]
        [not loaded]    com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
        [not loaded]    com.wibu.codemeter.CmUSBMassStorage (1.0.7) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.2.63 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.2.63 - SDK 10.6) [Click for support]
    Problem System Launch Daemons: ℹ️
        [running]    com.wibu.CodeMeter.Server.plist [Click for support]
        [not loaded]    org.samba.winbindd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.hp.devicemonitor.plist [Click for support]
        [loaded]    com.hp.messagecenter.launcher.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.leapfrog.connect.authdaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.skype.skypeinstaller.plist [Click for support]
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [running]    com.leapfrog.connect.monitor.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [failed]    com.zeobit.MacKeeper.Helper.plist [Click for support] [Click for details]
    User Login Items: ℹ️
        LOGINserver    Application  (/Library/Printers/Brother/Utilities/Server/LOGINserver.app)
        InstUtilLaunch    Application  (/Library/Printers/Brother/Utilities/InstallUtility.app/Contents/Resources/Inst UtilLaunch.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.2.9 [Click for support]
        net.juniper.DSSafariExtensions: Version: Unknown [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.1 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewer: Version: 10.0.3 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    Safari Extensions: ℹ️
        Searchme  [Adware! - Remove]
        DivX Plus Web Player HTML5 <video>
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        CodeMeter  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
    Time Machine: ℹ️
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU: ℹ️
            14%    firefox
             5%    WindowServer
             0%    ps
             0%    fontd
             0%    DirectoryService
    Top Processes by Memory: ℹ️
        528 MB    firefox
        176 MB    Finder
        159 MB    AntiVirus
        112 MB    WindowServer
        82 MB    mds
    Virtual Memory Information: ℹ️
        1.07 GB    Free RAM
        1.29 GB    Active RAM
        1.01 GB    Inactive RAM
        784 MB    Wired RAM
        962 MB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 07:32:46 PM    Self test - passed

    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 814
    ***Hardware looks fine
    ***Increasing the RAM can always help with slowness issues
    Video Information: ℹ️
        NVIDIA GeForce GT 330M - VRAM: 256 MB
            Color LCD 1440 x 900
            spdisplays_display_connector
        Intel HD Graphics - VRAM: 288 MB
            spdisplays_display_connector
    ***Looks fine
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: one day 2:7:40
    ***You are running an Operating system over 4 years old but it shouldn't effect the speed of your computer
    Disk Information: ℹ️
        TOSHIBA MK3255GSXF disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (150.44 GB free)
        MATSHITADVD-R   UJ-898
    ***Looks fine
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Configuration files: ℹ️
        /etc/hosts - Count: 31
    ***Looks fine
    Kernel Extensions: ℹ️
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (2.3.3 - SDK 10.8) [Click for support]
        [not loaded]    com.zeobit.kext.Firewall (2.3.3 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.devguru.driver.SamsungComposite (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.leapfrog.codeless.kext (2) [Click for support]
        [not loaded]    com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
        [not loaded]    com.wibu.codemeter.CmUSBMassStorage (1.0.7) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.2.63 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.2.63 - SDK 10.6) [Click for support]
    ***I'm honestly not super familiar with most kernal extensions but I do see you have MacKeeper running which can slow the computer down
    ****** This next section talks about Launch agents and Launch Daemons.
    ****Something to keep in mind is that when you first get the computer that all of these folders are empty and the files in them are all third party.
    ****If you want to see if the system runs better without them Shut the computer down and turn it on while holding the shift key
    ****This will put the computer into safemode which turns off third party files and extensions and does not let any launch agent/daemons files run.
    Problem System Launch Daemons: ℹ️
        [running]    com.wibu.CodeMeter.Server.plist [Click for support]
        [not loaded]    org.samba.winbindd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.hp.devicemonitor.plist [Click for support]
        [loaded]    com.hp.messagecenter.launcher.plist [Click for support]
    ***This is the root launch agent folder
    ***I'd remove all but the first three
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.leapfrog.connect.authdaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.skype.skypeinstaller.plist [Click for support]
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
    ***This is the root Launch Daemons folder
    ***I'd only keep com.adobe.fpsaud.plist and com.microsfot.office.licensing.helper.plist all the others will reinstall them selves if needed.
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [running]    com.leapfrog.connect.monitor.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [failed]    com.zeobit.MacKeeper.Helper.plist [Click for support] [Click for details]
    ***This is your users Launch Agent folder
    ***I'd remove everything here
    User Login Items: ℹ️
        LOGINserver    Application  (/Library/Printers/Brother/Utilities/Server/LOGINserver.app)
        InstUtilLaunch    Application  (/Library/Printers/Brother/Utilities/InstallUtility.app/Contents/Resources/Inst UtilLaunch.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.2.9 [Click for support]
        net.juniper.DSSafariExtensions: Version: Unknown [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.1 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewer: Version: 10.0.3 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    Safari Extensions: ℹ️
        Searchme  [Adware! - Remove]
        DivX Plus Web Player HTML5 <video>
    ***The first extension in safari is adware and can be uninstalled
    ***The second one is a video web player and you could probably remove that as well but it wont effect your speed
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        CodeMeter  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
    Time Machine: ℹ️
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU: ℹ️
            14%    firefox
             5%    WindowServer
             0%    ps
             0%    fontd
             0%    DirectoryService
    Top Processes by Memory: ℹ️
        528 MB    firefox
        176 MB    Finder
        159 MB    AntiVirus
        112 MB    WindowServer
        82 MB    mds
    Virtual Memory Information: ℹ️
        1.07 GB    Free RAM
        1.29 GB    Active RAM
        1.01 GB    Inactive RAM
        784 MB    Wired RAM
        962 MB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 07:32:46 PM    Self test - passed
    ***Everything else seems fine

  • Computer really slow, ran a diagnosis, here are the results

    Hi, My computer was really slow so i removed some of the lauch/deamon that i could fnd and ran a diagnosis, What else is wrong, what should i do?
    here are the results:
    Start time: 01:27:56 02/19/15
    Model Identifier: MacBookPro8,1
    System Version: OS X 10.9.5 (13F34)
    Kernel Version: Darwin 13.4.0
    Time since boot: 5 days 19:47
    SerialATA
       Hitachi HTS545032B9A302                
    SMC
       ReadKey for key ALP0 failed with SMC error code 0xb7.
       ReadKey for key ALP1 failed with SMC error code 0xb7.
       ReadKey for key BILO failed with SMC error code 0xb7.
    FileVault: On
    Diagnostic reports
       2015-02-07 WindowServer crash x2
       2015-02-07 loginwindow crash x2
       2015-02-11 Dock crash
       2015-02-11 PluginProcess crash
       2015-02-11 WindowServer crash x3
       2015-02-11 iPhoto crash
       2015-02-11 loginwindow crash x2
       2015-02-12 WindowServer crash
       2015-02-12 loginwindow crash
       2015-02-12 ptcore crash
       2015-02-13 ptcore crash
       2015-02-14 Microsoft Excel hang
       2015-02-14 Viber hang
       2015-02-14 WindowServer crash
       2015-02-14 iPhoto hang
       2015-02-15 ptcore crash
       2015-02-16 WindowServer crash x2
       2015-02-16 ptcore crash
       2015-02-19 Safari crash
    Shutdowns
       Feb 16 20:09:25 Cause: -60
    Log
       Feb 17 14:24:10 check_vol_last_mod_time:XXX failed to get mount time (25; &mount_time == 0x10c8493d8)
       Feb 17 14:27:10 msdosfs_fat_uninit_vol: error 6 from msdosfs_fat_cache_flush
       Feb 17 14:27:11 disk logger: failed to open output file /Volumes/MY GS DRIVE/.fseventsd/00000000002722b5 (No such file or directory). mount point /Volumes/MY GS DRIVE/.fseventsd
       Feb 17 14:27:11 disk logger: failed to open output file /Volumes/MY GS DRIVE/.fseventsd/00000000002722b5 (No such file or directory). mount point /Volumes/MY GS DRIVE/.fseventsd
       Feb 17 14:27:11 failed to unlink old log file /Volumes/MY GS DRIVE/.fseventsd/00000000002722b5 (No such file or directory)
       Feb 17 14:27:11 failed to unlink old log file /Volumes/MY GS DRIVE/.fseventsd/00000000002722b5 (No such file or directory)
       Feb 17 14:27:11 unmounting: failed to remove log dir /Volumes/MY GS DRIVE/.fseventsd (No such file or directory)
       Feb 17 14:37:36 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 17 14:37:36 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 17 14:38:06 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 20:48:17 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 20:48:17 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 20:48:47 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 21:25:37 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 21:25:37 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 21:25:37 PM notification timeout (pid 37112, iTunes)
       Feb 18 21:26:07 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 21:26:07 PM notification timeout (pid 37112, iTunes)
       Feb 18 22:04:47 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 22:04:47 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 22:04:47 PM notification timeout (pid 37112, iTunes)
       Feb 18 23:00:12 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 23:00:12 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 23:00:42 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 19 01:16:21 7fff86800000. While not abnormal for debuggers, this increases system memory footprint until the target exits.
    Daemons
       com.adobe.fpsaud
       com.google.keystone.daemon
       com.microsoft.office.licensing.helper
       com.oracle.java.Helper-Tool
       com.v.helper
       net.privatetunnel.ptcore
    Agents
       com.adobe.ARM.UUID
       com.apple.AirPortBaseStationAgent
       com.facebook.videochat.NAME.updater
       com.google.keystone.system.agent
       com.jdibackup.ZipCloud.autostart
       com.jdibackup.ZipCloud.notify
       com.oracle.java.Java-Updater
       com.pharos.notify
       com.pharos.popup
       com.v.agent
       com.viber.osx
    Applications
       /Applications/Adobe Reader.app
       - com.adobe.Reader
       /Applications/Dropbox.app
       - com.getdropbox.dropbox
       /Applications/Firefox.app
       - org.mozilla.firefox
       /Applications/Google Chrome.app
       - com.google.Chrome
       /Applications/Internet Explorer.app
       - com.microsoft.explorer
       /Applications/Microsoft Messenger.app
       - com.microsoft.Messenger
       /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
       - com.microsoft.languageregister
       /Applications/Microsoft Office 2011/Microsoft Document Connection.app
       - com.microsoft.DocumentConnection
       /Applications/Microsoft Office 2011/Microsoft Excel.app
       - com.microsoft.Excel
       /Applications/Microsoft Office 2011/Microsoft Outlook.app
       - com.microsoft.Outlook
       /Applications/Microsoft Office 2011/Microsoft PowerPoint.app
       - com.microsoft.Powerpoint
       /Applications/Microsoft Office 2011/Microsoft Word.app
       - com.microsoft.Word
       /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
       - com.microsoft.ASApplication
       /Applications/Microsoft Office 2011/Office/Equation Editor.app
       - com.microsoft.EquationEditor
       /Applications/Microsoft Office 2011/Office/Microsoft Alerts Daemon.app
       - com.microsoft.alerts.daemon
       /Applications/Microsoft Office 2011/Office/Microsoft Chart Converter.app
       - com.microsoft.openxml.chart.app
       /Applications/Microsoft Office 2011/Office/Microsoft Clip Gallery.app
       - com.microsoft.ClipGallery
       /Applications/Microsoft Office 2011/Office/Microsoft Database Daemon.app
       - com.microsoft.outlook.databasedaemon
       /Applications/Microsoft Office 2011/Office/Microsoft Database Utility.app
       - com.microsoft.outlook.databaseutility
       /Applications/Microsoft Office 2011/Office/Microsoft Graph.app
       - com.microsoft.Graph
       /Applications/Microsoft Office 2011/Office/Microsoft Office Reminders.app
       - com.microsoft.outlook.officereminders
       /Applications/Microsoft Office 2011/Office/Microsoft Office Setup Assistant.app
       - com.microsoft.office.setupassistant
       /Applications/Microsoft Office 2011/Office/Microsoft Query.app
       - com.microsoft.Query
       /Applications/Microsoft Office 2011/Office/Microsoft Upload Center.app
       - com.microsoft.office.uploadcenter
       /Applications/Microsoft Office 2011/Office/My Day.app
       - com.microsoft.myday
       /Applications/Microsoft Office 2011/Office/Office365Service.app
       - com.microsoft.Office365Service
       /Applications/Microsoft Office 2011/Office/Open XML for Excel.app
       - com.microsoft.openxml.excel.app
       /Applications/Microsoft Office 2011/Office/SyncServicesAgent.app
       - com.microsoft.SyncServicesAgent
       /Applications/PrivateTunnel.app
       - 237
       /Applications/Remote Desktop Connection.app
       - com.microsoft.rdc
       /Applications/Rogers One Number.app
       - com.Rogers.Rogers_One_Number
       /Applications/Skype.app
       - com.skype.skype
       /Applications/Utilities/Adobe Flash Player Install Manager.app
       - com.adobe.flashplayer.installmanager
       /Applications/Viber.app
       - com.viber.osx
       /Applications/uTorrent.app
       - com.bittorrent.uTorrent
       /Library/Application Support/Google/GoogleTalkPlugin.app
       - com.google.GoogleTalkPluginD
       /Library/Application Support/Google/GoogleVoiceAndVideoUninstaller.app
       - com.google.GoogleTalkPluginUninstaller
       /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
       - com.microsoft.autoupdate2
       /Library/Application Support/Microsoft/MERP2.0/Microsoft Error Reporting.app
       - com.microsoft.error_reporting
       /Library/Application Support/Microsoft/MERP2.0/Microsoft Ship Asserts.app
       - com.microsoft.netlib.shipassertprocess
       /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
       - com.microsoft.silverlight.sllauncher
       /Library/Application Support/Pharos/Notify.app
       - com.pharos.notify
       /Library/Application Support/Pharos/Popup.app
       - com.pharos.popup
       /Library/Application Support/Pharos/PopupConfiguration.app
       - com.pharos.PopupConfiguration
       /Library/Application Support/Pharos/Utilities/Uninstaller.app
       - com.pharos.uninstaller
       /Library/Application Support/PrivateTunnel/PrivateTunnel.app
       - 237
       /Library/Application Support/laser/Agent/agent.app
       - com.someproduct.agent
       /Library/Printers/Xerox/Filters/commandtoxbds.app
       - com.xerox.commandtoxbds
       /Users/USER/Downloads/Cyberduck 2.app
       - ch.sudo.cyberduck
       /Users/USER/Downloads/Cyberduck.app
       - ch.sudo.cyberduck
       /Users/USER/Downloads/FileZilla 2.app
       - de.filezilla
       /Users/USER/Downloads/FileZilla.app
       - de.filezilla
       /Users/USER/Downloads/MediaGet.app
       - com.yourcompany.mediaget_dbg
       /Users/USER/Downloads/Odin.app
       - Odin.Wineskin.prefs
       /Users/USER/Downloads/UnRarX-1.app
       - com.peternoriega.unrarx
       /Users/USER/Downloads/UnRarX.app
       - com.peternoriega.unrarx
       /Users/USER/Downloads/UofR_SophosMac.app
       - org.ahead.UofR_SophosMac
       /Users/USER/Library/Application Support/Facebook/video/3.1.0.522/FacebookVideoCalling.app
       - com.Skype.FacebookVideoCalling
       /Users/USER/Library/Application Support/Google/Chrome/Default/Web Applications/_crx_nmmhkkegccagdldgiimedpiccmgmieda/Default nmmhkkegccagdldgiimedpiccmgmieda.app
       - com.google.Chrome.app.Default-nmmhkkegccagdldgiimedpiccmgmieda-internal
       /Users/USER/Library/Application Support/IBM/SPSS/Statistics/20/Eclipse/configuration/nl/en_US/org.eclipse.equin ox.app
       - null
       /Users/USER/Library/Application Support/TomTom HOME/TomTomHOMERunner.app
       - com.tomtom.HOMERunnerApp
       /Users/USER/Library/Application Support/WebEx Folder/1326/Event Center.app
       - com.webex.eventcenter
       /Users/USER/Library/Application Support/WebEx Folder/1326/asannotation2.app
       - com.webex.asannotation
       /Users/USER/Library/Application Support/WebEx Folder/1326/convertpdf.app
       - com.webex.convertpdf
       /Users/USER/Library/Application Support/WebEx Folder/Add-ons/Cisco WebEx Start.app
       - com.cisco.webex.Cisco-WebEx-Start
    Frameworks
       /Library/Frameworks/PrivateTunnel.framework
       - null
       /Users/USER/Library/Frameworks/SamsungKiesFoundation.framework
       - null
       /Users/USER/Library/Frameworks/SamsungKiesSerialPort.framework
       - null
    PrefPane
       /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.pref Pane
       - null
       /Library/PreferencePanes/Flash Player.prefPane
       - com.adobe.flashplayerpreferences
    Bundles
       /Library/Internet Plug-Ins/AdobePDFViewer.plugin
       - com.adobe.acrobat.pdfviewer
       /Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin
       - com.adobe.acrobat.pdfviewerNPAPI
       /Library/Internet Plug-Ins/Flash Player.plugin
       - com.macromedia.Flash
       /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
       - com.oracle.java.JavaAppletPlugin
       /Library/Internet Plug-Ins/RogersOneNumber_74057.plugin
       - com.Rogers.onenumber
       /Library/Internet Plug-Ins/SharePointBrowserPlugin.plugin
       - com.microsoft.sharepoint.browserplugin
       /Library/Internet Plug-Ins/Silverlight.plugin
       - com.microsoft.SilverlightPlugin
       /Library/Internet Plug-Ins/googletalkbrowserplugin.plugin
       - com.google.googletalkbrowserplugin
       /Library/Internet Plug-Ins/o1dbrowserplugin.plugin
       - com.google.o1dbrowserplugin
       /Library/Printers/Xerox/PDEs/Xerox WorkCentre Pro 232_238_245_255 Accounting.plugin
       - com.xerox.print.pde.Accounting_wcp232_238_245_255
       /Library/Printers/Xerox/PDEs/Xerox WorkCentre Pro 232_238_245_255.plugin
       - com.xerox.print.pde.xeroxfeatures.wcp232_238_245_255
       /Library/Printers/Xerox/PDEs/XeroxFeatures.plugin
       - com.xerox.xeroxfeatures.pde
       /Users/USER/Library/Application Support/Google/Chrome/PepperFlash/11.9.900.117/PepperFlashPlayer.plugin
       - com.macromedia.PepperFlashPlayer.pepper
       /Users/USER/Library/Internet Plug-Ins/WebEx64.plugin
       - com.cisco_webex.plugin.gpc64
    dylibs
       /Applications/Microsoft Office 2011/Office/MicrosoftSetupUI.framework/Libraries/mbupgx.dylib
       /Applications/Microsoft Office 2011/Office/OPF.framework/Versions/14/Resources/OPF_Common.dylib
       /Applications/Microsoft Office 2011/Office/Visual Basic for Applications.framework/Versions/14/Frameworks/Fm20.dylib
       /Applications/Microsoft Office 2011/Office/Visual Basic for Applications.framework/Versions/14/Frameworks/MicrosoftOLE2TypesLib.dylib
       /Applications/Microsoft Office 2011/Office/Visual Basic for Applications.framework/Versions/14/Frameworks/RefEdit.dylib
       /Applications/Microsoft Office 2011/Office/Visual Basic for Applications.framework/Versions/14/Frameworks/RichEdit.dylib
       /Users/USER/Library/Application Support/Firefox/Profiles/77usx6jx.default/gmp-gmpopenh264/1.1/libgmpopenh264.dy lib
       /Users/USER/Library/Application Support/Firefox/Profiles/77usx6jx.default/gmp-gmpopenh264/1.3/libgmpopenh264.dy lib
       /Users/USER/Library/Application Support/Google/Chrome/WidevineCDM/1.4.6.758/_platform_specific/mac_x64/libwidev inecdm.dylib
       /Users/USER/Library/Application Support/WebEx Folder/1326/cmcrypto-1309.03.2812.2.dylib
       /Users/USER/Library/Application Support/WebEx Folder/1326/rtp-10.20.23.0.dylib
       /Users/USER/Library/Application Support/WebEx Folder/1326/xml-11.18.32.0.dylib
    Contents of /Library/LaunchAgents/com.laser.agent.plist
       - mod date: Jan 22 11:26:38 2015
       - checksum: 2993121334
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>Label</key>
        <string>com.v.agent</string>
        <key>OnDemand</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
        <string>/Library/Application Support/laser/Agent/agent.app/Contents/MacOS/agent</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <true/>
        <key>LimitLoadToSessionType</key>
        <string>Aqua</string>
        <key>ThrottleInterval</key>
        <integer>10</integer>
       </dict>
       </plist>
    Contents of /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
       - mod date: Jan 26 11:41:57 2015
       - checksum: 2917329840
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
               <key>Label</key>
               <string>com.oracle.java.Java-Updater</string>
               <key>ProgramArguments</key>
        <array>
               <string>/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/Java Updater.app/Contents/MacOS/Java Updater</string>
               <string>-bgcheck</string>
        </array>
        <key>StartCalendarInterval</key>
        <dict>
        <key>Hour</key>
        <integer>11</integer>
        <key>Minute</key>
        <integer>41</integer>
        <key>Weekday</key>
        <integer>7</integer>
        </dict>
        <key>StandardErrorPath</key>
               <string>/dev/null</string>
               <key>StandardOutPath</key>
               <string>/dev/null</string>
       </dict>
       ...and 1 more line(s)
    Contents of /Library/LaunchAgents/com.pharos.notify.plist
       - mod date: Jul 20 17:48:04 2014
       - checksum: 2999610686
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
           <dict>
               <key>Label</key>
               <string>com.pharos.notify</string>
               <key>Program</key>
               <string>/Library/Application Support/Pharos/Notify.app/Contents/MacOS/Notify</string>
               <key>KeepAlive</key>
               <true/>
               <key>LimitLoadToSessionType</key>
               <string>Aqua</string>
           </dict>
       </plist>
    Contents of /Library/LaunchAgents/com.pharos.popup.plist
       - mod date: Jul 20 17:48:11 2014
       - checksum: 2018977043
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
           <dict>
               <key>Label</key>
               <string>com.pharos.popup</string>
               <key>Program</key>
               <string>/Library/Application Support/Pharos/Popup.app/Contents/MacOS/Popup</string>
               <key>KeepAlive</key>
               <true/>
               <key>LimitLoadToSessionType</key>
               <string>Aqua</string>
           </dict>
       </plist>
    Contents of /System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist
       - mod date: Oct 29 11:17:20 2013
       - checksum: 601108312
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>KeepAlive</key>
        <dict>
        <key>SuccessfulExit</key>
        <false/>
        </dict>
        <key>Label</key>
        <string>com.apple.NetBootClientHelper</string>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/sbin/NetBootClientHelper</string>
        <string>-setSharingNames</string>
        <string>-resetLocalKDC</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.adobe.ARM.UUID.plist
       - mod date: Oct 12 11:53:43 2011
       - checksum: 408149527
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>Label</key>
        <string>com.adobe.ARM.UUID</string>
        <key>ProgramArguments</key>
        <array>
        <string>/Applications/Adobe Reader.app/Contents/MacOS/Updater/Adobe Reader Updater Helper.app/Contents/MacOS/Adobe Reader Updater Helper</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>StartInterval</key>
        <integer>12600</integer>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.facebook.videochat.NAME.plist
       - mod date: Aug 13 23:48:57 2014
       - checksum: 1515274914
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
         <key>Label</key>
         <string>com.facebook.videochat.NAME.updater</string>
         <key>ProgramArguments</key>
         <array>
           <string>/usr/bin/java</string>
           <string>-cp</string>
           <string>/Users/USER/Library/Application Support/Facebook/video/3.1.0.522/FacebookUpdate.jar</string>
           <string>FacebookUpdate</string>
           <string>com.facebook.peep</string>
           <string>3.1.0.522</string>
         </array>
         <key>RunAtLoad</key>
         <true/>
         <key>StartInterval</key>
         <integer>10800</integer>
         <key>StandardErrorPath</key>
         <string>/dev/null</string>
         <key>StandardOutPath</key>
         <string>/dev/null</string>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.jdibackup.ZipCloud.autostart.plist
       - mod date: Jan 24 19:12:53 2015
       - checksum: 2594553491
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
           <key>Label</key>
           <string>com.jdibackup.ZipCloud.autostart</string>
           <key>ProgramArguments</key>
           <array>
               <string>open</string>
               <string>/Applications/ZipCloud.app/Contents/Resources/Utility.app</string>
               <string>-n</string>
               <string>--args</string>
               <string>9</string>
               <string>-l</string>
           </array>
           <key>StandardOutPath</key>
           <string>/Users/USER/Library/Logs/ZipCloud/lagent_out.log</string>
           <key>StandardErrorPath</key>
           <string>/Users/USER/Library/Logs/ZipCloud/lagent_err.log</string>
           <key>RunAtLoad</key>
           <true/>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.jdibackup.ZipCloud.notify.plist
       - mod date: Jan 24 19:12:53 2015
       - checksum: 3539620783
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
           <key>Label</key>
           <string>com.jdibackup.ZipCloud.notify</string>
           <key>ProgramArguments</key>
           <array>
               <string>open</string>
               <string>/Applications/ZipCloud.app/Contents/Resources/Utility.app</string>
               <string>--args</string>
               <string>7</string>
               <string>1</string>
           </array>
           <key>StandardOutPath</key>
           <string>/Users/USER/Library/Logs/ZipCloud/lagent_out.log</string>
           <key>StandardErrorPath</key>
           <string>/Users/USER/Library/Logs/ZipCloud/lagent_err.log</string>
           <key>StartInterval</key>
           <integer>1200</integer>
           <key>RunAtLoad</key>
           <false/>
       </dict>
       </plist>
    Font issues: 25
    Bad plists
       Library/Preferences/com.apple.iphotomosaic.plist
    Firewall: On
    Listeners
       cupsd: ipp
       kdc: kerberos
    User login items
       FaceTime
       - /Applications/FaceTime.app
       Dropbox
       - /Applications/Dropbox.app
       AdobeResourceSynchronizer
       - /Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app
       Rogers One Number
       - /Applications/Rogers One Number.app
    Safari extensions
       DivX Plus Web Player HTML5 <video>
       - com.divx.DivXHTML5
       Searchme
       - com.spigot.safari.searchme
    Restricted files: 415
    Lockfiles: 6
    Elapsed time (s): 1303

    I don't recommend running that script unless asked to do so by me, as I have no control over how the information will be used.
    A
    You installed a variant of the "VSearch" trojan. Remove it as follows.
    This malware has many variants. Anyone else finding this comment should not expect it to be applicable.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.laser.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.laser.daemon.plist
    /Library/LaunchDaemons/com.laser.helper.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/laser
    /System/Library/Frameworks/v.framework
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    B
    "ZipCloud" is some sort of cloud-storage service with a doubtful reputation. The OS X client is sometimes distributed along with malware. Although ZipCloud may not be malicious itself, it should be deemed suspect by virtue of the company it keeps.
    To remove ZipCloud, start by backing up all data (not with ZipCloud itself, of course.)
    Quit the application, if it's running, and drag it from the Applications folder to the Trash.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/LaunchAgents/com.jdibackup.ZipCloud.autostart.plist
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with a file selected. Move the selected file to the Trash.
    In the same folder, there may also be a file named
               com.jdibackup.ZipCloud.notify.plist
    Move that to the Trash as well.
    Log out or restart the computer and empty the Trash.
    C
    The following Safari extensions are malicious and should be removed in the Extensions pane of the Safari preferences window:
              Searchme
    Do the equivalent in the Chrome and Firefox browsers, if you use those. Never install any extension with the words "Spigot," "Conduit," "Genieo," or "Trovi" in the description.
    D
    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Back up all data before proceeding.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    resetp
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    If the mouse clicks something on its own then it looks like you have a hardware problem with the trackpad or possibly the battery that is right underneath the trackpad.
    I have read that the battery can swell and that would put pressure on the trackpad.

Maybe you are looking for

  • Opening and closing stock at storage location level

    Dear all I need a std report which will give the opening and closing stock at storage location level, Or should I go for dev. if yes please guide me. Regards Samuel

  • Accrual generates a purchase price variance

    When receiving an invoice for a material that requires the accrual of use tax, the accrual generates a purchase price variance, rather than generating an expense related to the material. Is it standard for SAP?

  • Icc profile corrupted in lion

    I have all of the sudden a color shift in lion 10.7.4- the color profile from adobe are currupted. This is the result displaying from Color Utility Searching for profiles... Checking 66 profiles... /Library/Application Support/Adobe/Color/Profiles/Re

  • Safari does not show Gmail Custom Labels on sidebar

    I am missing Gmail labels I've created. Sidebar shows the color codes without text or label names. Does anyone have the same problem? I am using Safari 6.05.

  • How to import video from Canon HF10?

    I'm probably just an idiot, but I can't figure out to import the video footage from my Canon HF10. My comp has no problem recognizing the internal hdd and the extra sd card I have for it, but I normally don't work in iMovie, so I'm a little technical